工具/软件:
尊敬的 TI 团队
我正在尝试在 Uart2 上配置 RS232。 以下是器件树中的详细配置。
但是、环回测试失败、并且在使用示波器进行检查时没有从 TX 引脚获得任何波形。
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>;
};