ov5640 mipi camera not work for IMX6 Android 4.4.2 BSP

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

ov5640 mipi camera not work for IMX6 Android 4.4.2 BSP

1,789 Views
changyuheng
Contributor II

BSP: Android 4.4.2 kernel: 3.0

Hello:

Our customer board init rear camera using ov5640 mipi camera, the HW modify as follow:

static iomux_v3_cfg_t mx6q_sabresd_mipi_sensor_pads[] = {

    MX6Q_PAD_GPIO_0__CCM_CLKO,        /* camera clk */

    MX6Q_PAD_CSI0_DAT11__GPIO_5_29,     /* camera PWDN */

    MX6Q_PAD_CSI0_DAT10__GPIO_5_28,    /* camera RESET */

    //MX6Q_PAD_SD1_DAT2__GPIO_1_19,        /* camera PWDN */

    //MX6Q_PAD_SD1_CLK__GPIO_1_20,        /* camera RESET */

};

then move I2C bus from I2C2 to I2C1, so I modify the source code 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,

    },

};

But when boot OS, I can't open Camera APP, it show "Connect Camera failed",

But kernel message was boot success as follow:

camera ov5640_mipi is found

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video19

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video20

i2c can read/write using i2c tools command!

By the way, we not have front camera now, we must be use USB camera as front camera in the future.

How to fix this issue?

In addition, I wonder why SABRESD_MIPICSI_PWN default was high, this pin initial low as default refer to

datasheet, right?


logcat file in the attachment, thanks!

https://dl.dropboxusercontent.com/u/70208644/ov5640_logcat.txt

Labels (2)
Tags (1)
0 Kudos
Reply
1 Reply

845 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Please share the init.freescale.rc configuration you have. You have to make sure that this file contains the correct configuration.

Please download the Android FAQ.pdf.

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX6_SW

Under "Documentation"-->"Android"

There you can find in the "18 How do I configure rear and front camera?"

Best Regards,

Alejandro

0 Kudos
Reply