From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko =?ISO-8859-1?Q?St=FCbner?= Subject: Re: [PATCH] arm64: dts: rockchip: remove bus-width from mmc nodes in rk3308.dtsi Date: Tue, 14 Apr 2020 12:16:05 +0200 Message-ID: <22353886.YAKSXtfJYZ@diego> References: <20200413193652.1952-1-jbx6244@gmail.com> <20c81edc-247c-8db0-2b3c-a6c2fcad6b4e@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <20c81edc-247c-8db0-2b3c-a6c2fcad6b4e-5wv7dgnIgG8@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Robin Murphy Cc: Johan Jonker , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-rockchip.vger.kernel.org Am Dienstag, 14. April 2020, 12:02:46 CEST schrieb Robin Murphy: > On 2020-04-13 8:36 pm, Johan Jonker wrote: > > The 'bus-width' property for mmc nodes is defined both in > > 'rk3308.dtsi' and 'rk3308-roc-cc.dts'. > > In line with the other Rockchip SoCs define that in a user dts only, > > so remove all entries from mmc nodes in 'rk3308.dtsi'. > > Judging by the pinctrl entries, these represent the number of pins > provided by the SoC itself. Obviously boards need to override that if > for some reason they don't wire up all the available data lines, but it > seems backwards to have every board restate the SoC's default value. Yep, especially as most boards follow the reference layout to some extent and so far I haven't seen any board not use the full 4 pins for sdmmc for example :-) > In fact, having brought it up, for this particular case the pinctrl > setting is inherently related to the bus width, so having one without > the other in either place doesn't smell right. So the bus width should be removed from the board file. > > Signed-off-by: Johan Jonker > > --- > > arch/arm64/boot/dts/rockchip/rk3308.dtsi | 3 --- > > 1 file changed, 3 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi > > index a9b98555d..130771ede 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi > > @@ -587,7 +587,6 @@ > > compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; > > reg = <0x0 0xff480000 0x0 0x4000>; > > interrupts = ; > > - bus-width = <4>; > > clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, > > <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; > > clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; > > @@ -602,7 +601,6 @@ > > compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; > > reg = <0x0 0xff490000 0x0 0x4000>; > > interrupts = ; > > - bus-width = <8>; > > clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, > > <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; > > clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; > > @@ -615,7 +613,6 @@ > > compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; > > reg = <0x0 0xff4a0000 0x0 0x4000>; > > interrupts = ; > > - bus-width = <4>; > > clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, > > <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; > > clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; > > >