AnsweredAssumed Answered

IMX6ULEVK ECSPI no react

Question asked by west chu on Mar 16, 2020
Latest reply on Mar 18, 2020 by west chu

Hi Everyone,

I need spi device on IMX6ULEVK as master to transfer command to peripheral chip.

There are spidev0.0/spidev2.0/spidev3.0 under my /dev now.

 

I test these port with three ways:

spidev_test.c

echo "hello" > /dev/spidev0.0

mxc_spi_test1.out

I probed CLK/CS/MOSI pins with oscilloscope,found that CLK nerver go high,CS、MOSI go high and nerver go low after I test these port with above ways.

ECSPIx.CONREG.CHANNEL_MODE will turned 0x0/0x1 into 0xf after the tests.

 

I tried many ways on nxp forum,but I still can't use ECSPI port normally.

Attached is my device tree files,could anyone give me some advice?

Outcomes