arm64: dts: ti: k3-am64: Use phandle to stdout UART node
authorAndrew Davis <afd@ti.com>
Thu, 1 Jun 2023 18:49:33 +0000 (13:49 -0500)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 15 Jun 2023 05:35:49 +0000 (11:05 +0530)
Using a phandle makes it clear which UART we are choosing without needing
to resolve through an alias first.

Especially useful for boards like the TI J721s2-EVM where the alias is
"serial2" but it actually resolves to the 8th UART instance(main_uart8).

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20230601184933.358731-2-afd@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am642-evm.dts
arch/arm64/boot/dts/ti/k3-am642-sk.dts

index 4fd5c39..e897fea 100644 (file)
@@ -17,7 +17,7 @@
        model = "Texas Instruments AM642 EVM";
 
        chosen {
-               stdout-path = "serial2:115200n8";
+               stdout-path = &main_uart0;
        };
 
        aliases {
index 44e18c8..78ae490 100644 (file)
@@ -17,7 +17,7 @@
        model = "Texas Instruments AM642 SK";
 
        chosen {
-               stdout-path = "serial2:115200n8";
+               stdout-path = &main_uart0;
        };
 
        aliases {