Hi nv team:
We designed a carrier board for Orin.uart4 cannot receive and send normally.We did the following.
1.The pinmux file was modified to configure the uart4 transceiver pins to UD3_TXD and UD3_RXD in execl
pinmux file:
tegra234-mb1-bct-gpio-p3701-0000-a04.dtsi.txt (3.7 KB)
tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi.txt (64.6 KB)
2.We establish that in the dtb file, serial@3130000 is enabled.
The following is a fragment of the dts file:
serial@3130000 {
compatible = "nvidia,tegra194-hsuart";
iommus = <0x03 0x04>;
dma-coherent;
reg = <0x00 0x3130000 0x00 0x10000>;
reg-shift = <0x02>;
interrupts = <0x00 0x73 0x04>;
nvidia,memory-clients = <0x0e>;
dmas = <0x05 0x13 0x05 0x13>;
dma-names = "rx\0tx";
clocks = <0x02 0x9e 0x02 0x66>;
clock-names = "serial\0parent";
resets = <0x02 0x67>;
reset-names = "serial";
status = "okay";
phandle = <0x350>;
};
After the above work, we use an oscilloscope to observe the uart_tx, and the result is that the waveform cannot be output normally.
I also looked at other blog posts and observed the following:
①
root@tct-desktop:/home/tct/Desktop# cat /sys/kernel/debug/gpio | grep PH
gpio-391 (PH.00 )
gpio-392 (PH.01 )
gpio-393 (PH.02 )
gpio-394 (PH.03 |camera-control-outpu) out lo
gpio-395 (PH.04 |fixed-regulators:reg) out lo
gpio-396 (PH.05 )
gpio-397 (PH.06 |camera-control-outpu) out lo
gpio-398 (PH.07 )
②We checked dmesg and did not find any information related to ttyTHS
root@tct-desktop:/home/tct/Desktop# dmesg grep | ttyTHS
bash: ttyTHS: command not found
dmesg: bad usage
Try 'dmesg --help' for more information.
③
tct@tct-desktop:~/Desktop$ sudo busybox devmem 0x02434020
0x00000000
tct@tct-desktop:~/Desktop$ sudo busybox devmem 0x02434018
0x00000000
tct@tct-desktop:~/Desktop$ sudo busybox devmem 0x02434010
0x00000400
tct@tct-desktop:~/Desktop$ sudo busybox devmem 0x02434008
0x00000000
Is there a good solution?thank you!