two OV5640 mipi csi cameras

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

two OV5640 mipi csi cameras

跳至解决方案
2,735 次查看
bineyamtafesse
Contributor II

Working to interface two OV5640 MIPI CSI cameras(MINISASTOCSI) to the imx8mqevk board. Per the schematic note, I've routed the I2C lines for the second camera to a separate I2C channel (I2C2).  I made the adjustment to the device tree so both cameras are enabled. 

If I have only one camera physically connected, both lines work. This confirms that device tree files work correctly with their respective cameras. However, when I have both cameras connected, the system freezes up on attempt to initialize second camera.  Can the OV5640 drivers support two cameras?

Below is the message i get before it freezes:

[ 2.125015] i2c /dev entries driver
[ 2.132435] 0-003c supply DOVDD not found, using dummy regulator
[ 2.138514] 0-003c supply DVDD not found, using dummy regulator
[ 2.144480] 0-003c supply AVDD not found, using dummy regulator
[ 2.245928] random: fast init done
[ 3.266017] camera ov5640_mipi is found
[ 3.270015] 1-003c supply DOVDD not found, using dummy regulator
[ 3.276132] 1-003c supply DVDD not found, using dummy regulator
[ 3.282139] 1-003c supply AVDD not found, using dummy regulator
[ 4.418004] camera ov5640_mipi is found
[ 4.422874] mxc-mipi-csi2_yav 30a70000.mipi_csi1: mipi_csi2_probe
[ 4.429062] CSI: Registered sensor subdevice: mxc-mipi-csi2.0
[ 4.434867] mxc-mipi-csi2_yav 30a70000.mipi_csi: Remote device at /mipi_csi1@30a70000/port/endpoint1 XXX found

标签 (2)
1 解答
1,840 次查看
felixradensky
Contributor IV

Hi Bineyam,

My apologies, the fix is available in 4.9.123 i.MX8MM GA release. The relevant commit is linux-imx - i.MX Linux kernel 

Make sure to properly configure reg and csi-id properties in ov5640_mipi DTS nodes. csi-id should be 0 for the first camera and 1 for the second one

Felix.

在原帖中查看解决方案

4 回复数
1,840 次查看
felixradensky
Contributor IV

Hi,

The driver does not support multiple cameras in 4.9.51 GA kernel. This was fixed 4.9.88 GA release.

Felix.

0 项奖励
1,840 次查看
bineyamtafesse
Contributor II

Hi Felix,

I am using 4.9.88 kernel. If I setup the second camera to use a separate i2c channel (and route the cables accordingly). After enabling both cameras in the device tree, the system boots up, finds the first camera, initializes it, finds the second camera, and hangs up on initializing the OS.

Bineyam

0 项奖励
1,841 次查看
felixradensky
Contributor IV

Hi Bineyam,

My apologies, the fix is available in 4.9.123 i.MX8MM GA release. The relevant commit is linux-imx - i.MX Linux kernel 

Make sure to properly configure reg and csi-id properties in ov5640_mipi DTS nodes. csi-id should be 0 for the first camera and 1 for the second one

Felix.

1,840 次查看
diegoadrian
NXP Employee
NXP Employee

Hello,

I apologize for the late answer. Let me investigate if the driver could support dual mipi-display camera. But how you are mentioning your case. Apparently is not supported.

Best Regards,

Diego.

0 项奖励