The update to Linux 5.15 rotated the "gpiochip" numbering. 0->4, 1->0, 2->1,
3-2. On devices with labelled GPIOs, this looks like it could be figured out
automatically. However, there are lots of hardcoded GPIO numberings and this
breaks those whether they're using sysfs's GPIO interface or cdev.
Also, from looking at the Beaglebone's Linux repositories for Debian, it looks
like they haven't upgraded to Linux 5.15.
The update to Linux 5.15 rotated the "gpiochip" numbering. 0->4, 1->0, 2->1, 3-2. On devices with labelled GPIOs, this looks like it could be figured out automatically. However, there are lots of hardcoded GPIO numberings and this breaks those whether they're using sysfs's GPIO interface or cdev.
Also, from looking at the Beaglebone's Linux repositories for Debian, it looks like they haven't upgraded to Linux 5.15.
Fixes #266