Linux, ARM: Why is gpiochip<num> only created if I2C GPIO Expander is present at boot?
问题 Using Linux 3.14.52 on a imx6sx hardware platform (NXP embedded ARM). The problem is that PCF8575 I2C GPIO expanders specified in the device tree are not instantiated as devices in the /sys/class/gpio structure unless they are present during kernel boot. The devices are listed in the /sys/bus/i2c/devices/i2c-1 (i2c bus 1) structures but are not given gpiochip 's in the /sys/class/gpio structure. Is there a way to have these devices assigned as gpiochip after boot once they are added to the