AnsweredAssumed Answered

why is gpiochip for I2C PCF8575 only created if present during boot

Question asked by Bruce Parker on May 10, 2016
Latest reply on May 12, 2016 by Bruce Parker

imx6sx hardware platform.

Linux version 3.14.52-1.1.


We have a platform in which some of the I2C PCF8575 GPIO expander devices located on the I2C bus are not present until after the system is booted. All of the potential devices are listed in the device tree and entries for each potential devices does show up in the /sys/bus/i2c/devices subfolders. However, only the only devices which show up in the /sys/class/gpio folder as a gpiochip<number> are ones that are powered on when the kernel boots.


On a previous platform that uses an embedded PowerPC CPU, gpiochip<number> nodes are created for all potential devices specified in the device tree regardless if they are present during boot or not.


Does anyone know if this an architecture difference in how I2C GPIO expanders are handled?

What would be the proper method to add the missing chips as gpio controllers chips after boot?