We are using imx6ul.
We want to connect one uart to RS485 IC,
Is it possible to enable RS485 support directly in device tree?
We want to enable hardware flow control, so as to use RTS pin to control RS485 Transreciever IC.
I am trying to add below lines in dtsi,
&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3_uart3>;
uart-has-rtscts;
linux,rs485-enabled-at-boot-time;
rs485-rts-active-high;
rs485-rx-during-tx;
rs485-rts-delay = <1 1>;
status = "okay";
};
But I dont see any change in RTS/CTS line.
Kindly guide me on this.
ok, thankyou for reply. I shall try it.
My query is , that I dont want use any user application to control EN pin of RS485 IC.
Is it possible to control the external RS485 IC with RTS pin of uart ,if uart is used in 485 mode , above changes in device tree support the same?
it is not "user application", it is dts file.
Best regards
igor
Hi,
I am connecting a RS485 chip to my controller.
My query is that if i change the dts files for RS485, can the kernel driver then directly control the RS485 chip Enable/Disable?
I am connecting Uart RTS pin to RS485 chip Enable/Disable pin.
>My query is that if i change the dts files for RS485, can the kernel driver then directly control the RS485 chip Enable/Disable?
yes.
~igor
Hi ruchi
rs485 example can be found on:
Best regards
igor