/sys/class/gpio pin numbers may need to be offset
A Python module to control the GPIO on a Raspberry Pi
Brought to you by:
croston
Upstream kernel doesn't force the gpiochip to have a 0 base as raspbian kernel does. To handle this case, look for the /sys/class/gpio/gpiochipXXX/label that matches the pinctrl-bcm2835 driver. Then add the base value if this chip to the pin number for export / unexport and friends.
With this, GPIO interrupts are working with upstream kernels.