In Orin AGX UART5 is not working

Hi Navidia team, we wanted use UART5 as serial. Pin mux is as below. Same pin is used M.2 KEY E. Need help what are the changes need to do. tty demesg and pinmux as below. Please let me any info required to guide us.
(1)=================tty dmesg log=============
root@nvidia-desktop:/home/nvidia# sudo dmesg | grep tty
[ 0.000000] Kernel command line: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 mminit_loglevel=4 console=ttyTCU0,115200 console=tty0 firmware_class.path=/etc/firmware fbcon=map:0 net.ifnames=0
[ 0.000919] printk: console [tty0] enabled
[ 0.405168] 31d0000.serial: ttyAMA0 at MMIO 0x31d0000 (irq = 75, base_baud = 0) is a SBSA
[ 0.718815] printk: console [ttyTCU0] enabled
[ 6.175709] 3100000.serial: ttyTHS0 at MMIO 0x3100000 (irq = 13, base_baud = 0) is a TEGRA_UART
[ 6.190368] 3140000.serial: ttyTHS4 at MMIO 0x3140000 (irq = 14, base_baud = 0) is a TEGRA_UART
[ 6.205152] 3110000.serial: ttyTHS1 at MMIO 0x3110000 (irq = 73, base_baud = 0) is a TEGRA_UART
[ 6.220024] 3130000.serial: ttyTHS3 at MMIO 0x3130000 (irq = 74, base_baud = 0) is a TEGRA_UART

(2)==============pinmux is as below. ====================
uart5_tx_py5 {
nvidia,pins = “uart5_tx_py5”;
nvidia,function = “uarti”;
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};

		uart5_rx_py6 {
			nvidia,pins = "uart5_rx_py6";
			nvidia,function = "uarti";
			nvidia,pull = <TEGRA_PIN_PULL_UP>;
			nvidia,tristate = <TEGRA_PIN_ENABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
		};

		uart5_rts_py7 {
			nvidia,pins = "uart5_rts_py7";
			nvidia,function = "uarte";
			nvidia,pull = <TEGRA_PIN_PULL_NONE>;
			nvidia,tristate = <TEGRA_PIN_DISABLE>;
			nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
		};

		uart5_cts_pz0 {
			nvidia,pins = "uart5_cts_pz0";
			nvidia,function = "uarte";
			nvidia,pull = <TEGRA_PIN_PULL_UP>;
			nvidia,tristate = <TEGRA_PIN_ENABLE>;
			nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			nvidia,lpdr = <TEGRA_PIN_DISABLE>;
		};
		==============================================

Hi,

This topic is a better fit for the Jetson category
I’m moving this to the AGX Orin forum.

hello vardhaman.k,

could you please check pin config, and please share the results.
for example, # cat /sys/kernel/debug/pinctrl/2430000.pinmux/pinconf-groups | grep uart

@JerryChang please find below
nvidia@nvidia-desktop:~$ sudo cat /sys/kernel/debug/pinctrl/2430000.pinmux/pinconf-groups | grep uart
[sudo] password for nvidia:
1 (uart3_rx_pcc6):
func=uartc
2 (uart3_tx_pcc5):
func=uartc
120 (uart2_tx_px4):
func=uartb
121 (uart2_rx_px5):
func=uartb
122 (uart2_rts_px6):
func=uartb
123 (uart2_cts_px7):
func=uartb
124 (uart5_tx_py5):
125 (uart5_rx_py6):
126 (uart5_rts_py7):
func=uarte
127 (uart5_cts_pz0):
func=uarte
152 (uart1_cts_pr5):
func=uarta
153 (uart1_rts_pr4):
func=uarta
154 (uart1_rx_pr3):
func=uarta
155 (uart1_tx_pr2):
func=uarta
157 (uart4_cts_ph6):
158 (uart4_rts_ph5):
159 (uart4_rx_ph4):
160 (uart4_tx_ph3):
nvidia@nvidia-desktop:~$

@JerryChang What we have observed UART5 in Orin AGX connected to UART2 Ballname,
image

I was expecting /dev/ttyTHS4 but /dev/ttyTHS1 is mapped in my case. Now it ttyTHS1 is working for UART5.

that’s correct, it’s uartb: serial@3110000, mapping to ttyTHS1.
you may see-also Topic 224460 for reference, thanks

Hi @JerryChang
In other module UART5 mapped UART5 ballname . Only Orin module only seen like this swapping with UART5 and UART2 ball name. vice versa. Any way working for me. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.