https://elinux.org/RPi_BCM2711_GPIOs

There are 58 General-Purpose Input/Output (GPIO) lines split into three banks.

  • Bank 0 contains GPIOs 0 to 27,
  • bank 1 contains GPIOs 28 to 45,
  • and bank 2 contains GPIOs 46 to 57.

All GPIO pins have at least two alternative functions within BCM2711.