imx219 camera integration issue with IMX95-15x15 frdm Hi all, I'm trying to bring up a Sony IMX219 camera on the FRDM-IMX95 (imx95-15x15-lpddr4x-frdm) using AN15033 (i.MX Camera Software Pack, BSP LF6.18.2-1.0.0), section 3.2 (precompiled binaries). The camera is not detected. **What I did** - Booted the prebuilt LF6.18.2-1.0.0 image - Ran copy_binaries.sh from the IMX219 binaries directory (i.MX95-15x15-FRDM-LPDDR4x) - In U-Boot: setenv fdtfile imx95-15x15-frdm-imx219-isp.dtb; saveenv; boot - Camera: standard 15-pin IMX219 module (the module and FPC cable both are connected and pin to pin match and the camera is working with STM32mp2 and Rpi). **What I see** -nxp-neo-uguzzi/ and cam -l (with LIBCAMERA_IPA_MODULE_PATH=/usr/lib/libcamera/ipaLIBCAMERA_PIPELINES_MATCH_LIST='nxp/neo,imx8-isi,uvc' exported): libcamera v0.0.0+6489-lf-6.18.2-1.0.0 Available cameras: (empty) dmesg: root@imx95-15x15-lpddr4x-frdm:~# dmesg | grep "imx219" [ 0.479570] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.533110] /soc/csi@4ad30000: Fixed dependency cycle(s) with /soc/bus@42000000/i2c@42540000/imx219@10 [ 0.670857] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.712509] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.784500] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.802395] /soc/csi@4ad30000: Fixed dependency cycle(s) with /soc/bus@42000000/i2c@42540000/imx219@10 [ 3.664050] /soc/csi@4ad30000: Fixed dependency cycle(s) with /soc/bus@42000000/i2c@42540000/imx219@10 [ 3.673513] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 9.425624] imx219 3-0010: supply VANA not found, using dummy regulator [ 9.436000] imx219 3-0010: supply VDIG not found, using dummy regulator [ 9.443871] imx219 3-0010: supply VDDL not found, using dummy regulator [ 9.462659] imx219 3-0010: Error reading reg 0x0000: -5 [ 9.468287] imx219 3-0010: error -EIO: failed to read chip id 219 [ 9.478088] imx219 3-0010: probe with driver imx219 failed with error -5 After reseating the camera the error changed to -5 (-EIO), same "failed to read chip id". i2cdetect: nothing at 0x10 on i2c-2 (42530000.i2c) or i2c-3 (42540000.i2c). Only unrelated devices show up (UU at 0x33, 0x4c, 0x62 on bus 3; 0x50 and 0x52 on bus 2). The imx219 module is loaded, the DT node exists, and the neoisp probe succeeds, so this looks like the sensor is not reachable/powered rather than a libcamera or driver issue. **Observations** - The DT node is imx219@10 under /soc/bus@42000000/i2c@42540000 (i2c-3). AN15033 section 3.4 shows the path as .../i2c@42530000/imx219@10, which doesn't match what I have. Is this a typo in the note? - The node has reset-gpios. gpioinfo shows "MIPI-CSI camera reset" (line 19) as an output with no consumer after the probe fails. **Questions** 1. AN15033 connects the camera via the RPI-CAM-MINISAS adaptor plus a 22-pin to 15-pin FPC cable. Is that adaptor required, or is a plain 15-to-22-pin cable enough? Note: Pin to pin matched. 2. Has anyone gotten the IMX219 working on the FRDM-IMX95 with this software pack, and if so, with which exact module and cable? Here is the camera im using : https://probots.co.in/8mp-imx219-camera-module-77-fov-raspberry-pi-5.html BR Aman Sharma Yocto Project Re: imx219 camera integration issue with IMX95-15x15 frdm Hello,
yes, the adaptor is required, connect RPI-CAM-MINISAS adaptor to IMX 219 camera connector to MIPI-CSI connector on i.MX 95 15 mm x 15 mm FRDM; use the 22 pin (0.5 mm pitch) to 15 pin (1 mm pitch) FPC cable.
Please refer to the following link:
https://docs.nxp.com/bundle/AN15033/page/topics/enable_sony_imx_219_camera_module.html
Re: imx219 camera integration issue with IMX95-15x15 frdm Hello, Thank you for the clarification regarding the RPI-CAM-MINISAS adaptor and the FPC cable. I followed AN15033 and used the recommended setup. My Sony IMX219 camera is now working on the FRDM-i.MX95, but I am facing an issue with camera detection during boot and after a hardware reset. 1. Camera detection issue during boot and hardware reset Currently, the camera behaves differently depending on how the board is started or rebooted: First boot: When I power on the board for the first time, the camera is not detected. Software reboot: When I reboot the board using the reboot command from the terminal, the camera is detected successfully. Hardware reset: When I reset the board using the hardware reset pin, the camera is not detected. Manual workaround: After a hardware reset, I have to manually drive the camera reset GPIO high and bind the IMX219 driver again from the user space to get the camera working. I have already configured the camera reset GPIO with a pull-up in the device tree. Could this issue be related to the reset GPIO's initial state, GPIO pinmux configuration, sensor power sequencing, or reset timing during boot? What would be the recommended way to resolve this issue permanently through the device tree or driver, so that the camera is detected reliably during the initial boot as well as after hardware resets, without requiring manual GPIO control or driver rebinding? 2. Dual-camera support on FRDM-i.MX95 My next requirement is to use two MIPI-CSI cameras simultaneously on the FRDM-i.MX95 board. Does NXP provide any reference BSP, device-tree configuration, or example implementation for dual-camera operation on the FRDM-i.MX95 using the i.MX Camera Software Pack (BSP LF6.18.2-1.0.0)? Specifically, I would like to know whether there is a recommended reference configuration for operating two Sony IMX219 cameras simultaneously and capturing frames from both cameras through libcamera. I would appreciate any available documentation or working reference implementation for this setup. Thank you for your support. Best regards, Aman Sharma
View full article