Commit d765a4f3 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Geert Uytterhoeven

arm64: dts: renesas: Add mmc aliases into board dts files

After the commit 7320915c ("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: 7320915c ("mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.14")
Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/1614596786-22326-1-git-send-email-yoshihiro.shimoda.uh@renesas.comSigned-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent e8ae8db1
...@@ -12,6 +12,9 @@ / { ...@@ -12,6 +12,9 @@ / {
aliases { aliases {
serial0 = &scif2; serial0 = &scif2;
serial1 = &hscif0; serial1 = &hscif0;
mmc0 = &sdhi3;
mmc1 = &sdhi0;
mmc2 = &sdhi2;
}; };
chosen { chosen {
......
...@@ -21,6 +21,9 @@ aliases { ...@@ -21,6 +21,9 @@ aliases {
serial4 = &hscif2; serial4 = &hscif2;
serial5 = &scif5; serial5 = &scif5;
ethernet0 = &avb; ethernet0 = &avb;
mmc0 = &sdhi3;
mmc1 = &sdhi0;
mmc2 = &sdhi2;
}; };
chosen { chosen {
......
...@@ -22,6 +22,9 @@ aliases { ...@@ -22,6 +22,9 @@ aliases {
serial5 = &scif5; serial5 = &scif5;
serial6 = &scif4; serial6 = &scif4;
ethernet0 = &avb; ethernet0 = &avb;
mmc0 = &sdhi3;
mmc1 = &sdhi0;
mmc2 = &sdhi2;
}; };
chosen { chosen {
......
...@@ -17,6 +17,8 @@ / { ...@@ -17,6 +17,8 @@ / {
aliases { aliases {
serial0 = &scif2; serial0 = &scif2;
serial1 = &hscif2; serial1 = &hscif2;
mmc0 = &sdhi0;
mmc1 = &sdhi3;
}; };
chosen { chosen {
......
...@@ -22,6 +22,9 @@ aliases { ...@@ -22,6 +22,9 @@ aliases {
serial5 = &scif5; serial5 = &scif5;
serial6 = &scif4; serial6 = &scif4;
ethernet0 = &avb; ethernet0 = &avb;
mmc0 = &sdhi3;
mmc1 = &sdhi0;
mmc2 = &sdhi2;
}; };
chosen { chosen {
......
...@@ -16,6 +16,9 @@ / { ...@@ -16,6 +16,9 @@ / {
aliases { aliases {
serial0 = &scif2; serial0 = &scif2;
ethernet0 = &avb; ethernet0 = &avb;
mmc0 = &sdhi3;
mmc1 = &sdhi0;
mmc2 = &sdhi1;
}; };
chosen { chosen {
......
...@@ -36,6 +36,9 @@ aliases { ...@@ -36,6 +36,9 @@ aliases {
serial0 = &scif2; serial0 = &scif2;
serial1 = &hscif1; serial1 = &hscif1;
ethernet0 = &avb; ethernet0 = &avb;
mmc0 = &sdhi2;
mmc1 = &sdhi0;
mmc2 = &sdhi3;
}; };
chosen { chosen {
......
...@@ -16,6 +16,7 @@ / { ...@@ -16,6 +16,7 @@ / {
aliases { aliases {
serial1 = &hscif0; serial1 = &hscif0;
serial2 = &scif1; serial2 = &scif1;
mmc2 = &sdhi3;
}; };
clksndsel: clksndsel { clksndsel: clksndsel {
......
...@@ -23,6 +23,8 @@ / { ...@@ -23,6 +23,8 @@ / {
aliases { aliases {
serial0 = &scif2; serial0 = &scif2;
ethernet0 = &avb; ethernet0 = &avb;
mmc0 = &sdhi2;
mmc1 = &sdhi0;
}; };
chosen { chosen {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment