Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3932265imm; Mon, 6 Aug 2018 13:15:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcMQtm/LUCsDTt8nzjmM55xDktuh9Rnx0SO2UhEFq6/1A4UJ0GtDktyBQe1X9gsLbWBSExH X-Received: by 2002:a62:1d49:: with SMTP id d70-v6mr18944944pfd.101.1533586510649; Mon, 06 Aug 2018 13:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533586510; cv=none; d=google.com; s=arc-20160816; b=ydwWOpeYfIgYZzzCc9el1xwqoJAbIyUwexmQaN52PxtlNWIL96dQOGD1QOmgKHZ5hd CK+lYW5YgXXBIB/JQ9s35/pig1NUZ5uP7LjAhtND4VzCc0udfLsPV8+RlC0SbCJ4iAFV 1ExLwbTSYyxclFuY1GPlR7TqWhUqgDr4+d/5Q+IjmsS1xayLT2szLsQqUWTwTu3aJPuO qIQRtZBKjASu1tIeg3MC1GQgQJ85EIzQZRvudiZc7eELMWnDQxE0zmC0EzoOyAxBI+mP icU8nLN+3ZBgrlRH/wrqdQp9EQolzEA8Z6POv00OtXv+pCH/Ep4qgngSIIlS+MBK7Ind +A5Q== 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=jbdkkdb/d6jehIznTJjGny0MoBCndb0L/QXr4I88uCQuyA4KUvxvBRLgdFkLOyM0az 4zqMuRCiJlG2VCH55O01U3xWNqk8mI24vufFqA7BhLj4gORcb0b1FH4RBS7TWxaBwzzI /HD73VTeEYkrXYhiFYxCCYU5SAuqTwyT9/E5ZWyv3N6KYDRgtLUH+AruS6zpxjA7x4mn 5Gp+lG5IMN0R9lgHvYYJujrRi4gpepPQBaTV1T3i+iWzMBTnDmHazbzZCSER3zDIgBLD 5NOzWVif+CbqqkmVeAMCD6+9wPtO6h/6dHbEHRw7nXESsc1bv+/zWNgWGbqnUeZVs/AO NHZQ== 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 x23-v6si14775386pfk.25.2018.08.06.13.14.55; Mon, 06 Aug 2018 13:15:10 -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 S1733101AbeHFVFB (ORCPT + 99 others); Mon, 6 Aug 2018 17:05:01 -0400 Received: from mail.bootlin.com ([62.4.15.54]:37152 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732832AbeHFVEo (ORCPT ); Mon, 6 Aug 2018 17:04:44 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id D863220875; Mon, 6 Aug 2018 20:54:16 +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 (LPuteaux-656-1-243-71.w82-127.abo.wanadoo.fr [82.127.120.71]) by mail.bootlin.com (Postfix) with ESMTPSA id 99B292072D; Mon, 6 Aug 2018 20:54:16 +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 v3 5/6] MIPS: dts: mscc: Add i2c on ocelot Date: Mon, 6 Aug 2018 20:54:11 +0200 Message-Id: <20180806185412.7210-6-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180806185412.7210-1-alexandre.belloni@bootlin.com> References: <20180806185412.7210-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