I've managed to solve my issue another way. The reason I was trying to use the dynamic overlay in the first place is because the GPIO expander is on a separate circuit board that may or may not have power when the Pi boots. If the board did not have power during boot, then the device tree driver would fail to load. I now know that I can force a "re-probe" of the driver by executing the following command after the GPIO expander has power.This way I can keep the overlay in config.txt, and just execute the command above if the Pi boots when the GPIO expander doesn't have power.
Code:
echo 1-0074 | sudo tee /sys/bus/i2c/drivers/pca953x/bind
Statistics: Posted by mattmunee — Wed Aug 14, 2024 6:48 pm