Skip to contentSkip to conversation

Using spidev driver for spi over gpio-device?

DISCUSSION Orjan Friberg 2 participants 3 messages Aug 12, 2010 2 messages not in the archive SPI

lore
Share & tools
lore
#0 lore raw

Hi,

Is a SPI device as bitbanged over GPIO enough of a "real" SPI device that the spidev can be used for it? I'm having trouble getting the interfaces to line up.

Thanks,
Orjan

Signature · 9 lines
Orjan Friberg
FlatFrog Laboratories AB

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines

Is a SPI device as bitbanged over GPIO enough of
a "real" SPI device
that the spidev can be used for it?

Yes -- modulo bugs. The bitbanging would be via the SPI master controller, and that's written to be fairly close to a reference implementation.

and spidev is just one possible client.

  I'm having

Quoted 3 lines

trouble getting the
interfaces to line up.

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev

#4 lore raw
In reply to a message not in the archive
Quoted 9 lines · David Brownell
Quoted 3 lines

Is a SPI device as bitbanged over GPIO enough of
a "real" SPI device
that the spidev can be used for it?

Yes -- modulo bugs. The bitbanging would be via
the SPI master controller, and that's written to
be fairly close to a reference implementation.

and spidev is just one possible client.

Great, thanks.

Signature · 9 lines
Orjan Friberg
FlatFrog Laboratories AB

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev