Other Parts Discussed in Thread: AM62P
Tool/software:
My project uses the AM62P with SDK version 10.00.07.04 (Kernel 6.6) and requires 5 UARTs, some of which need to be configured as RS485.
My question is:
- In the EVM's DTS,
main_uart0
has an additional interrupts-extended setting. Is this necessary?
if this setting is necessary, how should the other UARTs be configured? I also need to enable mcu_uart0, wkup_uart0, main_uart1, and main_uart6 - Configure the UART port to RS485
My schematic as below
I'm not sure how to configure it for RS485. Could someone help me verify this?&mcu_pmx0 { // UART3 - RS485 wkup_uart0_pins_default: wkup-uart0-default-pins { pinctrl-single,pins = < AM62PX_MCU_IOPAD(0x0024, PIN_INPUT, 0) /* (D8) WKUP_UART0_RXD */ AM62PX_MCU_IOPAD(0x0028, PIN_OUTPUT, 0) /* (D7) WKUP_UART0_TXD */ AM62PX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C6) WKUP_UART0_RTSn */ >; }; }; // wkup_uart0 | UART3 | /dev/ttyS1 | RS485 &wkup_uart0 { pinctrl-names = "default"; pinctrl-0 = <&wkup_uart0_pins_default>; status = "okay"; rs485-rts-active-high; rs485-rts-delay = <0 0>; linux,rs485-enabled-at-boot-time; bootph-all; };