Tool/software:
Hi , Ti Team
I am trying to configure RS232 on Uart2. The following is the detailed configuration in my device tree.
However, the loopback test is unsuccessful, and I am not getting any waveform from the TX pin when checking with an oscilloscope.
root@am65xx-evm:~# dmesg | grep ttyS [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=e1caf307-02 rw rootfstype=ext4 rootwait [ 0.951112] printk: console [ttyS2] disabled [ 0.963577] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 149, base_baud = 3000000) is a 8250 [ 0.971243] printk: console [ttyS2] enabled [ 0.971252] printk: console [ttyS2] printing thread started [ 0.976924] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 150, base_baud = 3000000) is a 8250 [ 1.059445] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 562, base_baud = 3000000) is a 8250
&main_pmx0{
....
rs232_pins_default: rs232_pins_default {
pinctrl-single,pins = <
AM65X_IOPAD(0x0288, PIN_INPUT, 6) /* (Y27) GPIO1_66 */ /*RS232-RXD*/
AM65X_IOPAD(0x0260, PIN_OUTPUT, 6) /* (W28) GPIO1_56 */ /*RS232-TXD*/
>;
};
..
}
&main_uart2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rs232_pins_default>;
power-domains = <&k3_pds 148 TI_SCI_PD_SHARED>;
};