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>
model = "Texas Instruments AM642 EVM";
chosen {
- stdout-path = "serial2:115200n8";
+ stdout-path = &main_uart0;
};
aliases {
model = "Texas Instruments AM642 SK";
chosen {
- stdout-path = "serial2:115200n8";
+ stdout-path = &main_uart0;
};
aliases {