Hi Sir,
Currently, I am working on the IMX8dxp processor, but I meet some problems in linux driver of fsl-lpuart.c.
On my hardware we want to use an hardware rs485 transceiver to connect with our uart0 port and use another gpio to control the flow.
And now the transceiver's tx and tx connect the tx and rx of UART0
The RE of transveiver connect the uart0_de[SPI0_CS0], it is not the general of cts or rts pin of uart.
So you could see the schematic from the attachment.
I want to confirm if our driver could support this rs485 logic.
I modified the dts but not working. the flow conftol pin was not controlled.
dts file
pinctrl_lpuart0: lpuart0grp {
fsl,pins = <
SC_P_UART0_TX_ADMA_UART0_TX 0x00000061
SC_P_UART0_RX_ADMA_UART0_RX 0x00000060
SC_P_SPI0_CS0_LSIO_GPIO1_IO08 0x20000061
>;
};
/*LPUART0 used for FMS RS485*/
&lpuart0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpuart0>;
linux,rs485-enabled-at-boot-time;
status = "okay";
};