AnsweredAssumed Answered

imx6q sabresd ov5640_mipi read timeout error

Question asked by Lin Yang on Dec 3, 2013
Latest reply on Dec 13, 2013 by Lin Yang

hi,

i want to debug ov5640_mipi on  sabresd board with imx6q, the kernel version is kernel_imx 3.0.35 , i use the ov5640_mipi.c default in kernel.

I have set the following parameters in my board configure files:

arch/arm/mach-mx6/board-mx6q_sabresd.c

 

static struct i2c_board_info mxc_i2c1_board_info[] __initdata = {

......

        {

                I2C_BOARD_INFO("ov5640_mipi", 0x3c),

                .platform_data = (void *)&mipi_csi2_data,

        },

......

};

 

static struct fsl_mxc_camera_platform_data mipi_csi2_data = {

        .mclk = 24000000,

        .mclk_source = 0,

        .csi = 0,

        .io_init = mx6q_mipi_sensor_io_init,

        .pwdn = mx6q_mipi_powerdown,

};

 

static void mx6q_mipi_powerdown(int powerdown)

{

        if (powerdown)

        {

                gpio_set_value(SABRESD_MIPICSI_PWN, 1);

        }

        else

        {

                gpio_set_value(SABRESD_MIPICSI_PWN, 0);

        }

       msleep(2);

}

 

static struct fsl_mxc_capture_platform_data capture_data[] = {

        {

                .csi = 0,

                .ipu = 1,,

                .mclk_source = 0,

                .is_mipi = 1,

        }, {

                .csi = 0,

                .ipu = 1,

                .mclk_source = 0,

                .is_mipi = 1,

        },

};

 

static void __init mx6_sabresd_board_init(void)

{

......

imx6q_add_v4l2_capture(0, &capture_data[0]);

......

}

 

and some other modify.

 

but when i cat the /dev/video0, i got  the error msg :

root@android:/ # cat /dev/video0

ERROR:  v4l2 capture: mxc_v4l_read timeout counter 0

 

how can  i do?

 

thanks!

Outcomes