imx6ul ECSPI Word Delay in Linux SPI API

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6ul ECSPI Word Delay in Linux SPI API

ソリューションへジャンプ
199件の閲覧回数
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 解決策
167件の閲覧回数
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 返信
168件の閲覧回数
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.