arm: dts: vf610-twr: Add support for sdhc1
PATCH 1/1 arm: dts: vf610-twr: Add support for sdhc1
From: Cosmin Stoica <[email protected]>
The kernel was not able to boot from SD card because sdhc support was not present into the dts.
A new entry for sdhc1 was added for vf610-twr board based on the compatible entry present on imx53.
After applying these changes, the kernel is able to boot successfully from SD card.
--- arch/arm/boot/dts/vf610-twr.dts | 7 +++++++ arch/arm/boot/dts/vf610.dtsi | 10 ++++++++++ 2 files changed, 17 insertions(+)
arch/arm/boot/dts/vf610-twr.dts +7 -0
@@ -227,3 +227,10 @@ pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; + +&esdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_esdhc1_1>; + bus-width = <4>; + status = "okay"; +};
arch/arm/boot/dts/vf610.dtsi +10 -0
@@ -344,6 +344,16 @@ status = "disabled"; }; + esdhc1: esdhc at 400b2000 { + compatible = "fsl,imx53-esdhc"; + reg = <0x400b2000 0x4000>; + interrupts = <0 28 0x04>; + clocks = <&clks VF610_CLK_IPG_BUS>, <&clks VF610_CLK_PLATFORM_BUS>, <&clks VF610_CLK_ESDHC1>; + clock-names = "ipg", "ahb", "per"; + bus-width = <4>; + status = "disabled"; + }; + fec0: ethernet at 400d0000 { compatible = "fsl,mvf600-fec"; reg = <0x400d0000 0x1000>;
Signature · 1 line
1.7.9.5
PATCH 1/1 arm: dts: vf610-twr: Add support for sdhc1
Quoted 5 lines · Stoica Cosmin Stefan
From: Cosmin Stoica <[email protected]>
The kernel was not able to boot from SD card because sdhc support was not present into the dts.
Quoted 7 lines
A new entry for sdhc1 was added for vf610-twr board based on the compatible entry present on imx53.
After applying these changes, the kernel is able to boot successfully from SD card.
Signed-off-by Cosmin Stoica <[email protected]>
Use "ARM:" instead of "arm:" in patch subject please.
Quoted 10 lines
--- arch/arm/boot/dts/vf610-twr.dts | 7 +++++++ arch/arm/boot/dts/vf610.dtsi | 10 ++++++++++ 2 files changed, 17 insertions(+)arch/arm/boot/dts/vf610-twr.dts +0
-0
arch/arm/boot/dts/vf610-twr.dts line 236
Quoted 10 lines
arch/arm/boot/dts/vf610-twr.dts +7
-0@@ -227,3 +227,10 @@ pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; + +&esdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_esdhc1_1>; + bus-width = <4>; + status = "okay"; +};
Sort the node alphabetically. IOW, it should be put right before &fec0.
arch/arm/boot/dts/vf610.dtsi line 351
Quoted 13 lines
arch/arm/boot/dts/vf610.dtsi +5
-0@@ -344,6 +344,16 @@ status = "disabled"; }; + esdhc1: esdhc at 400b2000 { + compatible = "fsl,imx53-esdhc"; + reg = <0x400b2000 0x4000>; + interrupts = <0 28 0x04>; + clocks = <&clks VF610_CLK_IPG_BUS>, <&clks VF610_CLK_PLATFORM_BUS>, <&clks VF610_CLK_ESDHC1>;
The line is too long. You can split it like:
clocks = <&clks VF610_CLK_IPG_BUS>, <&clks VF610_CLK_PLATFORM_BUS>, <&clks VF610_CLK_ESDHC1>;
arch/arm/boot/dts/vf610.dtsi line 353
Quoted 2 lines
arch/arm/boot/dts/vf610.dtsi +2
-0+ clock-names = "ipg", "ahb", "per"; + bus-width = <4>;
This property can be dropped, since you have it in board dts.
Shawn
Quoted 10 lines
arch/arm/boot/dts/vf610.dtsi +3
-0+ status = "disabled"; + }; + fec0: ethernet at 400d0000 { compatible = "fsl,mvf600-fec"; reg = <0x400d0000 0x1000>;Signature · 1 line
1.7.9.5
PATCH v2 1/1 ARM: dts: vf610-twr: Add support for sdhc1
In reply to Stoica Cosmin StefanFrom: Cosmin Stoica <[email protected]>
The kernel was not able to boot from SD card because sdhc support was not present into the dts.
A new entry for sdhc1 was added for vf610-twr board based on the compatible entry present on imx53.
After applying these changes, the kernel is able to boot successfully from SD card.
Changes v1-v2:
According to Shawn Guo's comments:
- moved esdhc1 node before fec0 in board dts file;
- reformatted clocks line;
- removed duplicate property (bus-width) in dtsi file.
--- arch/arm/boot/dts/vf610-twr.dts | 8 ++++++++ arch/arm/boot/dts/vf610.dtsi | 11 +++++++++++ 2 files changed, 19 insertions(+)
arch/arm/boot/dts/vf610-twr.dts +8 -0
@@ -111,6 +111,13 @@ }; }; +&esdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_esdhc1_1>; + bus-width = <4>; + status = "okay"; +}; + &fec0 { phy-mode = "rmii"; pinctrl-names = "default";
@@ -227,3 +234,4 @@ pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; +
arch/arm/boot/dts/vf610.dtsi +11 -0
@@ -344,6 +344,17 @@ status = "disabled"; }; + esdhc1: esdhc at 400b2000 { + compatible = "fsl,imx53-esdhc"; + reg = <0x400b2000 0x4000>; + interrupts = <0 28 0x04>; + clocks = <&clks VF610_CLK_IPG_BUS>, + <&clks VF610_CLK_PLATFORM_BUS>, + <&clks VF610_CLK_ESDHC1>; + clock-names = "ipg", "ahb", "per"; + status = "disabled"; + }; + fec0: ethernet at 400d0000 { compatible = "fsl,mvf600-fec"; reg = <0x400d0000 0x1000>;
Signature · 1 line
1.7.9.5
PATCH v2 1/1 ARM: dts: vf610-twr: Add support for sdhc1
Quoted 29 lines · Stoica Cosmin Stefan
From: Cosmin Stoica <[email protected]>
The kernel was not able to boot from SD card because sdhc support was not present into the dts.
A new entry for sdhc1 was added for vf610-twr board based on the compatible entry present on imx53.
After applying these changes, the kernel is able to boot successfully from SD card.
Changes v1-v2:
According to Shawn Guo's comments:
- moved esdhc1 node before fec0 in board dts file;
- reformatted clocks line;
- removed duplicate property (bus-width) in dtsi file.Signed-off-by Cosmin Stoica <[email protected]>Signed-off-by Chircu Bogdan <[email protected]>--- arch/arm/boot/dts/vf610-twr.dts | 8 ++++++++ arch/arm/boot/dts/vf610.dtsi | 11 +++++++++++ 2 files changed, 19 insertions(+)arch/arm/boot/dts/vf610-twr.dts +0
-0
arch/arm/boot/dts/vf610-twr.dts line 116
Quoted 6 lines
arch/arm/boot/dts/vf610-twr.dts +3
-0@@ -111,6 +111,13 @@ }; }; +&esdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_esdhc1_1>;
Please base the patch on my for-next branch below, where stuff like pinctrl_esdhc1_1 have gone into board dts.
git://git.linaro.org/people/shawnguo/linux-2.6.git for-next
arch/arm/boot/dts/vf610-twr.dts line 237
Quoted 12 lines
arch/arm/boot/dts/vf610-twr.dts +5
-0+ bus-width = <4>; + status = "okay"; +}; + &fec0 { phy-mode = "rmii"; pinctrl-names = "default";@@ -227,3 +234,4 @@ pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; +
You shouldn't add this new line.
Shawn
Quoted 26 lines
arch/arm/boot/dts/vf610.dtsi +11
-0@@ -344,6 +344,17 @@ status = "disabled"; }; + esdhc1: esdhc at 400b2000 { + compatible = "fsl,imx53-esdhc"; + reg = <0x400b2000 0x4000>; + interrupts = <0 28 0x04>; + clocks = <&clks VF610_CLK_IPG_BUS>, + <&clks VF610_CLK_PLATFORM_BUS>, + <&clks VF610_CLK_ESDHC1>; + clock-names = "ipg", "ahb", "per"; + status = "disabled"; + }; + fec0: ethernet at 400d0000 { compatible = "fsl,mvf600-fec"; reg = <0x400d0000 0x1000>;Signature · 1 line
1.7.9.5