Skip to contentSkip to conversation

ARM: rpi: use sdhost for eMMC access on CM3.

PATCH Applied Tomaz Solc 2 participants 2 messages Jun 26, 2019 – Jun 27, 2019

Subsystems (3)
lore
Share & tools
lore

Tomaz Solc

author
#0 lore raw

PATCH 1/1 ARM: rpi: use sdhost for eMMC access on CM3.

This commit removes the fix for the upstream devicetree where eMMC was remapped to the sdhci interface. This is no longer needed since sdhost driver is now functional in barebox. A similar change was done to the R.Pi 3 devicetree in 9036d1db.

In fact, this remap prevented CM3 from booting if barebox was compiled with CONFIG_MCI_BCM283X_SDHOST (in rpi_defconfig since b093468c). In that case both sdhost and sdhci drivers were active and tried to set their corresponsing alt functions for the same set of GPIOs at the same time.

---
 arch/arm/dts/bcm2837-rpi-cm3.dts | 7 -------
 1 file changed, 7 deletions(-)
arch/arm/dts/bcm2837-rpi-cm3.dts +0 -7
index cfbffe175..01c1f9a67 100644
@@ -9,10 +9,3 @@
 		reg = <0x0 0x0>;
 	};
 };
-
-&sdhci {
-	pinctrl-0 = <&emmc_gpio48>;
-	no-sd;
-	non-removable;
-	status = "okay";
-};
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 10 lines · Tomaz Solc

This commit removes the fix for the upstream devicetree where eMMC was remapped to the sdhci interface. This is no longer needed since sdhost driver is now functional in barebox. A similar change was done to the R.Pi 3 devicetree in 9036d1db.

In fact, this remap prevented CM3 from booting if barebox was compiled with CONFIG_MCI_BCM283X_SDHOST (in rpi_defconfig since b093468c). In that case both sdhost and sdhci drivers were active and tried to set their corresponsing alt functions for the same set of GPIOs at the same time.

Quoted 4 lines
---
 arch/arm/dts/bcm2837-rpi-cm3.dts | 7 -------
 1 file changed, 7 deletions(-)

Applied to master, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox