Hello Vidya,
SPI is not like I2C, there are not typically SPI devices nodes and the SPI isn't accessed directly by userspace. Each SPI device connect to SPI interface must have a SPI client driver for it.
You could refer to drivers/mtd/devices/m25p80.c for SPI device driver development.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------