LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can't bind my device to a driver, or get a /dev/<devname> created by udev (http://www.linuxquestions.org/questions/linux-general-1/cant-bind-my-device-to-a-driver-or-get-a-dev-devname-created-by-udev-773988/)

will_berry70 12-07-2009 08:57 AM

Can't bind my device to a driver, or get a /dev/<devname> created by udev
 
Hi,
I'm trying to create a SPI device on a TI DaVinci board (embedded development board). According to mt .conf file I have SPI Drivers selected, and I've called spi_register_board_info (with a struct that had 'modalias' named for the alleged driver, 'spidev') and platform_device_register in the board initialisation code.

That gets me as far as having the following:

/sys/class/spi_master and spidev folders, but no files for any devices within them.

and

/sys/devices/platform/spi_davinci.0

In udev I've tried adding various things to the rules files there and to my own rules file but it doesn't appear to do anything and I don't get any new files under /dev/ generated (as I'd like).

The latest udev rule I've tried is: KERNEL=="spi_davinci", NAME="spi"
I hoped this would find the spi_davinci device and create a /dev/spi node.

All help greatly appreciated.

Will.

will_berry70 12-07-2009 09:32 AM

Also /sys/bus/spi/drivers contains my 'spidev' driver file, but /sys/bus/spi/devices is empty ?!


All times are GMT -5. The time now is 03:58 AM.