This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SPI access from user space

Other Parts Discussed in Thread: TMS320DM355

Hi,

I'm trying to use SPI from user space application. I'm using MontaVista5 for tms320dm355. I'm unable to find proper APIs which I can call from user space to use SPI (ie open, close ioctl etc). Application is to initialize and talk with device on SPI. LSP2.0 Linux driver (page 123) mentions that on TMS320DM355 using /dev/mtd5 should give access to SPI and then can be used as file as normally done from application but I don't find any code in MV5 which exports open, close etc APIs to user space. Please help. Also it would be helpful if you can give pointers on how to write a new SPI device driver. I wanted to write a driver for device which is not supported by default by MV5. Thanks in advance.

 

Regards,

Sagar