Native CS in imx6ul

Showing results for 
Search instead for 
Did you mean: 

Native CS in imx6ul

Contributor III


           We have interfaced imx6ul with max310x ( max14830) uart expander over spi. As we require multiple UART ports, connected four uart expander chip on each ecSPI bus (ecspi1,ecspi2,ecspi3,ecspi4).
Currently using one interface -ecspi1, Interfaces is working when gpio chip select is used as chip select source. But the reading of the data is slower and loss of data with 115200 baudrate when simultaneously send the data over two ports of the expander chip.

Planned  to use the native chip select. Instead of the gpio used dedicated chip select, in dts configuration.

We can observed the chip select become active to each clock cycle, but unable to read the "Revision Id" from the slave device i.e MAX14830 expander chip.Whatever data write on the MOSI, refect and observed on the oscilloscope. But not received any data on the MISO line, which is expected. Means communication not established.
If we consider problem with slave, but for the gpio chip select able to read the revision id and communication works.

We are using the 4.9.x nxp kernel.

What could be the problem? Is any known problem with native chip select ?

Is anyone already faced similar issue with native chip select ? How to solve ?

Labels (3)
Tags (2)
0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport

Hi Surendra

first one can try to test if ecspi operational using loopback.

If it is working, check port signals with oscilloscope using

sect.4.12.2 ECSPI timing parameters i.MX6UL Datasheet

comparing with max14830 requirements for setup/hold times.

Try with lower ecspi frequencies.

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

0 Kudos