imx6ull ecspi CS would not drop at constant pattern. sometimes one byte.sometimes one burst.

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

imx6ull ecspi CS would not drop at constant pattern. sometimes one byte.sometimes one burst.

278 次查看
bighero77
Contributor III

my board is imx6ull.   linux is linux4.1.15.

about one month ago.  the waveform of CS is like this:
drop to low level during the whole burst (spi.message.length = 240).  only 240byte data is transfered, the cs rise.

but, after one month. the module driver  is not changed. 
I find the cs would not transfer one burst (just one byte) and then it rise to high level.

cs.png

both waveform are captured by spi.message.length = 240. every test, I would transfer 240 byte as one burst. 

I really donnot know what register parameters would cause this difference.

would you please tell me what would control the cs drop pattern?

thanks a lot.

0 项奖励
回复
3 回复数

206 次查看
pengyong_zhang
NXP Employee
NXP Employee

Hi @bighero77 

Actually, when you use the SPI native PIN for CS signal line will like below picture:

pengyong_zhang_0-1750315317282.png

When you use the GPIO for SPI cs pin, The cs pin signal line like this picture:

pengyong_zhang_1-1750315376921.png

But it very strange you did nothing change, just one month later. Please double check if anyone change your dts file. Also please share me your dts file.

B.R

0 项奖励
回复

239 次查看
pengyong_zhang
NXP Employee
NXP Employee

Hi @bighero77 

Did you change the SPI CS PIN at this two different Scenario?

B.R

0 项奖励
回复

218 次查看
bighero77
Contributor III

absolutely , I did not change anything.
would you please give one standard setting?
both in dts and module driver code?

thanks. 

0 项奖励
回复