Imx28 spidev kernel 2.6.35.3

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

Imx28 spidev kernel 2.6.35.3

Jump to solution
1,159 Views
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

Labels (2)
0 Kudos
1 Solution
978 Views
igorpadykov
NXP Employee
NXP Employee

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

LTIB : LtibFaq 

Best regards
igor

View solution in original post

0 Kudos
5 Replies
978 Views
shashikanthirem
Contributor III

How to spi bit bank in imx28 by using ltib, 

Note: no dtsi concept

0 Kudos
978 Views
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 Kudos
978 Views
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 Kudos
978 Views
shashikanthirem
Contributor III

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

0 Kudos
979 Views
igorpadykov
NXP Employee
NXP Employee

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

LTIB : LtibFaq 

Best regards
igor

0 Kudos