I want to use TX2’s serial port to communicate with other devices.
I already use the UART on J17(ttyTHS2), and i need another serial port.
The serial port on J21 is a serial console, i don’t know how to use it as a common serial port to communicate with other device.
Does anyone know ow to do it?
Or is there anyother serial port to use more conveniencely?
Hi zhujx_linux,
If that pin is configured as uart pin, then it would be a ttyTHS under /dev.
ubuntu@nvidia-desktop:~$ dmesg |grep ttyTHS
[ 3.622662] 3110000.serial: ttyTHS1 at MMIO 0x3110000 (irq = 37, base_baud = 0) is a TEGRA_UART
[ 3.623893] c280000.serial: ttyTHS2 at MMIO 0xc280000 (irq = 38, base_baud = 0) is a TEGRA_UART
[ 3.625150] 3130000.serial: ttyTHS3 at MMIO 0x3130000 (irq = 39, base_baud = 0) is a TEGRA_UART
Please try to use that interface.
i have tested all the three ttyTHS,none of them is the serial port on J21.
You can also reference to below topic.
i want to know how to disable the serial console?
Why do need to disable it? You just need to modify the status to disable to disable it.
serial@xxxxxx{
compatible = "nvidia,tegra186-hsuart";
dma-names = "rx", "tx";
clocks = <0x10 0x38 0x10 0x10d>;
clock-names = "serial", "parent";
reset-names = "serial";
status = "okay";
nvidia,tolerance-low-range = <0x0>;
nvidia,tolerance-high-range = <0x4>;
nvidia,adjust-baud-rates = <0x1c200 0x1c200 0x64>;
};