Uart0 hardware corresponding node on TX2

ttyS0 rev no data.

hello shaorui,

that’s uarta for the default debug port, you’ll need modifications to treat it as normal serial port.
may I know is it possible to have other pins for your serial port communication.
btw, the default baudrate settings is 115200/8n1, thanks

 48     serial@3100000 {
 49         compatible = "nvidia,tegra20-uart", "nvidia,tegra186-hsuart";
 50         console-port;
 51         sqa-automation-port;
 52         /delete-property/ resets;
 53         /delete-property/ reset-names;
 54         status = "okay";
 55     };
 56
 57     serial@3110000 {
 58         compatible = "nvidia,tegra186-hsuart";
 59         status = "okay";
 60     };
 61
 62     serial@c280000 {
 63         compatible = "nvidia,tegra186-hsuart";
 64         status = "okay";
 65         //status = "disabled";
 66     };

i need modifications to serial@3100000.For example:
serial@3100000 {
compatible = “nvidia,tegra186-hsuart”;
status = “okay”;
};

hello shaorui,

you should also have modification to configure debug port from UART0 to UART1
for example,

  1. BCT changes, file name: tegra186-mb1-bct-misc-si-l4t.cfg
****************************
cpu.nafll_b_cluster_data = 0x11F04461;
##### debug variables #####
debug.enable_log = 1;
-debug.uart_instance = 0;
+debug.uart_instance = 2;
##### sw_carveout variables #####
****************************
  1. device tree changes to get kernel logs,
serial@3100000 {
- compatible = "nvidia,tegra20-uart", "nvidia,tegra186-hsuart";
+ compatible = "nvidia,tegra186-hsuart";
console-port;
sqa-automation-port;
status = "okay";
@@ -53,7 +53,7 @@
};
 
serial@c280000 {
- compatible = "nvidia,tegra186-hsuart";
+ compatible = "nvidia,tegra20-uart", "nvidia,tegra186-hsuart";
status = "okay";
};
  1. please add ttyS2 into kernel-command line,
-CMDLINE_ADD="console=ttyS0,115200n8 console=tty1 OS=l4t fbcon=map:0 net.ifnames=0";
+CMDLINE_ADD="console=ttyS2,115200n8 console=tty1 OS=l4t fbcon=map:0 net.ifnames=0";

I need uart0 and uart1, uart0 is 485 dev,uart1 is GPS.

serial@3100000 {
- compatible = "nvidia,tegra20-uart", "nvidia,tegra186-hsuart";
+ compatible = "nvidia,tegra186-hsuart";
console-port;
sqa-automation-port;
status = "okay";
@@ -53,7 +53,7 @@
};
 
serial@c280000 {
 compatible = "nvidia,tegra186-hsuart";
 status = "okay";
};

as I mentioned, that’s uarta for the default debug port, you’ll need to disable that or the logs will populate to uart0.

debug port is ttyTCU0(kernel uart) ?

it’s ttyS0, it’s also contain bootloader logs.

1 Like

ttyS0(uarta for the default debug port) donot modifications normal serial port,Can’t receive 485-data. how to receive 485
data

If uart0 and uart1 all use,Is there any good way.

hello shaorui,

since there’re 5 UARTs available, please review your hardware connections and also check product design guide for reference, thanks

TX2 design guide for reference uart0 is Transmit,and uart0 and uart1 all use on TX2?
Replenish:NANO and Xavier_NX uart0 and uart1 all use.

please check [Table 75. UART Interface Mapping] for the typical usage, thanks

Table 75. UART Interface Mapping is HDMI,Is it the picture below?

hello shaorui,

are you working with TX2 NX?
the Jetson TX2 NX only brings three UARTs out to the main connector, they’re shown as your snapshots.


hello shaorui,

please use serial@c280000, you may also refer to this thread, Topic 196428 to disable BPMP logs,
thanks

Our TX2 NX only brings three UARTs out to the main connector

UART0->RS485 , RS485 can not recieve data, how recieve data?
UART1->GPS , UART1 use serial@c280000.
UART2->RS232, RS232 recieve data,but kernel log.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

had you refer to Topic 196428 to have device tree modifications to disable BPMP logs?

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