AnsweredAssumed Answered

imx6ul tw9990 issue

Question asked by echo zeng on Aug 30, 2017
Latest reply on Aug 30, 2017 by igorpadykov

imx6ul  linux 3.14.38 tw9990:

I have done below procedure:
1, tw9990 i2c driver work fine, and config to ccir565 mode.
2, data pin[2:9], vsync,hsync,pclk connect to i.mx6ul.
3, refer to adv1780 patch for i.mx6ul, added csi patch.
Additionally l change "imag_para = (640 << 16) | 960;" to "imag_para = (720 << 16) | 576;".
4, tw9990 connect to PAL(720X576) mode camera.
5, set paras V4L2_PIX_FMT_UYVY, V4L2_FIELD_INTERLACED, V4L2_STD_PAL for csi configuration.

but camera preivew app does not work, err log:
[ 19.981688] timeout when wait for SOF
[ 22.124850] mx6s-csi 21c4000.csi: CSI_CSICR1: 0x8000504
[ 22.130195] mx6s-csi 21c4000.csi: CSI_CSICR2: 0x0
[ 22.144905] mx6s-csi 21c4000.csi: CSI_CSICR3: 0x3
[ 22.149728] mx6s-csi 21c4000.csi: CSI_CSIRXCNT: 0x9600
[ 22.164926] mx6s-csi 21c4000.csi: CSI_CSISR: 0x80004000
[ 22.170180] mx6s-csi 21c4000.csi: CSI_CSIDMASA_STATFIFO: 0x0
[ 22.184931] mx6s-csi 21c4000.csi: CSI_CSIDMATS_STATFIFO: 0x0
[ 22.190704] mx6s-csi 21c4000.csi: CSI_CSIDMASA_FB1: 0x8a100000
[ 22.214846] mx6s-csi 21c4000.csi: CSI_CSIDMASA_FB2: 0x8a200000
[ 22.220795] mx6s-csi 21c4000.csi: CSI_CSIFBUF_PARA: 0xb40000
[ 22.234872] mx6s-csi 21c4000.csi: CSI_CSIIMAG_PARA: 0x5a00240
[ 22.240731] mx6s-csi 21c4000.csi: CSI_CSICR18: 0x81000234

Outcomes