How to generate a /dev/ttytTHS5 use uart5

Dear NV_Team,
We had designer carrier board 0n Jatson AGX Xavier and delete M.2 Key E function, I know uart1 =>/dev/ttyTHS0 , want to use the uart5 like uart1(/dev/ttyTHS0) to connect other device.How to generate a /dev/ttytTHS5 use uart5.

hello noSIM,

it’s uart5_tx_py5, and uart5_rx_py6 for the UART-E signaling.
according to the pinmux spreadsheets, it’s set to UE3_TX/RX by the default pin configuration.

as your step, will generare the /dev/ttyTHS5 device?
need another step or not?

hello noSIM,

there should be THS5 if you setup the connections.
please check $ dmesg | grep THS via kernel init messages for confirmation,
thanks


I change uart5 according to the configuration of uart1.
Then fellow this link AGX_Xavier_Update_Pinmux reflash the board.

then check $ dmesg | grep THS,not found THS5.

tegra19x-jetson_agx_devkit-pinmux.dtsi (54.4 KB)
tegra19x-jetson_agx_devkit-gpio-default.dtsi (2.4 KB)

hello noSIM,

had you refer to [Jetson AGX Xavier UART Connections], and setup the connection routed on carrier board to M.2 Key E Connector?
thanks

[Jetson AGX Xavier UART Connections]? hardware or software?
M.2 Key E Connector has been deleted.I want to use uart5 as uart1.

hello noSIM,

please access Jetson AGX Xavier OEM Product Design Guide, you should have that hardware connections to enable uart-e.
thanks

that like a usb device insert to AGX, will generate /dev/ttyUSB0.
We have hardware connection.

In addition to check $ dmesg | grep THS or ls /dev/ttyTHS5, is there any way to detect uart5 connection

I don’t know if this will provide what you want, but in the software side, you might find this interesting:

sudo -s
find /sys -name '*uart*'
find /sys -name 'ttyTHS*'
# Note that there may be other associations with a file name path, e.g., something like "uartd".

hello noSIM,

it’s uarte, serial@3140000,
you should disassemble the device tree blob to review the uart definition.
for example,
$ dtc -I dtb -O dts -o output.txt bootloader/tegra194-p2888-0001-p2822-0000.dtb

I check tegra19x-mb1-pinmux-p2888-0000-a04-p2888-0000-b01.cfg,
uart5 :uarte;

check tegra194-soc-uart.dtsi,
uarte: serial@3140000;

check ‘dmesg | grep THS’
ttyTHS4 at MMIO 0x3140000,so uart5 is ttyTHS4 in system;

I link uart5 tx to uart5 rx in my board, use cutecom open /dev/ttyTHS4 and send data, but its not receive any thing;

hello noSIM,

you shall check the baudrate configuration, it’s by default 115200/8n1,
thanks

nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d098
0x00000400
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d090
0x00000458
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d0a0
0x00000055
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d0a8
0x00000055
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d0a0 32 0x00000400
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d0a8 32 0x00000458
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d0a8
0x00000458
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ sudo busybox devmem 0x0243d0a0
0x00000400
nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$

nvidia@nvidia-desktop:/proc/device-tree/serial@3140000$ xxd status
00000000: 6f6b 6179 00 okay.

hello noSIM,

had you also have configure the status as okay in device tree?
https://elinux.org/Jetson/AGX_Xavier_Misc_Interfaces