You have the I2C bus, but the overlay is still looking at the wrong bus.
https://github.com/raspberrypi/linux/pull/6541 implements my thought for the mcp23017 overlay (and ads1115).
Once CI has built it (about 40 mins), you should be able to use "sudo rpi-update pulls/6541" to get the test build. Normal advice on not using rpi-update on a critical Pi or without a backup.
With that you should be able to doand it will bind the mcp23017 to that bus.
(If you add eg ",bus=3" to the i2c-gpio line because you want multiple or a known bus number, then "i2c-path=/i2c@3" would be the appropriate override for the mcp23017 line).
https://github.com/raspberrypi/linux/pull/6541 implements my thought for the mcp23017 overlay (and ads1115).
Once CI has built it (about 40 mins), you should be able to use "sudo rpi-update pulls/6541" to get the test build. Normal advice on not using rpi-update on a critical Pi or without a backup.
With that you should be able to do
Code:
dtoverlay=i2c-gpio,i2c_gpio_sda=10,i2c_gpio_scl=11dtoverlay=mcp23017,i2c-path=/i2c@0
(If you add eg ",bus=3" to the i2c-gpio line because you want multiple or a known bus number, then "i2c-path=/i2c@3" would be the appropriate override for the mcp23017 line).
Statistics: Posted by 6by9 — Mon Dec 16, 2024 3:25 pm