Hi @gongyaxuan,
I hope you are doing well.
Normally, the UART interface on MCU could act as an RS485 controller with an external transceiver. It provides TTL logical signal and direction control signals; the RS485 transceiver provides voltage level translation, isolation, fault protection, etc. Usually, RS485 communication works in half-duplex mode.
UCM-iMX93 port: UART7
Linux device: /dev/ttyLP6
on SB-UCMIMX93 carrier-board: converted to RS485, terminal block
So you can refer to drivers/tty/serial/imx.c , which is a UART driver.
Thanks & Regards,
Sanket Parekh