AnsweredAssumed Answered

RN6572 on I.MX6 DualLite using CSI0

Question asked by li yigang on Dec 3, 2018
Latest reply on Dec 6, 2018 by li yigang

      I am using an imx.6 DualLite to develop a tvin system, Hardware is designed based on Sabrelite, Software is Android 4.4.2 and kernel is 3.0.35 .

      The platform used to access CVBS signal and convert it into bt656 interlaced signal through tw9990, which can display normally.

      Now we need to access the AHD signal and replace the sensor with RN6572.  RN7572 support HD video inputs from AHD1.0 video sources and convert it into 8-bit BT656-like YCBCR 4:2:2 format 720P digital outputs,  

      In order to generate Hsync and Vsync, we set RN6572 to BT601. Hsync is 22.5k HZ ,vsync is 30 hz and clock is 72M。 

      run mxc-v4l2-capture -iw 1280 -ih 720 -ow 1280 -oh 720 -r O -c 30 -fr 60 -i 1 -d /dev/video0 /data/test.yuv,causes the following errors

 

ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
VIDIOC_QBUF failed

 

Above please help see what may be the cause.

 

Bellows are IPU_CSI and IDMAC related registers and values:

 _ipu_csi_init CSI_SENS_CONF:0x4008a03
[  103.846120] imx-ipuv3 imx-ipuv3.0: CSI_SENS_CONF:     04008a03
[  103.854092] imx-ipuv3 imx-ipuv3.0: CSI_SENS_FRM_SIZE: 02cf04ff
[  103.860197] imx-ipuv3 imx-ipuv3.0: CSI_ACT_FRM_SIZE:  02cf04ff
[  103.866236] imx-ipuv3 imx-ipuv3.0: CSI_OUT_FRM_CTRL:  00000000
[  103.872262] imx-ipuv3 imx-ipuv3.0: CSI_TST_CTRL:      00000000
[  103.881368] imx-ipuv3 imx-ipuv3.0: CSI_CCIR_CODE_1:   00000000
[  103.887715] imx-ipuv3 imx-ipuv3.0: CSI_CCIR_CODE_2:   00000000
[  103.897570] imx-ipuv3 imx-ipuv3.0: CSI_CCIR_CODE_3:   00000000
[  103.903885] imx-ipuv3 imx-ipuv3.0: CSI_MIPI_DI:       ffffffff
[  103.909967] imx-ipuv3 imx-ipuv3.0: CSI_SKIP:          00000000
[  103.916717] imx-ipuv3 imx-ipuv3.0: initializing idma ch 0 @ d98c0000
[  103.925072] imx-ipuv3 imx-ipuv3.0: ch 0 word 0 - 00000000 70800000 00232800 E0000000 000B3C9F
[  103.934049] imx-ipuv3 imx-ipuv3.0: ch 0 word 1 - 04D00000 009A0000 0047C000 00013FC0 0000027F
[  103.942994] imx-ipuv3 imx-ipuv3.0: PFS 0x2,
[  103.950325] imx-ipuv3 imx-ipuv3.0: BPP 0x0,
[  103.954922] imx-ipuv3 imx-ipuv3.0: NPB 0x1f
[  103.959550] imx-ipuv3 imx-ipuv3.0: FW 1279,
[  103.963825] imx-ipuv3 imx-ipuv3.0: FH 719,
[  103.970063] imx-ipuv3 imx-ipuv3.0: EBA0 0x26800000
[  103.976582] imx-ipuv3 imx-ipuv3.0: EBA1 0x26800000
[  103.981718] imx-ipuv3 imx-ipuv3.0: Stride 1279
[  103.986450] imx-ipuv3 imx-ipuv3.0: scan_order 0
[  103.991283] imx-ipuv3 imx-ipuv3.0: uv_stride 639
[  103.997782] imx-ipuv3 imx-ipuv3.0: u_offset 0xe1000
[  104.002812] imx-ipuv3 imx-ipuv3.0: v_offset 0x119400
[  104.008416] imx-ipuv3 imx-ipuv3.0: Width0 0+1,
[  104.012906] imx-ipuv3 imx-ipuv3.0: Width1 0+1,
[  104.020372] imx-ipuv3 imx-ipuv3.0: Width2 0+1,
[  104.026261] imx-ipuv3 imx-ipuv3.0: Width3 0+1,
[  104.031431] imx-ipuv3 imx-ipuv3.0: Offset0 31,
[  104.036648] imx-ipuv3 imx-ipuv3.0: Offset1 19,
[  104.041801] imx-ipuv3 imx-ipuv3.0: Offset2 0,
[  104.049018] imx-ipuv3 imx-ipuv3.0: Offset3 0
[  104.054377] imx-ipuv3 imx-ipuv3.0: IPU_CONF =  0x000007E1
[  104.060090] imx-ipuv3 imx-ipuv3.0: IDMAC_CONF =  0x0000002F
[  104.066219] imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_EN1 =  0x10800001
[  104.072329] imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_EN2 =  0x00000000
[  104.078770] imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_PRI1 =  0x18800001
[  104.085085] imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_PRI2 =  0x00000000
[  104.091442] imx-ipuv3 imx-ipuv3.0: IDMAC_BAND_EN1 =  0x00000000
[  104.098174] imx-ipuv3 imx-ipuv3.0: IDMAC_BAND_EN2 =  0x00000000
[  104.106949] imx-ipuv3 imx-ipuv3.0: IPU_CHA_DB_MODE_SEL0 =  0x00000001
[  104.113812] imx-ipuv3 imx-ipuv3.0: IPU_CHA_DB_MODE_SEL1 =  0x00000000
[  104.120577] imx-ipuv3 imx-ipuv3.0: IPU_CHA_TRB_MODE_SEL0 =  0x10800000
[  104.130055] imx-ipuv3 imx-ipuv3.0: IPU_CHA_TRB_MODE_SEL1 =  0x00000000
[  104.137005] imx-ipuv3 imx-ipuv3.0: DMFC_WR_CHAN =  0x000000D0
[  104.143246] imx-ipuv3 imx-ipuv3.0: DMFC_WR_CHAN_DEF =  0x202020F6
[  104.149807] imx-ipuv3 imx-ipuv3.0: DMFC_DP_CHAN =  0x000096CA
[  104.155927] imx-ipuv3 imx-ipuv3.0: DMFC_DP_CHAN_DEF =  0x2020F6F6
[  104.162419] imx-ipuv3 imx-ipuv3.0: DMFC_IC_CTRL =  0x00000002
[  104.169140] imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW1 =  0x00000000
[  104.175910] imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW2 =  0x00000000
[  104.182826] imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW3 =  0x00000000
[  104.196032] imx-ipuv3 imx-ipuv3.0: IPU_FS_DISP_FLOW1 =  0x00000000
[  104.202501] imx-ipuv3 imx-ipuv3.0: IPU_VDIC_VDI_FSIZE =  0x00000000
[  104.213125] imx-ipuv3 imx-ipuv3.0: IPU_VDIC_VDI_C =  0x00000000
[  104.219776] imx-ipuv3 imx-ipuv3.0: IPU_IC_CONF =  0x00000000

 

 

Outcomes