Some customer need to know how to add support RS485 mode half duplex? Here give some recommends.
About i.MX6 UART to RS485 applications
1. Using RS485 mode of UART directly.
On hardware, you should use UART_CTS_B to control RX & TX.
On software, The link for you reference:
Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?
2. Sensing IO direction Automatically via hardware, don't need to tune software.
For i.MX8QXP
As the linux BSP for i.MX8QXP do not support RS 485 mode, so for the RS 485 using you can use the Sensing IO direction Automatically via hardware, don't need to tune software. As the above i.MX6 design.