RS485 on iMX6Ul

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RS485 on iMX6Ul

1,525 Views
ruchi
Contributor I

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.

0 Kudos
5 Replies

1,512 Views
ruchi
Contributor I

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?

0 Kudos

1,504 Views
igorpadykov
NXP Employee
NXP Employee

it is not "user application", it is dts file.

 

Best regards
igor

0 Kudos

1,490 Views
ruchi
Contributor I

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.

0 Kudos

1,482 Views
igorpadykov
NXP Employee
NXP Employee

>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

0 Kudos

1,518 Views
igorpadykov
NXP Employee
NXP Employee

Hi ruchi

 

rs485 example can be found on:

https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_4.14.x_2.0.0_ga/arch/arm/boot/dts/im...

 

Best regards
igor

 

 

0 Kudos