Dear Support Team,
We are currently working on integrating two cameras using the i.MX8MP FRDM board.
The camera configuration is as follows:
* CSI2:0 is connected to an OV5640 camera.
* CSI2:1 is connected to a custom camera module.
For both cameras, we configured the device tree so that the image pipeline does not use ISP functionality. The intended pipeline is:
"Sensor → MIPI CSI-2 → ISI → Capture"
The device tree file is attached for your reference: "imx8mp-frdm-ov5640-cusdom.dts"
The issue is that the custom camera driver successfully completes the I2C probe process on I2C3, but a kernel panic occurs when calling "v4l2_async_register_subdev_sensor()".
In summary, the kernel panic occurs because "mxc_isi.1" has not been created or registered at the time when the custom camera is registered.
The related kernel panic log is attached: "panic-log.txt"
We have also attached the probe function implementation of the custom camera driver: "custom_driver_probe.c"
We created "imx8mp-frdm-ov5640-cusdom.dts" by referring to the default device tree configuration of the i.MX8MP FRDM board.
The OV5640 camera is working correctly. However, the custom camera cannot establish the connection with the ISI pipeline, which eventually causes the kernel panic.
After reviewing both the device tree configuration and the custom camera driver, we have not been able to identify the root cause of the issue.
The attached "imx8-media-dev.c" file only contains additional debug messages that we added to determine where the kernel panic occurs.
Our goal is to operate two different cameras simultaneously through the MIPI CSI-2 interfaces on the i.MX8MP platform.
Could you please review the attached device tree and driver code and advise which configuration or implementation part may be incorrect or missing?
Your support and guidance would be greatly appreciated.
Thank you.
Best regards,
Seobi