arm64: dts: mediatek: alias all enabled serial ports

On most MediaTek boards only serial0 is aliased, so the remaining
enabled uarts get first-free ttyS line numbers from the 8250 core in
probe order. When the console uart defers on its clocks another uart can
win line 0: console=ttyS0 then ends up on the wrong port and the boot
looks like a hang on the serial console, depending on probe order.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> # kukui & asurada-hayato
Link: https://patch.msgid.link/20260727-ccaione-genio-serial-aliases-v2-1-0f2ae41a8e89@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Carlo Caione 2026-07-27 09:38:08 +02:00 committed by Greg Kroah-Hartman
parent 355b329694
commit 57d0a99e93
12 changed files with 21 additions and 0 deletions

View File

@ -20,6 +20,7 @@ aliases {
mmc2 = &mmc2;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
};
backlight_lcd0: backlight {

View File

@ -20,6 +20,7 @@ / {
aliases {
serial0 = &uart0;
serial2 = &uart2;
};
chosen {

View File

@ -21,6 +21,8 @@ / {
aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
ethernet0 = &gmac0;
ethernet1 = &gmac1;
};

View File

@ -16,6 +16,8 @@ / {
aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
};
chosen {

View File

@ -13,6 +13,7 @@
/ {
aliases {
serial0 = &uart0;
serial1 = &uart1;
mmc0 = &mmc0;
mmc1 = &mmc1;
};

View File

@ -9,6 +9,10 @@ / {
model = "Google Hayato rev1";
chassis-type = "convertible";
compatible = "google,hayato-rev1", "google,hayato", "mediatek,mt8192";
aliases {
serial1 = &uart1;
};
};
&keyboard_controller {

View File

@ -19,6 +19,7 @@ / {
aliases {
serial0 = &uart0;
serial1 = &uart1;
};
chosen {

View File

@ -24,6 +24,8 @@ aliases {
mmc0 = &mmc0;
mmc1 = &mmc1;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
};
chosen {

View File

@ -33,6 +33,8 @@ aliases {
mmc0 = &mmc0;
mmc1 = &mmc1;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
};
backlight_lcm1: backlight-lcm1 {

View File

@ -17,6 +17,8 @@ aliases {
i2c5 = &i2c5;
i2c6 = &i2c6;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
};
chosen {

View File

@ -31,6 +31,8 @@ aliases {
rtc0 = &rv3028;
rtc1 = &mt6359rtc;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
};
backlight_lcd0: backlight-lcd0 {

View File

@ -22,6 +22,7 @@ aliases {
mmc0 = &mmc0;
mmc1 = &mmc1;
serial0 = &uart0;
serial1 = &uart1;
};
chosen {