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

Interfacing (DSI, CSI, I2C, etc.) • Re: PI CM5,SDA0/SCL0

$
0
0
Hardware naming doesn't always match software naming.
Software i2c-0 is on GPIOs 0&1.
The I2C block driving hardware lines SDA0/SCL0 on GPIOs 38&39 is sofware i2c-10.

"dtparam=i2c_csi_dsi0" will enable i2c-10 already mapped to GPIOs 38&39 for the hardware lines named SDA0/SCL0.
Thank you for your reply. After following the operations you suggested, when using

Code:

i2cdetect -l
, the i2c0 device was not found. I added

Code:

dtoverlay=i2c0,pins_0_1
to the `/boot/firmware/config.txt` file, and added the following in the dts:

Code:

fragment@1 {target = <&i2c_csi_dsi0>;__overlay__ {status = "disabled";};};
. In this way, the i2c0 device can be detected. Is my approach reasonable?

Statistics: Posted by xuel — Mon Apr 28, 2025 2:00 am



Viewing all articles
Browse latest Browse all 8452

Trending Articles