IMX6u rs485驱动

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6u rs485驱动

2,977 Views
小辉哥
Contributor III

我使用imx6ul 芯片 想实现rs485驱动,使用的uart3,RS485_EN使用的UART3_RTS,

pastedImage_1.png

DTS我修改为这样了,

pastedImage_0.png

但是还是不能正常工作,请问我这样连接有没有问题,还需要怎么修改?

Labels (3)
0 Kudos
5 Replies

1,132 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi  小辉哥 в

for rs485 driver modifications please look at

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/tty/serial/imx.c?id=...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,132 Views
小辉哥
Contributor III

hi igor,

linux-4.1.15-r0 里面的自带的imx.c驱动已经是你刚才那个链接的驱动了,我在测试uart3时 UART3_RTS一直是高电平,没有变化

0 Kudos

1,132 Views
igorpadykov
NXP TechSupport
NXP TechSupport

if these codes are not present in L.4.1.15 you will have to

port them yourself.

0 Kudos

1,132 Views
小辉哥
Contributor III

我在上层应用控制rs485-en可以实现收发,驱动层以后再弄。谢谢你了。

0 Kudos

1,132 Views
george_liu
Contributor I

You need to use CTS_B signal(DCE mode) instead of RTS.

0 Kudos