I am trying to get CSI video from ADV7281M on UDOO Quad board (iMX6Q). I found "adv7280_mipi_csi2_tvin.c" in the kernel sources and plug it in the config.
Then I found that the initial code for UDOO does not manage ADV7280, so I have added necessary code. Right now I see that ADV7280 driver registered by system (probe function called), but there is no /dev/videoX file for my ADV7280 instance. I guess the reason is "adv7280_mipi_csi2_tvin.c" provides only I2C registration... not V4L.
I found that another board (mx6q sabreauto ???) also uses ADV7280, but it is not clear how...
So there are questions:
- how to use ADV7280 without V4L?
- is anyone uses ADV7280 and have working driver?
Well, I have updated "adv7280_mipi_csi2_tvin" (I have added V4L2 routines to it). But unfortunately I always have (even with free run mode):
- ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
I think the issue with my MIPI CSI settings...
Does anybody have any suggestions what is wrong?
I have enabled debug output in the sources, and below some registers values:
[14733.558335] g_fmt_cap returns widthxheight of input as 720 x 525
[14733.562361] End of mxc_v4l2_s_fmt: v2f pix widthxheight 720 x 480
[14733.631804] In MVC:mxc_v4l_ioctl
[14733.631958] imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW1 = 0x00000000
[14733.631965] imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW2 = 0x00000000
[14733.631972] imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW3 = 0x00000000
[14733.631981] imx-ipuv3 imx-ipuv3.0: IPU_FS_DISP_FLOW1 = 0x00000000
[14733.631988] imx-ipuv3 imx-ipuv3.0: IPU_VDIC_VDI_FSIZE = 0x00000000
[14733.631996] imx-ipuv3 imx-ipuv3.0: IPU_VDIC_VDI_C = 0x00000000
[14733.632003] imx-ipuv3 imx-ipuv3.0: IPU_IC_CONF = 0x00000001
[14733.632010] imx-ipuv3 imx-ipuv3.0: IPU1_INT_STAT_1 = 0x00800000
[14733.632018] imx-ipuv3 imx-ipuv3.0: CSI_SENS_CONF = 0x02000A20
[14733.632025] imx-ipuv3 imx-ipuv3.0: CSI_ACT_FRM_SIZE = 0x01DF02CF
[14733.632033] imx-ipuv3 imx-ipuv3.0: CSI_SENS_FRM_SIZE = 0x020C02CF
[14733.632040] imx-ipuv3 imx-ipuv3.0: CSI_MIPI_DI = 0xFFFFFF1E
... timeout here ...
[14743.629028] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
[14743.635563] In MVC:mxc_v4l_ioctl
[14743.635580] In MVC: mxc_v4l_do_ioctl 40045613
[14743.635593] case VIDIOC_STREAMOFF
[14743.635604] In MVC:mxc_streamoff
[14744.129050] imx-ipuv3 imx-ipuv3.0: CSI stop timeout - 5 * 10ms
[14744.129355] In MVC:mxc_free_frames
[14744.130914] In MVC:mxc_v4l_close
[14744.130930] In MVC:mxc_streamoff
[14744.135823] mxc_v4l_close: release resource
[14744.135842] MVC: In mxc_free_frame_buf
[14744.136607] In MVC:mxc_free_frames