This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Rei,
Thanks for reaching out on the E2E Support Forum.
I would suggest you to change the UART allocation in the device tree source files. The allocation should be made for UART5 from UART0 and make sure that the pin muxing allocation for UART5 is also correct. Please check the following SysConfig online tool to get the correct pin muxing allocation for UART5 from dev.ti.com/sysconfig by selecting the correct board in this case AM62A.
Looking forward to your response.
Regards,
Vaibhav
Hi, Vaibhav
From 5d21caa57c7028d31366ad181b40c6deec99a5e1 Mon Sep 17 00:00:00 2001 From: Your Name <you@example.com> Date: Tue, 14 May 2024 10:36:31 +0900 Subject: [PATCH] u-boot console change uart0 to uart5 --- arch/arm/dts/k3-am62a7-r5-sk.dts | 6 +++++- arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 11 ++++++++++- arch/arm/dts/k3-am62a7-sk.dts | 17 ++++++++++++++++- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/k3-am62a7-r5-sk.dts b/arch/arm/dts/k3-am62a7-r5-sk.dts index 5f1bd32a75..63289f7b13 100644 --- a/arch/arm/dts/k3-am62a7-r5-sk.dts +++ b/arch/arm/dts/k3-am62a7-r5-sk.dts @@ -20,7 +20,8 @@ }; chosen { - stdout-path = "serial2:115200n8"; + //stdout-path = "serial2:115200n8"; + stdout-path = "serial4:115200n8"; tick-timer = &timer1; }; @@ -102,6 +103,7 @@ }; }; + &mcu_pmx0 { status = "okay"; bootph-pre-ram; @@ -131,6 +133,7 @@ }; /* WKUP UART0 is used for DM firmware logs */ + &wkup_uart0 { pinctrl-names = "default"; pinctrl-0 = <&wkup_uart0_pins_default>; @@ -138,6 +141,7 @@ bootph-pre-ram; }; + /* Main UART1 is used for TIFS firmware logs */ &main_uart1 { pinctrl-names = "default"; diff --git a/arch/arm/dts/k3-am62a7-sk-u-boot.dtsi b/arch/arm/dts/k3-am62a7-sk-u-boot.dtsi index 0905205005..5770e1bf6c 100644 --- a/arch/arm/dts/k3-am62a7-sk-u-boot.dtsi +++ b/arch/arm/dts/k3-am62a7-sk-u-boot.dtsi @@ -6,7 +6,8 @@ / { chosen { - stdout-path = "serial2:115200n8"; + //stdout-path = "serial2:115200n8"; + stdout-path = "serial4:115200n8"; tick-timer = &timer1; }; @@ -67,10 +68,18 @@ bootph-pre-ram; }; +&main_uart5 { + bootph-pre-ram; +}; + &main_uart0_pins_default { bootph-pre-ram; }; +&main_uart5_pins_default { + bootph-pre-ram; +}; + &main_uart1 { bootph-pre-ram; }; diff --git a/arch/arm/dts/k3-am62a7-sk.dts b/arch/arm/dts/k3-am62a7-sk.dts index f727b5f825..0399aeaf59 100644 --- a/arch/arm/dts/k3-am62a7-sk.dts +++ b/arch/arm/dts/k3-am62a7-sk.dts @@ -19,13 +19,15 @@ aliases { serial2 = &main_uart0; + serial4 = &main_uart5; mmc0 = &sdhci0; mmc1 = &sdhci1; spi0 = &ospi0; }; chosen { - stdout-path = "serial2:115200n8"; + stdout-path = "serial4:115200n8"; + //stdout-path = "serial2:115200n8"; }; memory@80000000 { @@ -173,6 +175,13 @@ >; }; + main_uart5_pins_default: main-uart5-pins-default { + pinctrl-single,pins = < + AM62AX_IOPAD(0x1d8, PIN_INPUT, 1) /* (B17) UART5_RXD */ + AM62AX_IOPAD(0x1dc, PIN_OUTPUT, 1) /* (C18) UART5_TXD */ + >; + }; + main_i2c0_pins_default: main-i2c0-pins-default { pinctrl-single,pins = < AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */ @@ -400,6 +409,12 @@ pinctrl-0 = <&main_uart0_pins_default>; }; +&main_uart5 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_uart5_pins_default>; +}; + &fss { status = "okay"; }; -- 2.34.1
Hi Rei,
Please check this FAQ: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/988278/faq-tda4vm-j721e-j7200-how-to-switch-console-to-a-different-uart-instance
Regards,
Aparna
plat/ti/k3/common/plat_common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/ti/k3/common/plat_common.mk b/plat/ti/k3/common/plat_common.mk index fb633a8327..f4e9fdd656 100644 --- a/plat/ti/k3/common/plat_common.mk +++ b/plat/ti/k3/common/plat_common.mk @@ -37,7 +37,7 @@ ENABLE_PIE := 1 TI_16550_MDR_QUIRK := 1 $(eval $(call add_define,TI_16550_MDR_QUIRK)) -K3_USART := 0 +K3_USART := 5 $(eval $(call add_define,K3_USART)) # Allow customizing the UART baud rate