Uart HW port map to ttyxxx

Is there a way to know the uart number (HW) map to ttyxxx?

It’s for hw testing.

Thank you,

hello HuiW,

please access [Jetson AGX Orin Series Design Guide] and check [Figure 15-1. Orin Module UART Connections] for the hardware connections to its SOC signal.

there’s device tree to define the UART ports and its address.
$TOP/public_sources/kernel_Src/hardware/nvidia/soc/t23x/kernel-dts/tegra234-soc/tegra234-soc-uart.dtsi
for example,
you’ll see address of uarta and uartd.

        uarta: serial@3100000 {
        uartd: serial@3130000 {

since ttyTHSx is registered by software side,
you should boot-up Orin platform and check the kernel messages,$dmesg for the mappings.
for example,
it’s actually uarta for ttyTHS0, and uartd for ttyTHS3.

[    6.228590] 3100000.serial: ttyTHS0 at MMIO 0x3100000 (irq = 13, base_baud = 0) is a TEGRA_UART
[    6.240694] 3130000.serial: ttyTHS3 at MMIO 0x3130000 (irq = 64, base_baud = 0) is a TEGRA_UART

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