ARM: dts: imx51: Add default bus-width property for esdhc1
Subsystems (2)
PATCH 1/1 ARM: dts: imx51: Add default bus-width property for esdhc1
This patch adds bus-width property for esdhc1 to avoid mmc core warning: "bus-width" property is missing, assuming 1 bit. Additionally, the patch removes this property for boards where 4-bit width is already specified, and adds 1-bit width for boards where this property is omitted.
--- arch/arm/boot/dts/imx51-apf51dev.dts | 1 - arch/arm/boot/dts/imx51-babbage.dts | 1 + arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts | 1 + arch/arm/boot/dts/imx51-ts4800.dts | 1 + arch/arm/boot/dts/imx51-zii-rdu1.dts | 1 - arch/arm/boot/dts/imx51.dtsi | 1 + 6 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx51-apf51dev.dts +0 -1
@@ -97,7 +97,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; - bus-width = <4>; status = "okay"; };
arch/arm/boot/dts/imx51-babbage.dts +1 -0
@@ -322,6 +322,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; + bus-width = <1>; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; status = "okay";
arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts +1 -0
@@ -101,6 +101,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1 &pinctrl_esdhc1_cd>; + bus-width = <1>; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; status = "okay"; };
arch/arm/boot/dts/imx51-ts4800.dts +1 -0
@@ -82,6 +82,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; + bus-width = <1>; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; status = "okay";
arch/arm/boot/dts/imx51-zii-rdu1.dts +0 -1
@@ -459,7 +459,6 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - bus-width = <4>; no-1-8-v; non-removable; no-sdio;
arch/arm/boot/dts/imx51.dtsi +1 -0
@@ -172,6 +172,7 @@ <&clks IMX5_CLK_DUMMY>, <&clks IMX5_CLK_ESDHC1_PER_GATE>; clock-names = "ipg", "ahb", "per"; + bus-width = <4>; status = "disabled"; };
Signature · 7 lines
2.10.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 5 lines · Alexander Shiyan
This patch adds bus-width property for esdhc1 to avoid mmc core warning: "bus-width" property is missing, assuming 1 bit. Additionally, the patch removes this property for boards where 4-bit width is already specified, and adds 1-bit width for boards where this property is omitted.
I suspect that even boards omitting the property support more than just 1-bit. The warning is a good reminder for board maintainers/users to check the bus-width.
Shawn
Quoted 86 lines
Signed-off-by Alexander Shiyan <[email protected]>--- arch/arm/boot/dts/imx51-apf51dev.dts | 1 - arch/arm/boot/dts/imx51-babbage.dts | 1 + arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts | 1 + arch/arm/boot/dts/imx51-ts4800.dts | 1 + arch/arm/boot/dts/imx51-zii-rdu1.dts | 1 - arch/arm/boot/dts/imx51.dtsi | 1 + 6 files changed, 4 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx51-apf51dev.dts +0
-1@@ -97,7 +97,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; - bus-width = <4>; status = "okay"; };arch/arm/boot/dts/imx51-babbage.dts +1
-0@@ -322,6 +322,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; + bus-width = <1>; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; status = "okay";arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts +1
-0@@ -101,6 +101,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1 &pinctrl_esdhc1_cd>; + bus-width = <1>; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; status = "okay"; };arch/arm/boot/dts/imx51-ts4800.dts +1
-0@@ -82,6 +82,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; + bus-width = <1>; cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; status = "okay";arch/arm/boot/dts/imx51-zii-rdu1.dts +0
-1@@ -459,7 +459,6 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - bus-width = <4>; no-1-8-v; non-removable; no-sdio;arch/arm/boot/dts/imx51.dtsi +1
-0@@ -172,6 +172,7 @@ <&clks IMX5_CLK_DUMMY>, <&clks IMX5_CLK_ESDHC1_PER_GATE>; clock-names = "ipg", "ahb", "per"; + bus-width = <4>; status = "disabled"; };Signature · 1 line
2.10.2
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel