From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Subject: Re: [PATCH 1/3] arm: atmel: at91sam9n12: add pinctrl of TWI Date: Wed, 10 Jul 2013 16:39:23 +0200 Message-ID: <20130710143923.GH18012@ns203013.ovh.net> References: <1373449869-5083-1-git-send-email-voice.shen@atmel.com> <1373449869-5083-2-git-send-email-voice.shen@atmel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1373449869-5083-2-git-send-email-voice.shen@atmel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Bo Shen Cc: devicetree-discuss@lists.ozlabs.org, ludovic.desroches@atmel.com, Nicolas Ferre , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org On 17:51 Wed 10 Jul , Bo Shen wrote: > add pinctrl of TWI for at91sam9n12 SoC > > Signed-off-by: Bo Shen > --- > arch/arm/boot/dts/at91sam9n12.dtsi | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi > index bb7f564..3db62f6 100644 > --- a/arch/arm/boot/dts/at91sam9n12.dtsi > +++ b/arch/arm/boot/dts/at91sam9n12.dtsi > @@ -291,6 +291,22 @@ > }; > }; > > + i2c0 { > + pinctrl_i2c0: i2c0-0 { > + atmel,pins = > + + AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA31 periph A I2C0 clock */ > + }; > + }; > + > + i2c1 { > + pinctrl_i2c1: i2c1-0 { > + atmel,pins = > + + AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC1 periph C I2C1 clock */ drop the comment as we use macro > + }; > + }; > + > tcb0 { > pinctrl_tcb0_tclk0: tcb0_tclk0-0 { > atmel,pins = ; > @@ -471,6 +487,8 @@ > dma-names = "tx", "rx"; > #address-cells = <1>; > #size-cells = <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c0>; > status = "disabled"; > }; > > @@ -483,6 +501,8 @@ > dma-names = "tx", "rx"; > #address-cells = <1>; > #size-cells = <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c1>; > status = "disabled"; > }; > > -- > 1.7.9.5 >