The ALTx signifies the alternate functions of a pin. See this for a better understanding.

BCM is the pin number when using GPIO (aka BCM) numbering scheme, and wPi is the pin number when using the wiringPi's own pin numbering scheme. So when using wiringPi, if you choose wiringPiSetup(), it'll default to using the wPi pin numbers, and wiringPiSetupGpio() will result in using the GPIO/BCM numbers.

Answer from stevieb on Stack Exchange
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › beginners
Am I interpreting gpio readall Correctly? - Raspberry Pi Forums
November 18, 2021 - They call pin 7 GPIO 7 (coincidentally it matches the actual pin number in this case). Using gpio mode 4 out will set Wiring Pi GPIO 4 to output, which is Pin 16, GPIO 23. You should see three lots of names/numbers for each pin in gpio readall: BCM - This is the true GPIO number as used internally by the Pi's main chip.
🌐
GitHub
github.com › WiringPi › WiringPi › blob › master › gpio › readall.c
WiringPi/gpio/readall.c at master · WiringPi/WiringPi
The arguably fastest GPIO Library for the Raspberry Pi - WiringPi/gpio/readall.c at master · WiringPi/WiringPi
Author   WiringPi
Discussions

wiringpi - how to read output of gpio readall - Raspberry Pi Stack Exchange
I never used wiringpi library before. I'm trying to understand how to read the output of gpio readall. What are the BCM and wPi columns? What does ALT0 mode mean? I searched online for output expla... More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
May 9, 2017
pi 5 - Is there a gpio readall utility for Pi5? - Raspberry Pi Stack Exchange
Is there a workable replacement for the gpio readall utility for Pi5? More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
February 3, 2024
rpi.gpio - Is the gpio readall command compatible with RPi 4? - Raspberry Pi Stack Exchange
It's already a while since I got my Pi 4, but never used the gpio readall command until yesterday. I have run into an interesting error. pi@raspberrypi:~ $ gpio readall Oops - unable to determine ... More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
September 10, 2019
gpio pins missing from gpio readall - Rockchip - Armbian Community Forums
hello, i was trying to set up a 2 pin fan on my orangepi 5b and i connected it to pin 25 and 26 (GND and PWM1). When i first started this task, the output from gpio readall would show me all 26 pins on the board. As i was digging through some forums to try and get the PWM pin to operate as on/off... More on forum.armbian.com
🌐 forum.armbian.com
May 6, 2024
🌐
GitHub
github.com › Milliways2 › GPIOreadall
GitHub - Milliways2/GPIOreadall: GPIOreadall is a replacement for the deprecated wiringpi gpio readall utility on Raspberry Pi. · GitHub
GPIOreadall has the advantage of displaying the ACTUAL programmed GPIO function set by Device Tree on boot rather than the default.
Starred by 21 users
Forked by 5 users
Languages   Python 71.9% | Shell 21.7% | C 4.0% | Java 2.4%
Top answer
1 of 2
5

The ALTx signifies the alternate functions of a pin. See this for a better understanding.

BCM is the pin number when using GPIO (aka BCM) numbering scheme, and wPi is the pin number when using the wiringPi's own pin numbering scheme. So when using wiringPi, if you choose wiringPiSetup(), it'll default to using the wPi pin numbers, and wiringPiSetupGpio() will result in using the GPIO/BCM numbers.

2 of 2
4

There is a great write up on this at https://iotbreaks.com/understand-gpio-readall-bash-shell-command-output-on-raspberry-pi/

In keeping with the "Good answers" guidelines, I'll plagiarize the relevant part:

“Physical” column

This is the pin number on the connector. it is simply the physical number which is marked as the following picture. We can easily count its 40 pins without caring the functions.

“V” column

This indicates the voltage level of the pins. As you may notice, the “0/1” value is applicable for GPIO pins only, and leave blank for the rest. V=0 indicates the voltage level on the pin is LOW, the exact voltage value is 0V. In contrast, V=1 indicates the voltage level on the pin is HIGH, the exact voltage value is 3.3V.

“Mode” column

The “Mode” shows how the pin is being used. Here is the list of valid modes able to set for GPIO: in/out/pwm/clock/up/down/tri. However, you also see the “ALT[#]” listed in the Mode column. This ALT[#] indicates the GPIO pin is being used as alternative function – a specific function, not as general purpose function.

  • in: the GPIO pin is used as input without software-register-pull-up or software-register-pull-down. In this mode, if the pin is not connected to any reference point, the input state will be unknown (it is floated).
  • out: the GPIO pin is used as output, and without software-register-pull-up or software-register-pull-down. In this mode, if the pin is not connected to any reference point, the input state will be unknown (it is floated).
  • pwm: the GPIO pin is used as hardware Pulse-Width-Modulation mode which is square waveform generation. This mode is usually used to control DC motor speed or LED dimming. Keep in mind that only BCM 18 (or GPIO.1) supports PWM output mode.
  • clock: the GPIO pin is used as clock generater. The frequency of clock is driven from main crystal frequency of Raspberry Pi. Note that only BCM 4 (or GPIO.7) supports CLOCK output mode.
  • up: The GPIO pin is used as input with software-register-pull-up. In this mode, if the pin is not connected to any reference point, the input state will be HIGH (or 1).
  • down: The GPIO pin is used as input with software-register-pull-down. In this mode, if the pin is not connected to any reference point, the input state will be LOW (or 0).
  • tri: The GPIO pin is used as input without software-register-pull-down or up. In this mode, if the pin is not connected to any reference point, the input state will be LOW or HIGH.
  • ALT[#]: The GPIO pin is used as a special function. You can check the list of those special functions at this link.

“Name” column

This show the names of pins. The name hints us the functions of pins. It is also used as BOARD number when we use GPIO.BOARD mode. This uses P1 header pin numbering convention.

“wPi” column

This is simply a “GPIO”-removed text of “Name” column.

“BCM” column

This is the number of AMR peripherals. we use this number with “gpio” command. For example, “gpio mode 22 in” means that we use BCM 6 pin(Physical-31/Name-GPIO.22) as an input, “gpio -g mode 22 in” means that we use BCM 22 pin(Physical-15/Name-GPIO.3) as an input.

🌐
Yahboom
category.yahboom.net › home › blog › blog
Solution for "gpio readall" command unable to view Pi 4B pin status
March 31, 2020 - When we see following interface without any error, it means that the installation is complete. 7) Input the following command to view the version of gpio. gpio -v 8) Finally, input gpio readall, we can display the status of each pin of Raspberry Pi, as shown in the figure below.
Find elsewhere
🌐
Numato Lab
numato.com › numato lab help center › usb gpio modules › understanding readall/writeall commands for gpio modules
Understanding readall/writeall commands for GPIO Modules | Numato Lab Help Center
August 6, 2016 - This is because the device will select appropriate direction settings for each GPIO as the command is executed. For example, the GPIO will be configured as OUTPUT when gpio set/clear command is executed and configured as INPUT when gpio read command is executed. But when using readall/writeall commands, the device will not configure the GPIO direction automatically.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › software › raspberry pi os
GPIO Readall Code - Raspberry Pi Forums
pi@odyssey:~/python $ ./newGPIOreadall.py +-----+------------+------+---+----++----+---+------+-----------+-----+ | BCM | Name | Mode | V | Board | V | Mode | Name | BCM | +-----+------------+------+---+----++----+---+------+-----------+-----+ | | 3.3v | 1 || 2 | 5v | | | 2 | SDA1 | ALT0 | 1 | 3 || 4 | 5v | | | 3 | SCL1 | ALT0 | 1 | 5 || 6 | GND | | | 4 | GPIO4 | IN | 1 | 7 || 8 | 1 | ALT0 | TXD0 | 14 | | | GND | 9 || 10 | 1 | ALT0 | RXD0 | 15 | | 17 | GPIO17 | IN | 0 | 11 || 12 | 0 | IN | GPIO18 | 18 | | 27 | GPIO27 | IN | 0 | 13 || 14 | GND | | | 22 | GPIO22 | IN | 0 | 15 || 16 | 1 | IN | GP
🌐
GitHub
github.com › Milliways2 › gpioread
GitHub - Milliways2/gpioread: gpioread is a replacement for the deprecated wiringpi gpio readall utility on Raspberry Pi. gpioread has the advantage of displaying the ACTUAL programmed GPIO function set by Device Tree on boot rather than the default.
gpioread is a replacement for the deprecated wiringpi gpio readall utility on Raspberry Pi. gpioread has the advantage of displaying the ACTUAL programmed GPIO function set by Device Tree on boot rather than the default. - Milliways2/gpioread
Starred by 10 users
Forked by 3 users
Languages   Python 100.0% | Python 100.0%
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › beginners
Utility to display GPIO status? - Raspberry Pi Forums
#! /usr/bin/env python3 # 2021-04-02 # 2021-04-13 Fix Wrong model for Old Style revision codes # 2021-12-20 Improve Old Style revision codes; ignore unwanted status bits # 2022-03-25 Zero 2 W # 2022-04-07 typo # 2022-09-20 generic raspi-gpio or alternative """ Read all GPIO This version for raspi-gpio debug tool or equivalent (user supplied) """ import sys, os, time import subprocess MODES=["IN", "OUT", "ALT5", "ALT4", "ALT0", "ALT1", "ALT2", "ALT3"] HEADER = ('3.3v', '5v', 2, '5v', 3, 'GND', 4, 14, 'GND', 15, 17, 18, 27, 'GND', 22, 23, '3.3v', 24, 10, 'GND', 9, 25, 11, 8, 'GND', 7, 0, 1, 5, '
🌐
Medium
ma2shita.medium.com › how-to-use-raspi-gpio-instead-of-gpio-of-wriring-pi-af2ab00eda57
How to use `raspi-gpio` instead of `gpio` of Wriring Pi | by Kohei "Max" Matsushita | Medium
February 10, 2022 - $ gpio readall +-----+-----+---------+------+---+---Pi 3B--+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ ...
🌐
Armbian Community Forums
forum.armbian.com › community maintained / staging › rockchip
gpio pins missing from gpio readall - Rockchip - Armbian Community Forums
May 6, 2024 - hello, i was trying to set up a 2 pin fan on my orangepi 5b and i connected it to pin 25 and 26 (GND and PWM1). When i first started this task, the output from gpio readall would show me all 26 pins on the board. As i was digging through some forums to try and get the PWM pin to operate as on/off...
🌐
Fleetstack
fleetstack.io › blog › check-gpio-pin-states-raspberry-pi
How to Check GPIO Pin States on Raspberry Pi
July 2, 2024 - Use the gpio readall command to display the current state of all GPIO pins: gpio readall · This command provides a table showing the pin numbers, modes, and current states (HIGH or LOW) of all GPIO pins.
🌐
Gordons Projects
projects.drogon.net › home › raspberry pi › wiringpi › the gpio utility
The GPIO utility | Gordons Projects
November 22, 2015 - gpio readall · This reads all the normally accessible pins and prints a table of their numbers (both wiringPi and BCM_GPIO, so makes for a handy cross-reference chart), along with their modes and current values. gpio load spi [buffer size in KB] This loads the SPI kernel modules and optionally ...
🌐
Opto22
developer.opto22.com › pi › examples › terminal-examples
Read and Write from a Terminal <a name="Top"></a> | Opto 22 Developer
In this image, highlighted GPIO pins are mapped to I/O points. Don’t let the column names in this chart confuse you. In a Readall chart from LXTerminal, the GPIO pin numbers are in the column labeled “BCM.”
🌐
Cpmspectrepi
cpmspectrepi.uk › raspberry_pi › MoinMoinExport › WiringPiGpioReadall.html
wiringPi's "gpio readall" Examples
pi@raspbired16Gb ~ $ uname -a Linux raspbired16Gb 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux pi@raspbired16Gb ~ $ gpio readall +----------+-Rev2-+------+--------+------+-------+ | wiringPi | GPIO | Phys | Name | Mode | Value | +----------+------+------+--------+------+-------+ | 0 | 17 | 11 | GPIO 0 | IN | Low | | 1 | 18 | 12 | GPIO 1 | IN | Low | | 2 | 27 | 13 | GPIO 2 | IN | Low | | 3 | 22 | 15 | GPIO 3 | IN | Low | | 4 | 23 | 16 | GPIO 4 | IN | Low | | 5 | 24 | 18 | GPIO 5 | IN | Low | | 6 | 25 | 22 | GPIO 6 | IN | Low | | 7 | 4 | 7 | GPIO 7 | IN | Low | | 8 | 2 | 3