(I don't like your naming convention - both your "I2C0" and "I2C1" would normally use the hardware interface I2C0, just on different GPIOs. Also, although hardware interface I2C1 can be mapped to GPIOs 44 and 45, it can't be mapped to GPIOs 0 & 1. I'm going to assume that by "I2C0" you mean "the I2C port associated with CAM0", and likewise for "I2C1" and "CAM1".)
You appear to have cross-wired the I2C ports compared to the CM4IO board. The normal pairings are CAM0 with GPIOs 0 & 1 and CAM1 with GPIOs 44 & 45. As your configuration is not supported by our overlays, you'll need to create something custom.
The existing "cam0" parameter does this:There is no "cam1" parameter because it's the default, but if there was it would look like this:Assuming only the I2C port is different, you can probably see that what you need is:You can change the parameter names, but the content should be as shown above.
You appear to have cross-wired the I2C ports compared to the CM4IO board. The normal pairings are CAM0 with GPIOs 0 & 1 and CAM1 with GPIOs 44 & 45. As your configuration is not supported by our overlays, you'll need to create something custom.
The existing "cam0" parameter does this:
Code:
cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>, <&csi_frag>, "target:0=",<&csi0>, <&clk_frag>, "target:0=",<&cam0_clk>, <&cam_node>, "clocks:0=",<&cam0_clk>, <&cam_node>, "vdda-supply:0=",<&cam0_reg>;
Code:
cam1 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>, <&csi_frag>, "target:0=",<&csi1>, <&clk_frag>, "target:0=",<&cam1_clk>, <&cam_node>, "clocks:0=",<&cam1_clk>, <&cam_node>, "vdda-supply:0=",<&cam1_reg>;
Code:
cam0_44_45 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>, <&csi_frag>, "target:0=",<&csi0>, <&clk_frag>, "target:0=",<&cam0_clk>, <&cam_node>, "clocks:0=",<&cam0_clk>, <&cam_node>, "vdda-supply:0=",<&cam0_reg>;cam1_0_1 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>, <&csi_frag>, "target:0=",<&csi1>, <&clk_frag>, "target:0=",<&cam1_clk>, <&cam_node>, "clocks:0=",<&cam1_clk>, <&cam_node>, "vdda-supply:0=",<&cam1_reg>;
Statistics: Posted by PhilE — Tue Nov 12, 2024 9:43 am