Hey FabioEstevam , I'm running an 4.16 kernel on the imx 6 UUL eval board with im6ul SOM.
I altered the DTS file to make UART2 an RS485 interface
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2>;
uart-has-rtscts;
status = "okay";
linux,rs485-enabled-at-boot-time;
};
which seems to have the desired result
cat /proc/tty/driver/IMX-uart
serinfo:1.0 driver revision:
0: uart:IMX mmio:0x02020000 irq:19 tx:5119 rx:0 RTS|DTR|DSR|CD
1: uart:IMX mmio:0x021E8000 irq:58 tx:95 rx:0 DTR|DSR|CD
i can send data from the IMX board but cant receive anything as you can see by the rx counter.
Also looking with an logic analyzer at the RTS / CTS pins show that they don't change and are always low.
Are these patches you a mentioned in the mainline kernel ? Any hint what else needs to be done?