Skip to contentSkip to conversation

ARM: dts: imx6dl-yapp4: Use aliases to set custom MMC device indexes

PATCH Applied Michal Vokáč 2 participants 2 messages Apr 30, 2021 – May 23, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx6dl-yapp4: Use aliases to set custom MMC device indexes

Until commit fa2d0aa96941 ("mmc: core: Allow setting slot index via device tree alias") was introduced, our usdhc3 and usdhc4 devices were enumerated as mmc0 and mmc1. The mmc1 device is used to boot/update the board and its name must be fixed.

With the referenced commit, aliases from imx6qdl.dtsi took effect. Override the aliases to get back the original device indexes.

---
 arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +2 -0
index 686dab57a1e4..ff8d335ee482 100644
@@ -11,6 +11,8 @@
 	aliases: aliases {
 		ethernet1 = &eth1;
 		ethernet2 = &eth2;
+		mmc0 = &usdhc3;
+		mmc1 = &usdhc4;
 	};
 
 	backlight: backlight {
Signature · 1 line
2.1.4
Applied
#1 lore raw
Quoted 9 lines · Michal Vokáč

Until commit fa2d0aa96941 ("mmc: core: Allow setting slot index via device tree alias") was introduced, our usdhc3 and usdhc4 devices were enumerated as mmc0 and mmc1. The mmc1 device is used to boot/update the board and its name must be fixed.

With the referenced commit, aliases from imx6qdl.dtsi took effect. Override the aliases to get back the original device indexes.

Applied, thanks.