arm64: dts: renesas: Add mmc aliases into board dts files
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 1 Mar 2021 11:06:26 +0000 (20:06 +0900)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 8 Mar 2021 09:24:12 +0000 (10:24 +0100)
After the commit 7320915c8861 ("mmc: Set PROBE_PREFER_ASYNCHRONOUS
for drivers that existed in v4.14"), the order of /dev/mmcblkN
was not fixed in some SoCs which have multiple sdhi controllers.
So, we were hard to use an sdhi device as rootfs by using
the kernel parameter like "root=/dev/mmcblkNpM".

According to the discussion on a mainling list [1], we can add
mmc aliases to fix the issue. So, add such aliases into Renesas
arm64 board dts files. Notes that mmc0 is an eMMC channel if
available.

[1]
https://lore.kernel.org/linux-arm-kernel/CAPDyKFptyEQNJu8cqzMt2WRFZcwEdjDiytMBp96nkoZyprTgmA@mail.gmail.com/

Fixes: 7320915c8861 ("mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.14")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/1614596786-22326-1-git-send-email-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/hihope-common.dtsi
arch/arm64/boot/dts/renesas/r8a774a1-beacon-rzg2m-kit.dts
arch/arm64/boot/dts/renesas/r8a774b1-beacon-rzg2n-kit.dts
arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
arch/arm64/boot/dts/renesas/r8a774e1-beacon-rzg2h-kit.dts
arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
arch/arm64/boot/dts/renesas/salvator-common.dtsi
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
arch/arm64/boot/dts/renesas/ulcb.dtsi

index 7a3da9b06f677f0caa52ba604dda4dbfed3eeac1..0c7e6f79059020ff9f49d163c8c68310e0c18f9d 100644 (file)
@@ -12,6 +12,9 @@
        aliases {
                serial0 = &scif2;
                serial1 = &hscif0;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi2;
        };
 
        chosen {
index 501cb05da228de6c5517a946c06ccf7958bed86e..3cf2e076940f3b5a8740ff9d97b5a362c1f52b0d 100644 (file)
@@ -21,6 +21,9 @@
                serial4 = &hscif2;
                serial5 = &scif5;
                ethernet0 = &avb;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi2;
        };
 
        chosen {
index 71763f4402a7c575149b1a4dfb7065acb77080c4..3c0d59def8ee534231a5bf5a6d88a8c181b57d26 100644 (file)
@@ -22,6 +22,9 @@
                serial5 = &scif5;
                serial6 = &scif4;
                ethernet0 = &avb;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi2;
        };
 
        chosen {
index a46b24f54c580d9687080a9bda40c1e697dd0fd6..4e72e4f2bab055a5d31f5e5dc1b714f04dcc005f 100644 (file)
@@ -17,6 +17,8 @@
        aliases {
                serial0 = &scif2;
                serial1 = &hscif2;
+               mmc0 = &sdhi0;
+               mmc1 = &sdhi3;
        };
 
        chosen {
index 273f062f290932720748cb477f45ddd239656268..7b6649a3ded0299ef242c23420a0053714c4adee 100644 (file)
@@ -22,6 +22,9 @@
                serial5 = &scif5;
                serial6 = &scif4;
                ethernet0 = &avb;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi2;
        };
 
        chosen {
index b966541f2e5b6f32b456fd6187daa7e227967ef8..295d34f1d216d963e22e38e60b6f72613e21ba7f 100644 (file)
@@ -16,6 +16,9 @@
        aliases {
                serial0 = &scif2;
                ethernet0 = &avb;
+               mmc0 = &sdhi3;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi1;
        };
 
        chosen {
index 645c3249366d6fa23130f3d03a197732cd43584f..c02a167f2ee469be6a42df7c915f382fbc1e1f2c 100644 (file)
@@ -36,6 +36,9 @@
                serial0 = &scif2;
                serial1 = &hscif1;
                ethernet0 = &avb;
+               mmc0 = &sdhi2;
+               mmc1 = &sdhi0;
+               mmc2 = &sdhi3;
        };
 
        chosen {
index e9ed2597f1c20621bc562f4d718b1fdda98ea88e..61bd4df09df0da9ab92926c022f8aaa963e54f08 100644 (file)
@@ -16,6 +16,7 @@
        aliases {
                serial1 = &hscif0;
                serial2 = &scif1;
+               mmc2 = &sdhi3;
        };
 
        clksndsel: clksndsel {
index 01124efa92bd3875d67696290ba2c4bd2416b3a4..14b211f357f8894a957d25307699eba4a334767b 100644 (file)
@@ -23,6 +23,8 @@
        aliases {
                serial0 = &scif2;
                ethernet0 = &avb;
+               mmc0 = &sdhi2;
+               mmc1 = &sdhi0;
        };
 
        chosen {