Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4941

Compute Module • Re: CM4 CAM0 I2C Pins

$
0
0
(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".)
Actually I think this is our hardware folks having not talked to software when writing the CM4 datasheet.
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 easier option is to use the cm-swap-i2c0 overlay to reassign the GPIOs for i2c-0 and i2c-10.
I think "dtoverlay=cm-swap-i2c0,i2c10-gpio0,i2c0-gpio44" will do that for you.

Statistics: Posted by 6by9 — Tue Nov 12, 2024 9:58 am



Viewing all articles
Browse latest Browse all 4941

Trending Articles