PROCESSOR-SDK-AM62X: How to change the linux-kernel console to UART6 to UART0 on Variscite AM62 SOM

Part Number: PROCESSOR-SDK-AM62X

Tool/software:

Our custom board will use UART6 as a serial console.
Since the board is not yet complete, we are experimenting with VAR-SOM-AM62.

We have modified the DTS of the linux-kernel as follows:

diff --git a/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts b/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts
index 9ea7118de8c0..94e05c2933cd 100644
--- a/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts
+++ b/arch/arm64/boot/dts/ti/k3-am625-var-som-symphony.dts
@@ -47,8 +47,8 @@ backlight: backlight {
	};
	chosen {
-		stdout-path = "serial0:115200n8";
-		bootargs = "console=ttyS0,115200n8 earlycon=ns16550a,mmio32,0x02800000";
+		stdout-path = "serial6:115200n8";
+		bootargs = "console=ttyS6,115200n8 earlycon=ns16550a,mmio32,0x02860000";
	};
	clk_ov5640_fixed: clock {

we have created bbapend file at meta-variscite-bsp-ti/recipes-kernel/linux/linux-variscite_%.bbappend as follows:

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
 
SRC_URI:append = " \
    file://am62-thermo-debug-port.patch \
"
 
python do_display_banner() {
    bb.plain("***********************************************");
    bb.plain("*                                             *");
    bb.plain("*   Applying Change Serial Console patches    *");
    bb.plain("*                                             *");
    bb.plain("***********************************************");
}
 
addtask display_banner before do_patch

we can verify patches while building:

Also, verified dtb file included in wic image:

fdtdump k3-am625-var-som-symphony.dtb > test.txt

7522.test.txt

we also tried with some other changes:

References: