i.MX6Q imx-media driver documentation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6Q imx-media driver documentation

781 Views
imxuser
Contributor I

Dear iMX Community,

I am currently working on a custom device driver to receive 16 bit parallel RGB565 data in gated clock mode by IPU0_CSI1 without any other configuration bus (i2c, gpio etc). My original post is here: https://community.nxp.com/t5/i-MX-Processors/Parallel-video-on-IPU0-CSI-Input-without-I2C/m-p/129137...

Meanwhile I have understood how it could be done with the mxc_v4l2_capture.c driver. The IOCTL function "ioctl_g_ifparm()" can be used to set the desired parameters. This is quite well documented in "i.MX Porting Guide" (IMXBSPPG, Rev. LF5.10.9_1.0.0, 31 March 2021) and i.MX Linux Reference Manual (IMXLXRM, Rev. LF5.10.35_2.0.0, 30 June 2021).

Our currently used BSP uses the imx-media-dev.c driver from /drivers/staging/media/imx. This driver is described here: https://www.kernel.org/doc/html/latest/admin-guide/media/imx.html

What I miss is information how to develop a custom camera driver for the imx-media driver. It is totally unmentioned in the i.MX Linux Reference Manual, IMXLXRM.  Before we switch back to the mxc_v4l2_capture driver I wanted to try to understand how the imx-media driver should be used to configure the iMX specific settings like gated clock mode etc.

Maybe someone has already some experience with the imx-media driver and could point me please into right direction?

 

Best regards and thank you in advance for any information!

 

Labels (1)
0 Kudos
Reply
2 Replies

753 Views
igorpadykov
NXP Employee
NXP Employee

Hi Oskars

 

>What I miss is information how to develop a custom camera driver for the imx-media driver.

>It is totally unmentioned in the i.MX Linux Reference Manual, IMXLXRM. 

 

unfortunately such documentation is not available, sorry. NXP provides developers documentation on :

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-proces...

For help with writing custom software if that documentation is not sufficient, may be recommended

to proceed with help of NXP Professional Services:
https://contact.nxp.com/new-prof-svcs-sw-tech

 

Best regards
igor

0 Kudos
Reply

747 Views
imxuser
Contributor I

Dear Igor,

thank you for the feedback. We have succesfully created a minimalistic custom driver without i2c interface (platform device driver) which registers a /dev/v4l-subdevice0 video device. I hope we get the integration with imx6 media driver to work by analysing the existing i2c camera sensor drivers.

Best Regards

 

 

0 Kudos
Reply