Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752650AbdFLLyj (ORCPT ); Mon, 12 Jun 2017 07:54:39 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:32751 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751997AbdFLLyi (ORCPT ); Mon, 12 Jun 2017 07:54:38 -0400 Message-ID: <1497268468.930.26.camel@mhfsdcap03> Subject: Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node From: Jun Gao To: Matthias Brugger CC: Wolfram Sang , , , , , , Date: Mon, 12 Jun 2017 19:54:28 +0800 In-Reply-To: <1495784107-6711-3-git-send-email-jun.gao@mediatek.com> References: <1495784107-6711-1-git-send-email-jun.gao@mediatek.com> <1495784107-6711-3-git-send-email-jun.gao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3322 Lines: 126 On Fri, 2017-05-26 at 15:35 +0800, Jun Gao wrote: > From: Jun Gao > > Add MT2701 i2c device node. > > Signed-off-by: Jun Gao > --- > arch/arm/boot/dts/mt2701-evb.dts | 42 ++++++++++++++++++++++++++++++++++++++++ > arch/arm/boot/dts/mt2701.dtsi | 42 ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 84 insertions(+) > > diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts > index a483798..3f5a96c 100644 > --- a/arch/arm/boot/dts/mt2701-evb.dts > +++ b/arch/arm/boot/dts/mt2701-evb.dts > @@ -28,7 +28,49 @@ > status = "okay"; > }; > > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c0_pins_a>; > + status = "okay"; > +}; > + > +&i2c1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c1_pins_a>; > + status = "okay"; > +}; > + > +&i2c2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c2_pins_a>; > + status = "okay"; > +}; > + > &pio { > + i2c0_pins_a: i2c0@0 { > + pins1 { > + pinmux = , > + ; > + bias-disable; > + }; > + }; > + > + i2c1_pins_a: i2c1@0 { > + pins1 { > + pinmux = , > + ; > + bias-disable; > + }; > + }; > + > + i2c2_pins_a: i2c2@0 { > + pins1 { > + pinmux = , > + ; > + bias-disable; > + }; > + }; > + > spi_pins_a: spi0@0 { > pins_spi { > pinmux = , > diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi > index 8037210..1b6157e 100644 > --- a/arch/arm/boot/dts/mt2701.dtsi > +++ b/arch/arm/boot/dts/mt2701.dtsi > @@ -286,6 +286,48 @@ > status = "disabled"; > }; > > + i2c0: i2c@11007000 { > + compatible = "mediatek,mt2701-i2c", > + "mediatek,mt6577-i2c"; > + reg = <0 0x11007000 0 0x70>, > + <0 0x11000200 0 0x80>; > + interrupts = ; > + clock-div = <16>; > + clocks = <&pericfg CLK_PERI_I2C0>, <&pericfg CLK_PERI_AP_DMA>; > + clock-names = "main", "dma"; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + i2c1: i2c@11008000 { > + compatible = "mediatek,mt2701-i2c", > + "mediatek,mt6577-i2c"; > + reg = <0 0x11008000 0 0x70>, > + <0 0x11000280 0 0x80>; > + interrupts = ; > + clock-div = <16>; > + clocks = <&pericfg CLK_PERI_I2C1>, <&pericfg CLK_PERI_AP_DMA>; > + clock-names = "main", "dma"; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + i2c2: i2c@11009000 { > + compatible = "mediatek,mt2701-i2c", > + "mediatek,mt6577-i2c"; > + reg = <0 0x11009000 0 0x70>, > + <0 0x11000300 0 0x80>; > + interrupts = ; > + clock-div = <16>; > + clocks = <&pericfg CLK_PERI_I2C2>, <&pericfg CLK_PERI_AP_DMA>; > + clock-names = "main", "dma"; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > spi0: spi@1100a000 { > compatible = "mediatek,mt2701-spi"; > #address-cells = <1>; Dear Matthias, Could you take this patch together with [PATCH v4 1/2]dt-bindings: i2c: Add Mediatek MT2701 i2c binding ? Thanks!