ARM: dts: imx6dl-yapp4: Use aliases to set custom MMC device indexes
authorMichal Vokáč <michal.vokac@ysoft.com>
Fri, 30 Apr 2021 13:53:15 +0000 (15:53 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 May 2021 02:02:02 +0000 (10:02 +0800)
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.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi

index f2c7298..d3921f2 100644 (file)
@@ -11,6 +11,8 @@
        aliases: aliases {
                ethernet1 = &eth1;
                ethernet2 = &eth2;
+               mmc0 = &usdhc3;
+               mmc1 = &usdhc4;
        };
 
        backlight: backlight {