Imx28 spidev kernel 2.6.35.3

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

Imx28 spidev kernel 2.6.35.3

ソリューションへジャンプ
3,277件の閲覧回数
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 解決策
3,096件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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

LTIB : LtibFaq 

Best regards
igor

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
3,096件の閲覧回数
shashikanthirem
Contributor III

How to spi bit bank in imx28 by using ltib, 

Note: no dtsi concept

0 件の賞賛
返信
3,096件の閲覧回数
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 件の賞賛
返信
3,096件の閲覧回数
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 件の賞賛
返信
3,096件の閲覧回数
shashikanthirem
Contributor III

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

0 件の賞賛
返信
3,097件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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

LTIB : LtibFaq 

Best regards
igor

0 件の賞賛
返信