I've got TI's AM335x EVM which has "spi_master" setup by default, like this...
root@am335x-evm:/sys# find /sys/ -name '*spi*'
/sys/devices/platform/omap/omap2_mcspi.1
/sys/devices/platform/omap/omap2_mcspi.1/spi_master
/sys/devices/platform/omap/omap2_mcspi.1/spi_master/spi1
/sys/devices/platform/omap/omap2_mcspi.2
/sys/devices/platform/omap/omap2_mcspi.2/spi_master
/sys/devices/platform/omap/omap2_mcspi.2/spi_master/spi2
/sys/bus/platform/devices/omap2_mcspi.1
/sys/bus/platform/devices/omap2_mcspi.2
/sys/bus/platform/drivers/omap2_mcspi
/sys/bus/platform/drivers/omap2_mcspi/omap2_mcspi.1
/sys/bus/platform/drivers/omap2_mcspi/omap2_mcspi.2
/sys/bus/spi
/sys/class/spi_master
/sys/class/spi_master/spi1
/sys/class/spi_master/spi2
I have an application that expects to access a custom device via spi found at /dev/spidev.
Can (or, how can) this spi_master be made to appear at /dev/spidev and be used as a character device for a non-flash memory application?
I do believe that I've got the pin-mux configured correctly (via uBoot, I'm not sure how to confirm) and have rebuilt the kernel and spidev.ko module. I've gotten spidev to show up in /sys/class (previously, when building into kernel, not as a module) but I'm missing how to get any of these to show up in /dev.
The TI SDK document "sitara-linuxsdk-sdg-05.04.01.00.pdf" has proven very useful for getting different builds of the kernel and modules built. I'm lost on the right combination of udev rules, mknod, spi_board_info, etc details to make this all come together. Any thoughts would be most welcome. Thanks
Shannon