imx6ul ECSPI Word Delay in Linux SPI API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6ul ECSPI Word Delay in Linux SPI API

Jump to solution
485 Views
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.
Labels (2)
Tags (3)
0 Kudos
Reply
1 Solution
453 Views
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.

View solution in original post

1 Reply
454 Views
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.