Skip to contentSkip to conversation

ARM: socfpga: dts: Enable MMC support at correct place in the DT

PATCH New Marek Vasut 2 participants 2 messages Dec 20, 2015 – Dec 21, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

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 +
 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.

V2: Rebase on top of pristine next/master with just the MCV correction patch

arch/arm/boot/dts/socfpga.dtsi +1 -0
index 39c470e..3ed4abd 100644
@@ -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
index a75a666..3c88678 100644
@@ -79,6 +79,7 @@
 &mmc0 {
 	vmmc-supply = <&regulator_3_3v>;
 	vqmmc-supply = <&regulator_3_3v>;
+	status = "okay";
 };
 
 &usb1 {
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts +1 -0
index 555e9ca..afea364 100644
@@ -100,6 +100,7 @@
 &mmc0 {
 	vmmc-supply = <&regulator_3_3v>;
 	vqmmc-supply = <&regulator_3_3v>;
+	status = "okay";
 };
 
 &uart0 {
arch/arm/boot/dts/socfpga_cyclone5_mcv.dtsi +1 -0
index baecd98..f86f9c0 100644
@@ -30,4 +30,5 @@
 
 &mmc0 {	/* On-SoM eMMC */
 	bus-width = <8>;
+	status = "okay";
 };
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +1 -0
index d4d0a28..15e43f4 100644
@@ -84,6 +84,7 @@
 	cd-gpios = <&portb 18 0>;
 	vmmc-supply = <&regulator_3_3v>;
 	vqmmc-supply = <&regulator_3_3v>;
+	status = "okay";
 };
 
 &usb1 {
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +1 -0
index 48bf651..b61f22f 100644
@@ -80,6 +80,7 @@
 &mmc0 {
 	vmmc-supply = <&regulator_3_3v>;
 	vqmmc-supply = <&regulator_3_3v>;
+	status = "okay";
 };
 
 &usb1 {
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 ARM: socfpga: dts: Enable MMC support at correct place in the DT

Quoted 5 lines · Marek Vasut

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.

Thanks Marek. Applied.

Dinh