AnsweredAssumed Answered

Imx6 3.14.52 ttymxc1 device tree not play ball

Question asked by Edward Tyrrell on Mar 22, 2016
Latest reply on Apr 10, 2016 by Yuri Muhin

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.

Outcomes