Skip to content

Enable dual OV5640 cameras on i.MX8MQ EVK board

Robby Cai imx linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64: dts: imx8mq: Correct MIPI CSI clocksarch/arm64/boot/dts/freescale/imx8mq.dtsi+2 -24 replies
2/2arm64: dts: imx8mq-evk: Enable MIPI CSI and dual OV5640 camerasarch/arm64/boot/dts/freescale/imx8mq-evk.dts+149 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Enable dual OV5640 cameras on i.MX8MQ EVK board

This series adds dual-camera support for the i.MX8MQ EVK board.

Patch 1 fixes the MIPI CSI clock configuration in the i.MX8MQ device tree. The previous configuration violated a timing constraint defined in the i.MX8MQ Reference Manual:

"The frequency of clk must be exactly equal to or greater than the RX byte clock coming from the RX DPHY."

This mismatch could lead to unstable operation, observed as intermittent capture failures. The updated clock ratios align with those used in NXP��s downstream BSP and were verified to resolve the issue.

Patch 2 enables full MIPI CSI support and dual OV5640 camera operation on the i.MX8MQ EVK. This includes enabling both CSI controllers and their corresponding MIPI CSI-2 host interfaces, as well as adding two OV5640 sensor nodes on I2C1 and I2C2.

Note:
This series depends on patch [1] currently under review, as well as commit 6d79bb8fd2aa ("media: imx8mq-mipi-csi2: Explicitly release reset").

[1] https://lore.kernel.org/imx/[email protected]/

Robby Cai (2):
arm64: dts: imx8mq: Correct MIPI CSI clocks
arm64: dts: imx8mq-evk: Enable MIPI CSI and dual OV5640 cameras

 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 149 +++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mq.dtsi    |   4 +-
 2 files changed, 151 insertions(+), 2 deletions(-)
Signature · 1 line
2.37.1