Imx6 3.14.52 ttymxc1 device tree not play ball

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Imx6 3.14.52 ttymxc1 device tree not play ball

跳至解决方案
1,072 次查看
edwardtyrrell
Senior Contributor I

Hi,

I have a custom imx6 dual-lite board running fsl-release-bsp Jethro Kernel 3.14.52 and am having some ttymxc1 issues.

The first issue is that the device tree set-up refuses to work with our TX and RX pins with respect to the requirements of the external hardware. The hardware requires this:

MX6QDL_PAD_EIM_D26__UART2_TX_DATA

MX6QDL_PAD_EIM_D27__UART2_RX_DATA

No data results in the above configuration (external device removed). No handshaking has been defined.

IF we swap the lines in the device tree, remove the external device to prevent pin contentions, the setup below works but of course the RX and TX are swapped to what our board requires. Swap it back as above - nothing.

MX6QDL_PAD_EIM_D26__UART2_RX_DATA

MX6QDL_PAD_EIM_D27__UART2_TX_DATA

This is tested with no RTS/CTS/DTE..... etc.

Second problem is we actually need to use the RTS/CTS lines for handshaking with a RS485 device. From terminal a simple echo test to /dev/ttymxc1 shows on a scope the RTS spanning the data but strangely the CTS line seems to have no effect whatsoever with the line held in either direction. To add to this, (FYI same uart as above), if the CTS and RTS lines are swapped in the device tree there is no change; RTS still comes out on the same line either way. 

 

Thanks,

Edward.

标签 (3)
0 项奖励
回复
1 解答
689 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  Perhaps the problem concerns with the fact, that IMX6 UART has some specific

implementation features. The i.MX6 Reference Manuals provides description about

internal signals and (external) multiplexing for them. Table in the Datasheets helps

to clarify it.

Also - the next thread in Community may be helpful :

i.MX6: What does the DTE/DCE in i.MX6's UART do and how are RTS and CTS affected by the UARTxUFCR[DT...

Have a great day,
Yuri

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
690 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  Perhaps the problem concerns with the fact, that IMX6 UART has some specific

implementation features. The i.MX6 Reference Manuals provides description about

internal signals and (external) multiplexing for them. Table in the Datasheets helps

to clarify it.

Also - the next thread in Community may be helpful :

i.MX6: What does the DTE/DCE in i.MX6's UART do and how are RTS and CTS affected by the UARTxUFCR[DT...

Have a great day,
Yuri

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

0 项奖励
回复