I'm currently trying to resolve an issue, where my OnOffShim doesn't shut down the Pi 3B anymore.
So I checked /sys/class/gpio and was a little surprised that I don't find all GPIOs there:
user@rpi:~ $ ls -l /sys/class/gpio insgesamt 0 -rwxrwx--- 1 root gpio 4096 Jan 13 22:18 export lrwxrwxrwx 1 root gpio 0 Jan 13 22:19 gpio13 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio13 lrwxrwxrwx 1 root gpio 0 Jan 13 22:19 gpio16 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio16 lrwxrwxrwx 1 root gpio 0 Jan 13 22:19 gpio19 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio19 lrwxrwxrwx 1 root gpio 0 Jan 13 22:19 gpio20 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio20 lrwxrwxrwx 1 root gpio 0 Jan 13 22:19 gpio21 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio21 lrwxrwxrwx 1 root gpio 0 Jan 13 22:19 gpio26 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio26 lrwxrwxrwx 1 root gpio 0 Jan 13 22:18 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0 lrwxrwxrwx 1 root gpio 0 Jan 13 22:18 gpiochip504 -> ../../devices/platform/soc/soc:firmware/soc:firmware:expgpio/gpio/gpiochip504 -rwxrwx--- 1 root gpio 4096 Jan 13 22:18 unexport I'm especially missing the GPIO4 and GPIO17, which are supposed to work with OnOffShim.
So is this as it should be or are there really some GPIO entries missing?