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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,113 Views
ericwann
Contributor I

   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

Labels (6)
Tags (3)
0 Kudos
1 Reply

497 Views
ericwann
Contributor I

This is user mode softare issue. It has been fixed by change V4L2 function call.

0 Kudos