diff --git a/target/linux/realtek/dts-5.15/rtl8382_iodata_bsh-g24mb.dts b/target/linux/realtek/dts-5.15/rtl8382_iodata_bsh-g24mb.dts index d19960c1086..8ea28ed2fde 100644 --- a/target/linux/realtek/dts-5.15/rtl8382_iodata_bsh-g24mb.dts +++ b/target/linux/realtek/dts-5.15/rtl8382_iodata_bsh-g24mb.dts @@ -16,10 +16,6 @@ led-upgrade = &led_sys_loop; }; - chosen { - bootargs = "console=ttyS0,115200"; - }; - memory@0 { device_type = "memory"; reg = <0x0 0x8000000>; diff --git a/target/linux/realtek/dts-5.15/rtl838x.dtsi b/target/linux/realtek/dts-5.15/rtl838x.dtsi index 64e13e1ff37..13ba6450b2d 100644 --- a/target/linux/realtek/dts-5.15/rtl838x.dtsi +++ b/target/linux/realtek/dts-5.15/rtl838x.dtsi @@ -117,8 +117,14 @@ }; }; + aliases { + serial0 = &uart0; + serial1 = &uart1; + }; + chosen { - bootargs = "console=ttyS0,115200"; + bootargs = "earlycon"; + stdout-path = "serial0:115200n8"; }; cpuintc: cpuintc { diff --git a/target/linux/realtek/dts-5.15/rtl838x_hpe_1920.dtsi b/target/linux/realtek/dts-5.15/rtl838x_hpe_1920.dtsi index 8e29af62bbf..e18f61345ea 100644 --- a/target/linux/realtek/dts-5.15/rtl838x_hpe_1920.dtsi +++ b/target/linux/realtek/dts-5.15/rtl838x_hpe_1920.dtsi @@ -5,7 +5,7 @@ / { chosen { - bootargs = "console=ttyS0,38400"; + stdout-path = "serial0:38400n8"; }; memory@0 { diff --git a/target/linux/realtek/dts-5.15/rtl8393_tplink_sg2452p-v4.dts b/target/linux/realtek/dts-5.15/rtl8393_tplink_sg2452p-v4.dts index b7300cfcbee..d2221c1d2f0 100644 --- a/target/linux/realtek/dts-5.15/rtl8393_tplink_sg2452p-v4.dts +++ b/target/linux/realtek/dts-5.15/rtl8393_tplink_sg2452p-v4.dts @@ -24,7 +24,7 @@ }; chosen { - bootargs = "console=ttyS0,38400"; + stdout-path = "serial0:38400n8"; }; keys { diff --git a/target/linux/realtek/dts-5.15/rtl839x.dtsi b/target/linux/realtek/dts-5.15/rtl839x.dtsi index 91d6e17a9ea..3f87f5622e2 100644 --- a/target/linux/realtek/dts-5.15/rtl839x.dtsi +++ b/target/linux/realtek/dts-5.15/rtl839x.dtsi @@ -142,8 +142,14 @@ }; }; + aliases { + serial0 = &uart0; + serial1 = &uart1; + }; + chosen { - bootargs = "console=ttyS0,115200"; + bootargs = "earlycon"; + stdout-path = "serial0:115200n8"; }; cpuintc: cpuintc { diff --git a/target/linux/realtek/dts-5.15/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi b/target/linux/realtek/dts-5.15/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi index fb2aa18d218..f04e98b9cfe 100644 --- a/target/linux/realtek/dts-5.15/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi +++ b/target/linux/realtek/dts-5.15/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi @@ -6,7 +6,7 @@ / { chosen { - bootargs = "console=ttyS0,9600"; + stdout-path = "serial0:9600n8"; }; memory@0 { diff --git a/target/linux/realtek/dts-5.15/rtl930x.dtsi b/target/linux/realtek/dts-5.15/rtl930x.dtsi index fdec626c9a8..9b0a5781a26 100644 --- a/target/linux/realtek/dts-5.15/rtl930x.dtsi +++ b/target/linux/realtek/dts-5.15/rtl930x.dtsi @@ -24,8 +24,14 @@ reg = <0x0 0x8000000>; }; + aliases { + serial0 = &uart0; + serial1 = &uart1; + }; + chosen { - bootargs = "console=ttyS0,115200"; + bootargs = "earlycon"; + stdout-path = "serial0:115200n8"; }; cpuintc: cpuintc { diff --git a/target/linux/realtek/dts-5.15/rtl931x.dtsi b/target/linux/realtek/dts-5.15/rtl931x.dtsi index a5166141e6f..e7e7840a223 100644 --- a/target/linux/realtek/dts-5.15/rtl931x.dtsi +++ b/target/linux/realtek/dts-5.15/rtl931x.dtsi @@ -28,9 +28,15 @@ device_type = "memory"; reg = <0x0 0x10000000>; }; - + + aliases { + serial0 = &uart0; + serial1 = &uart1; + }; + chosen { - bootargs = "console=ttyS0,115200"; + bootargs = "earlycon"; + stdout-path = "serial0:115200n8"; }; lx_clk: lx_clk { diff --git a/target/linux/realtek/files-5.15/arch/mips/rtl838x/prom.c b/target/linux/realtek/files-5.15/arch/mips/rtl838x/prom.c index abf594aa040..0c98af95485 100644 --- a/target/linux/realtek/files-5.15/arch/mips/rtl838x/prom.c +++ b/target/linux/realtek/files-5.15/arch/mips/rtl838x/prom.c @@ -117,9 +117,6 @@ void __init prom_init(void) { uint32_t model; - /* uart0 */ - setup_8250_early_printk_port(0xb8002000, 2, 0); - model = sw_r32(RTL838X_MODEL_NAME_INFO); pr_info("RTL838X model is %x\n", model); model = model >> 16 & 0xFFFF;