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.

AM62A7: Changing U-boot console uart0 to uart5 part2

Part Number: AM62A7
Other Parts Discussed in Thread: SYSCONFIG
I asked a question on the following forum about how to change the UART port for the U-boot console.
  • 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

     
    thank you for your reply.
     
    I have attached the patch file of the device tree edited so that the Uboot console can be used on main_UART5 below.
     
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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";
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     
    I want to check if the pin settings are correct, but I don't know how to get the correct pin muxing allocation using Sysconfig. Could you please tell me how to use the detailed steps?
     
    Could you please confirm?
     
    Regards,
    Rei
     
  • Hi Aparna,
    Thank you for your reply.
     
    The problem was solved by editing the ATF contents as follows, referring to the FAQ.
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    thank you very much!
    Regards,
    Rei