Hello,
I’m having trouble testing the OV5640 camera module with the iMX8QM with the Apalis Evaluation Board. Based on the MIPI-CSI2 OV5640 software support topic in this forum I would have expected the camera module to work out of the box, but that doesn’t seem to be the case.
I’ve noticed that both the OV5640 I2C device and CSI1 are disabled in the device-tree by default. Enabling them does expose a MIPI-CSI device in sysfs, but the boot log generates the following error: ov5640_mipi 2-003c: clock-frequency missing or invalid.
What do I need to do in order to get the OV5640 to function?
The board itself only has Rev 1.1 printed on it, but the purchase order was for a v1.1Z board.
That explains why I’m seeing that error message in the boot log. I must still be missing something though, the commands listed in MIPI-CSI2 OV5640 software support both fail.
There should be a sticker at the back of the camera module denoting the full version.
The only difference between the A and the Z stuffing version is that V1.1Z has an additional oscillator assembled.
Could you check if you either have the sticker or if OSC1 is assembled to make sure you really got the V1.1Z?
Why do you think that in the device-tree the OV5640 I2C device and CSI1 are disabled?
The two nodes have their status set to okay.
For me, with the original image, no altered device-tree or anything I get the following during boot:
root@apalis-imx8:~# dmesg | grep ov5640
[ 2.714901] camera ov5640_mipi is found, ret: 0
[ 2.802296] mx8-img-md: Registered sensor subdevice: ov5640_mipi_nv 2-003c (1
)
[ 2.888270] mx8-img-md: created link [ov5640_mipi_nv 2-003c] => [mxc-mipi-csi
2.1]
Note that the pipelines require access to the X-Server, so if you are on the serial console you have to set the DISPLAY variable:
Hi Max,
The Camera board is indeed marked as v1.1Z on the sticker, and OSC1 is populated.
The original, unmodified fsl-imx8qm-apalis.dtb device tree in the boot partition of the SD card I received with the iMX8 SOM contains the following entries when decompiled using the dtc tool:
Hello…i had the same trouble while me and my partner was working on a project. We have assigned DSI pins to CSI2 pins of MIPI CSI2 Rx subsystem block in the PL. Now could we able to connect the camera in those pins. Since those pins from HP bank of the zynq ultrascale device.
Please note that hijacking old questions is discouraged and one should rather ask a new question including as much information as possible.
Please further note that this community is about Toradex products and at least so far we do not have any Zynq Ultrascale offerings and are therefore unable to help you.