Can't bind my device to a driver, or get a /dev/<devname> created by udev
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.
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.
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 10:35 AM.|