Only one Camera for Android 4.4.2 BSP using ov5640 module

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

Only one Camera for Android 4.4.2 BSP using ov5640 module

833 Views
mayqueen
Contributor IV

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!

Labels (3)
Tags (1)
0 Kudos
3 Replies

466 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

As you can see in this discussion

https://community.freescale.com/message/493807#493807

the customer was able to mount the camera device with no problems. Please make sure you have the same modifications.

Best Regards,

Alejandro

0 Kudos

466 Views
mayqueen
Contributor IV

why no any response....sigh..

0 Kudos

466 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Were you able to make it work?

/Alejandro

0 Kudos