imx6q two cameras(mipi ov5640 and csi ov5642) work at the same time

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

imx6q two cameras(mipi ov5640 and csi ov5642) work at the same time

762 Views
luciuslu
Contributor I

hi  all,

now I am debugging the cameras driver in the platform of imx6q_sabreSD and the kernel is "linux-imx6-boundary-imx-3.0.35_4.0.0-vivante-4.6.9p12". I encountered a problem :i can capture image independently well (either mipi ov5640 or csi ov5640).but the both cameras cannot work simultaneously.

my i2c register is as follow:

1.

static struct i2c_board_info mxc_i2c0_board_info[] __initdata = {

 {

  I2C_BOARD_INFO("ov564x", 0x3c),

  .platform_data = (void *)&camera_data,

 },

...

};

2.

static struct i2c_board_info mxc_i2c1_board_info[] __initdata = {

 {

  I2C_BOARD_INFO("ov5640_mipi", 0x3c),

  .platform_data = (void *)&mipi_csi2_data,

 },

 ...

}

so there is no conflit on i2c pipeline.

I don't know where the problem is?

I beg someone can give me a solution,a patch or where to fix the problem!

best regards!

lucky

Labels (1)
0 Kudos
3 Replies

493 Views
luciuslu
Contributor I

by the way, if it is possible,I would like to configue like this: csi OV5642 -IPU0-CSI0 and MIPI OV5640-IPU1-CSI1.

Now the  Circuit schematic connection as follow:

OV5642 (parallel data interface) to CSI0 and OV5640 (MIPI) to CSI1.

I want use two IPUs,not only one.

I beg someone help me,When it's over, I would like to treat you to dinner!haha.

BestRegards!

lucky

0 Kudos

493 Views
igorpadykov
NXP Employee
NXP Employee

Hi lucius

please look at example how to assign cameras to different IPU CSIx (VCn)
https://community.nxp.com/docs/DOC-328548

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

493 Views
luciuslu
Contributor I

hi igorpadykov

thanks for your quick respond!

but your recommendation is other kernel version,my kernel version is 3.0.35,there is no .dts or .dtsi in imx-3.0.35_4.0.0,so I donot know how to modify it correspond other version which has dts .

Look forward to your reply!

0 Kudos