Hello NXP Community,
I'm trying to interface an IMX219 8MP camera module (designed for Raspberry Pi 5) with the FRDM-IMX8MPLUS board and encountering issues. I'd like to understand if this is a pinout incompatibility or configuration problem.
Hardware Setup
Current Status
Device Tree Configuration:
Problem:
Driver successfully binds to I2C address but cannot read IMX219 chip ID
No video devices created (/dev/video* doesn't appear for camera)
MIPI CSI data lanes may not be working despite I2C communication
Questions
Pinout Compatibility: Are Raspberry Pi 5 22-pin camera modules directly compatible with the FRDM-IMX8MPLUS CSI connectors (J13/J14)? I've found that RPi5 and i.MX8MP use different 22-pin pinouts:
Power pins appear reversed (RPi5: Pin 1=GND, Pin 22=3.3V vs i.MX8MP appears different)
Data lane positions may differ
I2C pin positions different
I2C Bus Mapping: Why does the camera appear on I2C bus 2 (i2c-2 = I2C3 controller) instead of the expected I2C bus 1 (I2C2 controller)? Is there documentation showing which CSI connector uses which I2C bus?
Alternative Address: The IMX219 standard address is 0x10, but this module responds at 0x1A. Is this a known variant or does the pinout mismatch cause address shifting?
Recommended Solution: Should I:
Use a pin remapping adapter between the camera and FRDM board?
Get a different IMX219 module specifically designed for i.MX8 platforms?
Modify the device tree with special configuration for RPi5-compatible cameras?
Device Tree Excerpt
&i2c3 { imx219: imx219@1a { compatible = "sony,imx219"; reg = <0x1a>; clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>; assigned-clock-rates = <24000000>; // ... MIPI CSI configuration }; };
Additional Information
CLKO2 is confirmed running at 24MHz
Camera module has power (shows I2C response)
Using standard NXP Linux BSP from Yocto
Has anyone successfully used Raspberry Pi 5 compatible cameras with FRDM-IMX8MPLUS? Any guidance on pinout compatibility or recommended camera modules would be greatly appreciated.
References:
Logs:
root@imx8mpfrdm:~# dmesg | grep -i imx219
[ 0.000000] Machine model: NXP i.MX8MPlus FRDM board with IMX219
[ 0.076368] platform 32e50000.csi: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a30000/imx219@10
[ 8.531294] imx219 1-0010: supply VANA not found, using dummy regulator
[ 8.538280] imx219 1-0010: supply VDIG not found, using dummy regulator
[ 8.545630] imx219 1-0010: supply VDDL not found, using dummy regulator
[ 8.559462] imx219 1-0010: Error reading reg 0x0000: -6
[ 8.564769] imx219 1-0010: failed to read chip id 219
Thank you!