eric wann

Can driver OV5642.c work in IMX6SL EVK demo board?

Discussion created by eric wann on Feb 17, 2014

   Hi All:

  

    We try to use camera ov5642 (ov5642 parallel interface) module in IMX6SL EVK demo board.   

    (We got the sensor module from IMX6DL sabresd demo board, it is workable module.)

   

    To enable ov5642 sensor in IMX6SL EVK board, we do some change

   

     in arch/arm/mach-mx6/board-mx6sl_evk.c

     we change

    

     static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {

    {

        I2C_BOARD_INFO("ov564x", 0x3c),       

        .platform_data = (void *)&camera_data,

    },

     };

    

     in drivers/media/video/mxc/capture/ov5642.c

    

     we enable CSI_MCLK_I2C clock.

 

 

    if (plat_data->pwdn)

        plat_data->pwdn(0);

 

#ifdef CONFIG_SOC_IMX6SL

    csi_enable_mclk(CSI_MCLK_I2C, true, true);

#endif   

 

    retval = ov5642_read_reg(OV5642_CHIP_ID_HIGH_BYTE, &chip_id_high);

    if (retval < 0 || chip_id_high != 0x56) {

   

 

    ...

    

    and in .config we set

   

    # CONFIG_MXC_CAMERA_OV5640 is not set

    CONFIG_MXC_CAMERA_OV5642=y

   

   

    we also enable csi in bootargs.

   

   

    In user mode, our v4l2 application (see attach) try to start streaming on...

    But we got the error

   

    "timeout when wait for SOF"

   

    So, our question is can we use OV5642 driver with IMX6SL EVK demo board?

   

    Thanks for your help in advance.

   

   

   

    Eric Wann

Original Attachment has been moved to: V4L2_test.c.zip

Outcomes