GPIO on Banana Pi: the RPi.GPIO and WiringPi ports only do simple I/O, and BCM numbers are translatedwarning · unverified · Banana Pi's docs point to ports of WiringPi (with gpio readall) and RPi.GPIO for boards like the BPI-M5, M2S, M4 Zero and F3. The RPi.GPIO port states that only simple I/O works — PWM, events and analog read are not implemented — apps need root, and BCM numbers are mapped to Banana Pi pins internally.
RPi.GPIO edge detection broke with kernel 6.6 (not only on Pi 5): switch to rpi-lgpio or gpiozerowarning · unverified · Since Raspberry Pi's 6.6 kernel, global GPIO numbers start at 512 instead of 0, and RPi.GPIO calls such as add_event_detect fail even on a Pi 4. Raspberry Pi engineers point to rpi-lgpio (same API, apt package python3-rpi-lgpio) or gpiozero. On Pi 5 the header GPIOs moved from gpiochip4 to gpiochip0.