Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752622Ab3EJKbw (ORCPT ); Fri, 10 May 2013 06:31:52 -0400 Received: from eusmtp01.atmel.com ([212.144.249.243]:25137 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750Ab3EJKbv (ORCPT ); Fri, 10 May 2013 06:31:51 -0400 Message-ID: <518CCC97.904@atmel.com> Date: Fri, 10 May 2013 12:31:51 +0200 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 MIME-Version: 1.0 To: , Ludovic Desroches , "Yang, Wenyou" CC: Nicolas Ferre , Jean-Christophe PLAGNIOL-VILLARD , Subject: Re: [PATCH] ARM: at91: dts: request only spi cs-gpios used on sama5d3x cpu module References: <1368181807-15182-1-git-send-email-nicolas.ferre@atmel.com> In-Reply-To: <1368181807-15182-1-git-send-email-nicolas.ferre@atmel.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2331 Lines: 69 On 10/05/2013 12:30, Nicolas Ferre : > From: Ludovic Desroches > > Instead of requesting all available spi cs-gpios, request only the ones used on > the board, in our case on the cpu module. > > Signed-off-by: Ludovic Desroches > Signed-off-by: Nicolas Ferre And stacked on at91-3.10-fixes branch. > --- > arch/arm/boot/dts/sama5d3.dtsi | 10 ---------- > arch/arm/boot/dts/sama5d3xcm.dtsi | 4 ++++ > 2 files changed, 4 insertions(+), 10 deletions(-) > > diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi > index 2e643ea..dee5e2f 100644 > --- a/arch/arm/boot/dts/sama5d3.dtsi > +++ b/arch/arm/boot/dts/sama5d3.dtsi > @@ -75,11 +75,6 @@ > compatible = "atmel,at91sam9x5-spi"; > reg = <0xf0004000 0x100>; > interrupts = <24 4 3>; > - cs-gpios = <&pioD 13 0 > - &pioD 14 0 /* conflicts with SCK0 and CANRX0 */ > - &pioD 15 0 /* conflicts with CTS0 and CANTX0 */ > - &pioD 16 0 /* conflicts with RTS0 and PWMFI3 */ > - >; > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_spi0>; > status = "disabled"; > @@ -203,11 +198,6 @@ > compatible = "atmel,at91sam9x5-spi"; > reg = <0xf8008000 0x100>; > interrupts = <25 4 3>; > - cs-gpios = <&pioC 25 0 > - &pioC 26 0 /* conflitcs with TWD1 and ISI_D11 */ > - &pioC 27 0 /* conflitcs with TWCK1 and ISI_D10 */ > - &pioC 28 0 /* conflitcs with PWMFI0 and ISI_D9 */ > - >; > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_spi1>; > status = "disabled"; > diff --git a/arch/arm/boot/dts/sama5d3xcm.dtsi b/arch/arm/boot/dts/sama5d3xcm.dtsi > index 1f8ed40..b336e77 100644 > --- a/arch/arm/boot/dts/sama5d3xcm.dtsi > +++ b/arch/arm/boot/dts/sama5d3xcm.dtsi > @@ -32,6 +32,10 @@ > > ahb { > apb { > + spi0: spi@f0004000 { > + cs-gpios = <&pioD 13 0>, <0>, <0>, <0>; > + }; > + > macb0: ethernet@f0028000 { > phy-mode = "rgmii"; > }; > -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/