Parallel video on IPU0_CSI Input without I2C

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel video on IPU0_CSI Input without I2C

190 Views
imxuser
Contributor I

Dear iMX Community,

I want to receive parallel video (PXCLK, HSYNC, VSYNC and RGB565_1X16 data) on the IPU1_CSI0 input. The data are comming directly from a FPGA and no I2C configuration is needed.

I have found similar topics already on the forum.

https://community.nxp.com/t5/i-MX-Processors/Use-FPGA-as-camera-input-IPU-CSI-Parallel/m-p/511894

https://community.nxp.com/t5/i-MX-Processors/How-to-use-Parallel-CSI-interface-on-IMX6Q-without-deco...

https://community.nxp.com/t5/i-MX-Processors/iMX6-custom-video-capture-via-Parallel-camera-interface...

All found topics says that a custom device driver is needed. 

I also studied the page on iMX Video Capture Driver - https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/imx.html#

Would it be possible to setup the V4L2 pipeline without  an explicit input device (the video data are directly connected to "ipu1_csi0_mux":0)? 

For example like this:

media-ctl -l "'ipu1_csi0_mux':2->'ipu1_csi0':0[1]"
media-ctl -l "'ipu1_csi0':2->'ipu1_csi0 capture':0[1]"

media-ctl -V '"ipu1_csi0_mux":0 [fmt:RGB565_1X16/800x480]'
media-ctl -V '"ipu1_csi0_mux":2 [fmt:RGB565_1X16/800x480]'
media-ctl -V '"ipu1_csi0":2 [fmt:RGB565_1X16/800x480]'

Best Regards and thank you in advance for any tip.

 

 

0 Kudos
4 Replies

92 Views
imxuser
Contributor I

Dear Igor,

I shortly going to start the implementation of the custom driver. As basis I wanted to use the sample driver ipuv3_csi0_chess.c from  i.MX Porting Guide IMXBSPPG. It uses the mxc_v4l2_capture.c as the cature driver. Our current BSP uses the imx-media-dev.c as the capture driver. 

If I understand it correctly the mxc_v4l2_capture.c is the older version and was replaced by imx-media-dev.c. So I suppose the ipuv3_csi0_chess.c will not work out of the box with the imx-media-dev.c driver. All other examples drivers under /drivers/media/platform/mxc/capture also uses the mxc_v4l2_capture.c driver. What would be the best way forward? Switch back to mxc_v4l2_capture.c? Or are there any example drivers which can be used with imx-media-dev.c?

Thanlk you for support and Best Regards

0 Kudos

76 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Oskars

 

also may be useful baremetal ipu examples
Best regards

igor

0 Kudos

142 Views
imxuser
Contributor I

Dear Igor,

thank you for the confirmation. Are there any v4l2-subdev drivers without I2C freely available or ist the easiest way to take an existing camera driver and get rid of the unused parts?

Best Regards

 

0 Kudos

150 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Oskars

 

>Would it be possible to setup the V4L2 pipeline without an explicit input device
>(the video data are directly connected to "ipu1_csi0_mux":0)?

 

sorry I am afraid this is not possible. Custom device driver is needed. 

 

Best regards
igor

0 Kudos