From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [RESEND PATCH] arm: dts: am33xx: Add spi alias to match SOC schematics Date: Tue, 19 Sep 2017 10:53:14 -0700 Message-ID: <20170919175313.GD5024@atomide.com> References: <1505111416-21594-1-git-send-email-sunil.m@techveda.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1505111416-21594-1-git-send-email-sunil.m-fINqtvHxh+hg9hUCZPvPmw@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: sunil.m-fINqtvHxh+hg9hUCZPvPmw@public.gmane.org Cc: bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Karthik Tummala List-Id: linux-omap@vger.kernel.org * sunil.m-fINqtvHxh+hg9hUCZPvPmw@public.gmane.org [170910 23:31]: > From: Suniel Mahesh > > Linux bus numbers should match the numbers defined by the chip > manufacturer. This patch add's spi aliases to acheive that bus > naming convention. OK applying into omap-for-v4.14/fixes to follow what we do already for am4372 and dra7. Regards, Tony > Signed-off-by: Suniel Mahesh > Signed-off-by: Karthik Tummala > Tested-by: Karthik Tummala > --- > Note: > - Patch was compile tested and built(ARCH=arm) on next-20170911. > - Patch was hardware tested on AM335x (McSPI controller) with > spi flash chips. > - No build/run-time issues reported. > - At present bus numbers are represented as spi1 and spi2 in sysfs > instead of spi0 and spi1, as defined in SOC schematics. > - The commit: > "spi: Pick spi bus number from Linux idr or spi alias" > (SHA1:9b61e302210eba55768962f2f11e96bb508c2408) > has introduced bus numbering which happens dynamically either > via Linux IDR or spi alias for master drivers. > - The commit: > "spi: omap: Allocate bus number from spi framework" > (SHA1:b590782afe0a99fca84f451252ed7e2d64b2f155) > is now using spi framework to allocate bus numbers. > --- > arch/arm/boot/dts/am33xx.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi > index 7d7ca05..e58fab8 100644 > --- a/arch/arm/boot/dts/am33xx.dtsi > +++ b/arch/arm/boot/dts/am33xx.dtsi > @@ -36,6 +36,8 @@ > phy1 = &usb1_phy; > ethernet0 = &cpsw_emac0; > ethernet1 = &cpsw_emac1; > + spi0 = &spi0; > + spi1 = &spi1; > }; > > cpus { > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Tue, 19 Sep 2017 10:53:14 -0700 Subject: [RESEND PATCH] arm: dts: am33xx: Add spi alias to match SOC schematics In-Reply-To: <1505111416-21594-1-git-send-email-sunil.m@techveda.org> References: <1505111416-21594-1-git-send-email-sunil.m@techveda.org> Message-ID: <20170919175313.GD5024@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org * sunil.m at techveda.org [170910 23:31]: > From: Suniel Mahesh > > Linux bus numbers should match the numbers defined by the chip > manufacturer. This patch add's spi aliases to acheive that bus > naming convention. OK applying into omap-for-v4.14/fixes to follow what we do already for am4372 and dra7. Regards, Tony > Signed-off-by: Suniel Mahesh > Signed-off-by: Karthik Tummala > Tested-by: Karthik Tummala > --- > Note: > - Patch was compile tested and built(ARCH=arm) on next-20170911. > - Patch was hardware tested on AM335x (McSPI controller) with > spi flash chips. > - No build/run-time issues reported. > - At present bus numbers are represented as spi1 and spi2 in sysfs > instead of spi0 and spi1, as defined in SOC schematics. > - The commit: > "spi: Pick spi bus number from Linux idr or spi alias" > (SHA1:9b61e302210eba55768962f2f11e96bb508c2408) > has introduced bus numbering which happens dynamically either > via Linux IDR or spi alias for master drivers. > - The commit: > "spi: omap: Allocate bus number from spi framework" > (SHA1:b590782afe0a99fca84f451252ed7e2d64b2f155) > is now using spi framework to allocate bus numbers. > --- > arch/arm/boot/dts/am33xx.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi > index 7d7ca05..e58fab8 100644 > --- a/arch/arm/boot/dts/am33xx.dtsi > +++ b/arch/arm/boot/dts/am33xx.dtsi > @@ -36,6 +36,8 @@ > phy1 = &usb1_phy; > ethernet0 = &cpsw_emac0; > ethernet1 = &cpsw_emac1; > + spi0 = &spi0; > + spi1 = &spi1; > }; > > cpus { > -- > 1.9.1 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751594AbdISRxT (ORCPT ); Tue, 19 Sep 2017 13:53:19 -0400 Received: from muru.com ([72.249.23.125]:40988 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbdISRxS (ORCPT ); Tue, 19 Sep 2017 13:53:18 -0400 Date: Tue, 19 Sep 2017 10:53:14 -0700 From: Tony Lindgren To: sunil.m@techveda.org Cc: bcousson@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Karthik Tummala Subject: Re: [RESEND PATCH] arm: dts: am33xx: Add spi alias to match SOC schematics Message-ID: <20170919175313.GD5024@atomide.com> References: <1505111416-21594-1-git-send-email-sunil.m@techveda.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1505111416-21594-1-git-send-email-sunil.m@techveda.org> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * sunil.m@techveda.org [170910 23:31]: > From: Suniel Mahesh > > Linux bus numbers should match the numbers defined by the chip > manufacturer. This patch add's spi aliases to acheive that bus > naming convention. OK applying into omap-for-v4.14/fixes to follow what we do already for am4372 and dra7. Regards, Tony > Signed-off-by: Suniel Mahesh > Signed-off-by: Karthik Tummala > Tested-by: Karthik Tummala > --- > Note: > - Patch was compile tested and built(ARCH=arm) on next-20170911. > - Patch was hardware tested on AM335x (McSPI controller) with > spi flash chips. > - No build/run-time issues reported. > - At present bus numbers are represented as spi1 and spi2 in sysfs > instead of spi0 and spi1, as defined in SOC schematics. > - The commit: > "spi: Pick spi bus number from Linux idr or spi alias" > (SHA1:9b61e302210eba55768962f2f11e96bb508c2408) > has introduced bus numbering which happens dynamically either > via Linux IDR or spi alias for master drivers. > - The commit: > "spi: omap: Allocate bus number from spi framework" > (SHA1:b590782afe0a99fca84f451252ed7e2d64b2f155) > is now using spi framework to allocate bus numbers. > --- > arch/arm/boot/dts/am33xx.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi > index 7d7ca05..e58fab8 100644 > --- a/arch/arm/boot/dts/am33xx.dtsi > +++ b/arch/arm/boot/dts/am33xx.dtsi > @@ -36,6 +36,8 @@ > phy1 = &usb1_phy; > ethernet0 = &cpsw_emac0; > ethernet1 = &cpsw_emac1; > + spi0 = &spi0; > + spi1 = &spi1; > }; > > cpus { > -- > 1.9.1 >