Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2450277imm; Thu, 16 Aug 2018 09:46:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwzWEX1DDvC+ODuPScMUMOu1jM1UWSzvhk+luIJmdf07Fqn5mRqp0CT/BE0gXf2hbGGZ5bX X-Received: by 2002:a62:d44e:: with SMTP id u14-v6mr1640724pfl.258.1534437977930; Thu, 16 Aug 2018 09:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534437977; cv=none; d=google.com; s=arc-20160816; b=xChqrEKc4yYtfu1TD+ueguCzPi2Iwu0zZosYP8X+EIWihiQiBx12xh3/w8lyqUOH9u gOD5PExtQBRXsvvm3RA0aw0jFGBLeVJhH3kXwA6uEyPJ0Z11i2YLIGIdV4a6PIkKM6Ag R5SAamnJqs6W0GKzjOI/lpmrY48b/juBpML58SJgIvm2LA5ad0UNjwcASu50UZMcC9Bv klHef+/piTwQzsLFnzWFxq+gSeZlYx4ti2sahVqmC6wMjHLqLvgUlJUSVuChNkvVQU1W 8GUbYIWIFULxukI8rw/zr4tgV5hTZW/9hhbQZj/62ulCeGaRgybVInpD39mzV4U8nHdV 3DOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=pzOAJesJv1TbpuAf7GGCea8otcNrdZ/4GCjL0QZNEfU=; b=fuYzZTIhcf2Ey41scgHBSubCf+8UOoqei7T3DUIbK+FVHbuKV3o6v9T52NQwbC3lZv nqwVqhOoS4PUXug7jEweqMJpyis9k5deMTYeOPk/TR6plgTP2TvEmJZr3VCf6Obmvivh 0q3Sl4FiYgx2s2/UH8g4uXB+ygcxKvc9nRGxsDuP9ZGtKXT5cQnv3RDhQbyQdIfEGTib HMZvjTbtvVkbaqocbte/xR2WxnUtqzzeqfmTdr6FC1zXC8KxbSdIyc3d9AckFzG/jW3X 3kD/0pjTuHD3xmQehv7IzUZuccOdHYtHZ88WndsQ/jW7BJ4QmChwJWONp4cQkgVpcXad 49bQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25-v6si25332208pgk.555.2018.08.16.09.46.02; Thu, 16 Aug 2018 09:46:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390240AbeHPLnG (ORCPT + 99 others); Thu, 16 Aug 2018 07:43:06 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51611 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731458AbeHPLmp (ORCPT ); Thu, 16 Aug 2018 07:42:45 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 442A62079D; Thu, 16 Aug 2018 10:45:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [78.250.249.73]) by mail.bootlin.com (Postfix) with ESMTPSA id EF2C420DB0; Thu, 16 Aug 2018 10:45:31 +0200 (CEST) From: Alexandre Belloni To: Wolfram Sang , Jarkko Nikula , James Hogan Cc: Paul Burton , Andy Shevchenko , Mika Westerberg , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Thomas Petazzoni , Allan Nielsen , Alexandre Belloni Subject: [PATCH v4 6/7] MIPS: dts: mscc: Add i2c on ocelot Date: Thu, 16 Aug 2018 10:45:20 +0200 Message-Id: <20180816084521.16289-7-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180816084521.16289-1-alexandre.belloni@bootlin.com> References: <20180816084521.16289-1-alexandre.belloni@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ocelot has an i2c controller, add it. There is only one possible pinmux configuration so add it as well. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/ocelot.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi index 4f33dbc67348..34093acebc0d 100644 --- a/arch/mips/boot/dts/mscc/ocelot.dtsi +++ b/arch/mips/boot/dts/mscc/ocelot.dtsi @@ -78,6 +78,19 @@ status = "disabled"; }; + i2c: i2c@100400 { + compatible = "mscc,ocelot-i2c", "snps,designware-i2c"; + pinctrl-0 = <&i2c_pins>; + pinctrl-names = "default"; + reg = <0x100400 0x100>, <0x198 0x8>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <8>; + clocks = <&ahb_clk>; + + status = "disabled"; + }; + uart2: serial@100800 { pinctrl-0 = <&uart2_pins>; pinctrl-names = "default"; @@ -178,6 +191,11 @@ pins = "GPIO_12", "GPIO_13"; function = "uart2"; }; + + i2c_pins: i2c-pins { + pins = "GPIO_16", "GPIO_17"; + function = "twi"; + }; }; mdio0: mdio@107009c { -- 2.18.0