Dear Team,
I'm using i.Mx8x based custom board.
There we need to support RS485 interface.
External RS485 Transceiver IC is connected to UART1 of iMx8DX6.
UART1_RTS pin will be used for selecting Data Enable(DE)/Read Enable(RE) functionality.
Current UART driver (/tty/serial/fsl_lpuart.c ) is having below configuration with respect to RS485 functionality.
- In rs485_config function, configured TXRTSE and TXRTSPOL in UARTMODIR register.
- In set_ctrl function, configured TXRTSE in UARTMODIR register.
We feel that, driver side no additional configuration is required for RS485.
Please confirm this.
As per the current use case, We need to toggle the RTS pin depending on the mode (DE/RE).
Our understanding is this can be handled in application layer using ioctl "TIOCMSET" (Configure RTS pin state to High/Low to select DE/RE).
Whether same logic (Managing DE/RE State using RTS pin) can be handled in UART driver level?
Please provide your feedback.
Thank You.
Best Regards,
J.P.Raja