This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6442: RS485 Driver Support

Part Number: AM6442

Tool/software:

Hi, 

I'm trying to configure UART1 for RS485 by using 8520_omap driver and it does not support RTS pin to control automatically. I have found one more driver serial_omap and it does support for controlling RTS.

Is it possible to control RTS using 8520_omap driver? or do I need to use serial_omap? 

below is the  DTS node.
uart1_pins_default: uart1-pins-default {
pinctrl-single,pins = <
AM64X_IOPAD(0x0240, PIN_INPUT, 0) /* (E15) UART1_RXD */
AM64X_IOPAD(0x0244, PIN_OUTPUT, 0) /* (E14) UART1_TXD */
AM64X_IOPAD(0x024c, PIN_OUTPUT, 7) /* (E16) UART1_RTSn */
>;
};

/* main_uart1 for RS-485 */
&main_uart1 {
status = "okay";
compatible = "ti,omap2-uart";
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins_default>;
rts-gpio = <&main_gpio1 59 GPIO_ACTIVE_HIGH>;
rs485-rts-active-high;
rs485-rts-delay = <0 0>;
linux,rs485-enabled-at-boot-time;
};

if I need to use serial_omap for this then how I can enable it properly? If I enable it then console doesn't work I think it does not create ttyS2 e.g or something else happened.