Imx28 spidev kernel 2.6.35.3

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

Imx28 spidev kernel 2.6.35.3

跳至解决方案
1,170 次查看
shashikanthirem
Contributor III

Hi all,

I am using spidev modalias for spi communication, I used spi test.c to validate which in document folder, but I end up in transfer failed

I am using spidev  with kernel version 2.6.35.3

I have got /dev/spidev 2.1

Perror

Invalid argument

If any one  face similar problem, provide me patch or suggestions

Thanks

标签 (2)
0 项奖励
1 解答
989 次查看
igorpadykov
NXP Employee
NXP Employee

probably you did not rebuild image, please look at "scbuild" option on

LTIB : LtibFaq 

Best regards
igor

在原帖中查看解决方案

0 项奖励
5 回复数
989 次查看
shashikanthirem
Contributor III

How to spi bit bank in imx28 by using ltib, 

Note: no dtsi concept

0 项奖励
989 次查看
shashikanthirem
Contributor III

Yes i rebuild all 

if following condition i satisfied

struct spi_ioc_transfer tr = {
.tx_buf = (unsigned long)tx,
//.rx_buf = (unsigned long)rx,
.rx_buf = 0,      -----------------------------------> need to do
.len = size,
.delay_usecs = spi_setup->delay,
.speed_hz = spi_setup->speed,
.bits_per_word = spi_setup->bits,
.cs_change = spi_setup->cs_change,
};

This works as only write spi/ but not read

0 项奖励
989 次查看
igorpadykov
NXP Employee
NXP Employee

Hi shashikant

for L.2.6.35 spidev one can look at

https://community.nxp.com/thread/316764 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
989 次查看
shashikanthirem
Contributor III

Yes i followed the same , but i didnt the spi read write working, not sure sure what i am missing

0 项奖励
990 次查看
igorpadykov
NXP Employee
NXP Employee

probably you did not rebuild image, please look at "scbuild" option on

LTIB : LtibFaq 

Best regards
igor

0 项奖励