ARM: socfpga: dts: Enable MMC support at correct place in the DT
PATCH 1/1 ARM: socfpga: dts: Enable MMC support at correct place in the DT
The socfpga.dtsi explicitly enabled MMC support, but not all boards are equiped with an MMC card. There are setups which only have QSPI NOR. Therefore, disable the MMC support on socfpga.dtsi level and enable it on per-board basis.
--- arch/arm/boot/dts/socfpga.dtsi | 1 + arch/arm/boot/dts/socfpga_arria5_socdk.dts | 1 + arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts | 1 + arch/arm/boot/dts/socfpga_cyclone5_mcv.dtsi | 1 + arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 1 + arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 1 + 6 files changed, 6 insertions(+)
NOTE: This should not cause any trouble, since I checked all the boards
for the presence of the HPS SD card slot / eMMC.
arch/arm/boot/dts/socfpga.dtsi +1 -0
@@ -677,6 +677,7 @@ #size-cells = <0>; clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>; clock-names = "biu", "ciu"; + status = "disabled"; }; ocram: sram at ffff0000 {
arch/arm/boot/dts/socfpga_arria5_socdk.dts +1 -0
@@ -79,6 +79,7 @@ &mmc0 { vmmc-supply = <®ulator_3_3v>; vqmmc-supply = <®ulator_3_3v>; + status = "okay"; }; &usb1 {
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts +1 -0
@@ -100,6 +100,7 @@ &mmc0 { vmmc-supply = <®ulator_3_3v>; vqmmc-supply = <®ulator_3_3v>; + status = "okay"; }; &uart0 {
arch/arm/boot/dts/socfpga_cyclone5_mcv.dtsi +1 -0
@@ -30,4 +30,5 @@ &mmc0 { /* On-SoM eMMC */ bus-width = <8>; + status = "okay"; };
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +1 -0
@@ -84,6 +84,7 @@ cd-gpios = <&portb 18 0>; vmmc-supply = <®ulator_3_3v>; vqmmc-supply = <®ulator_3_3v>; + status = "okay"; }; &usb1 {
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +1 -0
@@ -172,6 +172,7 @@ &mmc0 { vmmc-supply = <®ulator_3_3v>; vqmmc-supply = <®ulator_3_3v>; + status = "okay"; }; &qspi {
Signature · 1 line
2.6.4
PATCH 1/1 ARM: socfpga: dts: Enable MMC support at correct place in the DT
Quoted 14 lines · Marek Vasut
The
socfpga.dtsiexplicitly enabled MMC support, but not all boards are equiped with an MMC card. There are setups which only have QSPI NOR. Therefore, disable the MMC support onsocfpga.dtsilevel and enable it on per-board basis.Signed-off-by Marek Vasut <[email protected]>Cc Alan Tull <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Marek Vasut <[email protected]>Cc Olof Johansson <[email protected]>Cc Thor Thayer <[email protected]>Cc Vince Bridgers <[email protected]>--- arch/arm/boot/dts/socfpga.dtsi | 1 +
<snip>
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts line 178
Quoted 12 lines
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +1
-0@@ -172,6 +172,7 @@ &mmc0 { vmmc-supply = <®ulator_3_3v>; vqmmc-supply = <®ulator_3_3v>; + status = "okay"; }; &qspi {
This part doesn't apply to any of the upstream branches. "&qspi" has not been enabled yet, unless I have missed that patch? Can you please rebase this patch to my branch:
git://git.kernel.org:pub/scm/linux/kernel/git/dinguyen/linux.git socfpga_for_next_v4.5_dts
Thanks,,
Dinh
PATCH 1/1 ARM: socfpga: dts: Enable MMC support at correct place in the DT
Quoted 33 lines · Dinh Nguyen
Quoted 15 lines · Marek Vasut
The
socfpga.dtsiexplicitly enabled MMC support, but not all boards are equiped with an MMC card. There are setups which only have QSPI NOR. Therefore, disable the MMC support onsocfpga.dtsilevel and enable it on per-board basis.Signed-off-by Marek Vasut <[email protected]>Cc Alan Tull <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Marek Vasut <[email protected]>Cc Olof Johansson <[email protected]>Cc Thor Thayer <[email protected]>Cc Vince Bridgers <[email protected]>---
arch/arm/boot/dts/socfpga.dtsi | 1 +<snip>
Quoted 14 lines
(quoted diff) +0
-0
b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dtsindex 54ed3f9..1a0c726 100644arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +1
-0@@ -172,6 +172,7 @@ &mmc0 { vmmc-supply = <®ulator_3_3v>; vqmmc-supply = <®ulator_3_3v>; + status = "okay";
Quoted 7 lines
Quoted 3 lines
};
&qspi {
This part doesn't apply to any of the upstream branches. "&qspi" has not been enabled yet, unless I have missed that patch? Can you please rebase this patch to my branch:
V2 is out, should be better.
I'm still working on the QSPI and had this patch way too high in the queue, sorry about that ;-)
Quoted 5 lines
git://git.kernel.org:pub/scm/linux/kernel/git/dinguyen/linux.git
socfpga_for_next_v4.5_dtsThanks,,
Dinh
Best regards,
Marek Vasut