imx6ul ECSPI Word Delay in Linux SPI API

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

imx6ul ECSPI Word Delay in Linux SPI API

跳至解决方案
485 次查看
ibrahimbb
Contributor I

Hi, I'm trying to write a Linux module for an accel with SPI with imx6ul applications processor. For some reason, I needed to use word_delay of SPI API.

I'm setting word length to 8 bits, and setting word delay to 25 usecs. As a fact, I do not expect word delay to be exactly 25 usecs because of the scheduling but I want it to be at least 25 usecs. Still, this seems to have absolutely no effect on anything and delay between words is generally ~5 usecs (1MHz SCLK). So this made me wonder if there is such implementation in spi-imx driver.

The code:
spi->word_delay.value = 25;
spi->word_delay.unit = SPI_DELAY_UNIT_USECS;
spi->bits_per_word = 8;
spi_setup(spi);
 
I'm using lf-6.1.y. Have anyone has any such experience? Thanks.
标签 (2)
标记 (3)
0 项奖励
回复
1 解答
453 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

There is no such function in spi-imx driver, you can try to use lower speed in device tree.

在原帖中查看解决方案

1 回复
454 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

There is no such function in spi-imx driver, you can try to use lower speed in device tree.