Hello. Im trying to configurate and adapt OrangePI Zero 2W board to a custom extension board with multiple RS485 drivers.
For now, im trying to configurate a single secondary UART (UART2) to initialize with muxed Rx\Tx pins and in RS485 (with software driven RTS pin).
My current DT overlay is:
And it is partially works. Works as UART. Able to send and receive data with muxed Rx\Tx.
For RTS... its complicated. Seems RTS(PH4 GPIO) are initialized and acquired by UART2 software, and stay low during initial idling.
After im trying to send any data (echo 123 >> /dev/ttyS2), RTS goes HIGH and stuck in this state before reboot.
Im have tried to send big blob at 9600 and check the RTS with statserial.
But as i see, RTS is 1 (active???) from inital to complete and after, and never changes.