[PATCH v2 13/14] realtek: modernise devicetree console setup

Sander Vanheule sander at svanheule.net
Sun Dec 12 12:01:35 PST 2021


Instead of providing a console= bootarg, provide the stdout-path
property. Complement this with adding the earlycon bootarg, so early
console output is available.

Co-developed-by: INAGAKI Hiroshi <musashino.open at gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
Signed-off-by: Sander Vanheule <sander at svanheule.net>
Tested-by: Bjørn Mork <bjorn at mork.no>
---
 target/linux/realtek/dts-5.10/rtl838x.dtsi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10/rtl838x.dtsi
index 835fc4a8f8c3..f7b497978ae8 100644
--- a/target/linux/realtek/dts-5.10/rtl838x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl838x.dtsi
@@ -65,8 +65,13 @@
 		};
 	};
 
+	aliases {
+		serial0 = &uart0;
+	};
+
 	chosen {
-		bootargs = "console=ttyS0,115200";
+		stdout-path = "serial0:115200n8";
+		bootargs = "earlycon";
 	};
 
 	cpu_clk: cpu_clk {
-- 
2.33.1




More information about the openwrt-devel mailing list