Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp593448imm; Fri, 31 Aug 2018 08:13:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYu/1KYJTzYkW+yW4ocmfRIp0ph2sDnsGx/q/Ca6gli4ZwBZnDUU/bVJX+85gxNzsU5oaLr X-Received: by 2002:a17:902:2e83:: with SMTP id r3-v6mr15924862plb.80.1535728422564; Fri, 31 Aug 2018 08:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535728422; cv=none; d=google.com; s=arc-20160816; b=wKOc1bO+QfkyyCXYUOSkF9ArI2xoPssOqjLqHDD9XbYbPK1d6tbykQz8xPTo45Dnet qfoufFO+IXt5nexolTPjZI+ibK4H3Xg4PNenbrsVaHtLP70KGWBps+5Cx3yyZXHW62vQ T0jx+5HnlQFR6USarRKdYcERiFQ6EXrpG7lvN3qDUBnLlP80G5qqqhB19NPRgGswFSRi MzJvoWNDwIiSs7576WqzluSu49SpcfR04wfevRyHuHn+IfZt1oivQKzw/k6s3HhTPCdl FzOQPTaebinz760Z6C6SZcvn9HcLvlOA4xrDd/O7KeVxmZEHuxeiJmjyL7SXu0ROJgEi Ddxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=a6Neq5nE9TDZDuxOk4U1wCDFkiCjIDhmhUxr0BkT80Q=; b=enW7havX6xfmqNyy1v8cp/nRtmS+9gLlYJUuM5/X7V0g37HdqdWlUXRcEp2L+8WV2b 8J9Kaf0epD4kGpKNycWI1blEwF4+JTEC48KMWsSVpJiYLulmmZ739xtY7YPaJQep4xVm Sc/DINyNWN/Y64934GbGjBYJnTvor2dROGbi99jgYY+ocW38/2SE7LYfoX7telSY+9hA 9w/nmIvxns3iMs6XBwZ2z7suTAh0mkXOd5nukmgOJcUzezePdzJsxLB/PHYACKGJsNnY pxTJEh4Kke4YrrqehMqBps1khI9yc3kEIXE/NYRE9g/uvbYAe1JH41B/RJAPtpMZXChA 7q6Q== 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 e14-v6si9979728pgj.413.2018.08.31.08.13.28; Fri, 31 Aug 2018 08:13:42 -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 S1728902AbeHaTTz (ORCPT + 99 others); Fri, 31 Aug 2018 15:19:55 -0400 Received: from mail.bootlin.com ([62.4.15.54]:47024 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728772AbeHaTTy (ORCPT ); Fri, 31 Aug 2018 15:19:54 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A7014207EB; Fri, 31 Aug 2018 17:11:57 +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 (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 49B3322A3D; Fri, 31 Aug 2018 17:11:29 +0200 (CEST) From: Alexandre Belloni To: Wolfram Sang , Jarkko Nikula , James Hogan , Paul Burton Cc: 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 v5 6/7] MIPS: dts: mscc: Add i2c on ocelot Date: Fri, 31 Aug 2018 17:11:13 +0200 Message-Id: <20180831151114.25739-7-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.19.0.rc1 In-Reply-To: <20180831151114.25739-1-alexandre.belloni@bootlin.com> References: <20180831151114.25739-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi index f7eb612b46ba..99a9e8555087 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"; @@ -183,6 +196,11 @@ interrupts = <13>; #interrupt-cells = <2>; + i2c_pins: i2c-pins { + pins = "GPIO_16", "GPIO_17"; + function = "twi"; + }; + uart_pins: uart-pins { pins = "GPIO_6", "GPIO_7"; function = "uart"; @@ -197,6 +215,7 @@ pins = "GPIO_14", "GPIO_15"; function = "miim1"; }; + }; mdio0: mdio@107009c { -- 2.19.0.rc1