Skip to contentSkip to conversation

Bitbanged SPI over GPIO probe fail

DISCUSSION Orjan Friberg 1 participant 2 messages Aug 9, 2010 – Aug 11, 2010 1 message not in the archive SPI

lore
Share & tools
lore
#0 lore raw

Hi list,

I'm trying to use the bitbanged spi_gpio.c driver on a Beagleboard, using the inlined approach (defining gpio pin numbers and cs).

When modprobing the driver platform_driver_probe returns -ENODEV but spi_gpio_probe is not being called, which seems odd to me. Any suggestions?

This is on a 2.6.32 TI PSP kernel.

There is in fact no device attached on the pins, but as the driver's probe function isn't called I don't think it should matter. Also, I have checked that I can manually control the pins through /sys/class/gpio.

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 2 lines · Orjan Friberg

When modprobing the driver platform_driver_probe returns -ENODEV but spi_gpio_probe is not being called, which seems odd to me. Any suggestions?

This part I still don't understand, but I can at least insmod the driver by changing platform_driver_probe to platform_driver_register; it shows up in /sys/bus/platform/drivers now too.

(I get that I need to call platform_driver_register and create a sysfs entry etc before I have a device to play with.)

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