AnsweredAssumed Answered

Only one Camera for Android 4.4.2 BSP using ov5640 module

Question asked by May Queen on Mar 18, 2015
Latest reply on May 7, 2015 by alejandrolozano

As title, my customer board has refer to sabresd mother board, and I use only one ov5640 module as rear camera via mipi and i2c,

my i2c bus has move to i2c0, so I only modify sabresd board file as follow:

 

static struct i2c_board_info mxc_i2c0_board_info[] __initdata = {

    {

        I2C_BOARD_INFO("wm89**", 0x1a),

    },

/*    {

        I2C_BOARD_INFO("ov564x", 0x3c),

        .platform_data = (void *)&camera_data,

    },*/

    {

        I2C_BOARD_INFO("mma8x5x", 0x1c),

        .irq =    gpio_to_irq(SABRESD_ACCL_INT),

        .platform_data = (void *)&mma8x5x_position,

    },

    {

        I2C_BOARD_INFO("ov5640_mipi", 0x3c),

        .platform_data = (void *)&mipi_csi2_data,

    },

};

 

static struct i2c_board_info mxc_i2c1_board_info[] __initdata = {

    {

        I2C_BOARD_INFO("mxc_hdmi_i2c", 0x50),

    },

/*  {

        I2C_BOARD_INFO("ov5640_mipi", 0x3c),

        .platform_data = (void *)&mipi_csi2_data,

    },

    {

        I2C_BOARD_INFO("egalax_ts", 0x4),

        .irq = gpio_to_irq(SABRESD_CAP_TCH_INT0),

    },*/

/*    {

        I2C_BOARD_INFO("max11801", 0x48),

        .platform_data = (void *)&max11801_mode,

        .irq = gpio_to_irq(SABRESD_TS_INT),

    },*/

};

 

but I still can't connect this camera, I can dump ov5640 registers in rootfs using i2ctools, then I cat /dev/video1,

it still shows read csi2 info fail.

 

I miss something else that it must be modified?? please help me, thanks!

Outcomes