ARM: dts: sun7i: a20: fix MMC index enumeration
Commit Message
Currently, the OLinuXino-A20-Micro experiences non-deterministic MMC
enumeration during boot. When both an SDIO WiFi module (MMC1) and
an SD card (MMC0) are present, the kernel may swap their indices.
Explicitly define mmc* aliases to ensure consistent device naming
and prevent mapping conflicts.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
arch/arm/boot/dts/allwinner/sun7i-a20.dtsi | 4 ++++
1 file changed, 4 insertions(+)
@@ -55,6 +55,10 @@ / {
#size-cells = <1>;
aliases {
+ mmc0 = &mmc0;
+ mmc1 = &mmc1;
+ mmc2 = &mmc2;
+ mmc3 = &mmc3;
ethernet0 = &gmac;
};