Hi,
My RS232 serial port doesn’t work.
All Uart device tree nodes have been enabled,
root@123:/proc/device-tree# cat serial@3100000/status
okayroot@123:/proc/device-tree# cat serial@3110000/status
okayroot@123:/proc/device-tree# cat serial@3130000/status
okayroot@123:/proc/device-tree# cat serial@3140000/status
okayroot@123:/proc/device-tree# cat serial@3150000/status
okayroot@123:/proc/device-tree# cat serial@3170000/status
okayroot@123:/proc/device-tree# cat serial@c280000/status
okayroot@123:/proc/device-tree# cat serial@c290000/status
My dts:
&uartd {
status = "okay";
};
&uartf {
status = "okay";
};
&uarth {
status = "okay";
};
&uartc {
status = "okay";
};
&uartg {
status = "okay";
};
dmesg log:
root@123:/proc/device-tree# dmesg|grep tty
[ 0.000000] Kernel command line: console=ttyTCU0,115200 video=tegrafb earlycon=tegra_comb_uart,mmio32,0x0c168000 gpt rootfs.slot_suffix= tegra_fbmem=0x800000@0xa06b7000 lut_mem=0x2008@0xa06b4000 usbcore.old_scheme_first=1 tegraid=19.1.2.0.0 maxcpus=6 boot.slot_suffix= boot.ratchetvalues=0.4.2 vpr_resize sdhci_tegra.en_boot_part_access=1 quiet root=/dev/nvme0n1p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 root=/dev/nvme0n1p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0
[ 0.000781] console [tty0] enabled
[ 1.713484] 3100000.serial: ttyTHS0 at MMIO 0x3100000 (irq = 47, base_baud = 0) is a TEGRA_UART
[ 1.714610] 3110000.serial: ttyTHS1 at MMIO 0x3110000 (irq = 48, base_baud = 0) is a TEGRA_UART
[ 1.716296] c280000.serial: ttyTHS2 at MMIO 0xc280000 (irq = 49, base_baud = 0) is a TEGRA_UART
[ 1.717271] 3130000.serial: ttyTHS3 at MMIO 0x3130000 (irq = 50, base_baud = 0) is a TEGRA_UART
[ 1.718074] 3140000.serial: ttyTHS4 at MMIO 0x3140000 (irq = 51, base_baud = 0) is a TEGRA_UART
[ 1.718837] 3150000.serial: ttyTHS5 at MMIO 0x3150000 (irq = 52, base_baud = 0) is a TEGRA_UART
[ 1.719877] c290000.serial: ttyTHS6 at MMIO 0xc290000 (irq = 53, base_baud = 0) is a TEGRA_UART
[ 1.720688] 3170000.serial: ttyTHS7 at MMIO 0x3170000 (irq = 54, base_baud = 0) is a TEGRA_UART
[ 1.721728] console [ttyTCU0] enabled
[ 9.252675] cdc_acm 1-3.1:1.0: ttyACM0: USB ACM device
[ 9.272469] cdc_acm 1-3.1:1.2: ttyACM1: USB ACM device
[ 9.282901] cdc_acm 1-3.1:1.4: ttyACM2: USB ACM device
[ 9.325092] cdc_acm 1-3.1:1.6: ttyACM3: USB ACM device
Hardware:
But I can‘t send/receive anything with echo xxx > /dev/ttyTHSx or cat /dev/ttyTHSx