How can I add an I2C device driver through the pca9548 i2c-mux overlay?
I currently have a GPIO expander based on the pca953x driver. If I connect the GPIO expander to pins 2 and 3 (I2C1) and add to /boot/config.txt, the device driver works perfectly, and I see a new gpiochip488. Life is good.
I'd like to connect multiple GPIO expanders through an i2c-mux based on the pca9548. If I connect my mux to pins 2 and 3 (I2C1) and add to /boot/config.txt, the mux driver works properly, and I get 8 new I2C devices at /dev/i2c-22 through /dev/i2c-29.
My question is, how can I use the pca953x overlay when connected through an i2c-mux? I suspect I'll need to recompile an overlay file, but I'm not sure what modifications will be necessary. Also, what will be required to add multiple pca953x gpio expanders to each channel of the i2c mux?
I currently have a GPIO expander based on the pca953x driver. If I connect the GPIO expander to pins 2 and 3 (I2C1) and add
Code:
dtoverlay=pca953x,addr=0x77,tca9539
I'd like to connect multiple GPIO expanders through an i2c-mux based on the pca9548. If I connect my mux to pins 2 and 3 (I2C1) and add
Code:
dtoverlay=i2c-mux,pca9548,addr=0x74
My question is, how can I use the pca953x overlay when connected through an i2c-mux? I suspect I'll need to recompile an overlay file, but I'm not sure what modifications will be necessary. Also, what will be required to add multiple pca953x gpio expanders to each channel of the i2c mux?
Statistics: Posted by mattmunee — Tue Apr 09, 2024 3:25 pm