[PATCH v2] arm: dts: ipq5424-rdp466: add chosen node for serial console

Gurumoorthy Santhakumar gurumoorthy.santhakumar at oss.qualcomm.com
Wed Jun 3 13:38:53 CEST 2026


Add a /chosen node with stdout-path pointing to serial0 (uart1) to
enable the DT-driven console discovery path in
serial_find_console_or_panic().

Without this node, the live DT path in serial_find_console_or_panic()
is skipped and the fallback path is used. Adding the /chosen node makes
the console selection explicit and deterministic, ensuring the correct
serial device is always selected as the console.

Signed-off-by: Gurumoorthy Santhakumar <gurumoorthy.santhakumar at oss.qualcomm.com>
---
Changes in v2:
- Replaced the DM_FLAG_PRE_RELOC approach (v1) with adding a /chosen
  node in the board-specific U-Boot DTSI overlay, as suggested by
  Casey Connolly. This is the standard DT mechanism for specifying
  the console device and avoids modifying driver flags.

Link: https://lore.kernel.org/u-boot/20260524050328.414639-1-gurumoorthy.snthakumar@oss.qualcomm.com/
---
---
 arch/arm/dts/ipq5424-rdp466-u-boot.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi b/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi
index 9e4af4d9f72..36640f31d61 100644
--- a/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi
+++ b/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi
@@ -12,6 +12,9 @@
 		reg = <0x0 0x80000000 0x0 0x20000000>;
 	};
 
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 };
 
 	&sdhc {
-- 
2.34.1



More information about the U-Boot mailing list