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.

DM3730 Interfacing an image sensor with SPI

Other Parts Discussed in Thread: DM3730

Hi,

I am trying to interface an image sensor (which has SPI interface for control) to DM3730 ISP under Linux. I have reviewed board configuration file for my platform. Eventually checked isp.h provided by TI to find out how to create a video subdev (akin to isp_subdev_i2c_board_info used for an i2c based sensor), it is not clear if media control framework used by TI provides such (SPI) support.

Kindly help.

Thanks.

  • Hi,

    I suggest you to initialize the SPI module if it is not done. You can find detailed description in the AM/DM37x TRM section 20.6 McSPI Basic Programming Model.

    BR

    Tsvetolin Shulev

  • Thanks for the response.

    I have successfully configured and communicated to my imager over SPI through user-space IOCTL mechanism. I am trying to include driver for this imager to kernel and media control framework to use it as a V4L2 video device. After carefully looking at an example driver given for Micron MT90P31, it appears that I need to tie my imager/driver to isp video subdev. As most of the image sensors in the market are i2c based, isp.h has  infrastructure to handle an i2c device. I do not see how to add my spi device to it in a similar fashion.

    One position option was to keep control part (SPI) part of the imager out of V4L2 driver and manage it that way. But in that case, how do facilitate creation of a video subdev for my sensor under V4L2? My guess is I have to fool the isp into it. Due to lack of knowledge in that area, I need some help.