OS Manuals

/usr/bin/gpiodetect

C library and command-line tools for controlling GPIO lines via the Linux GPIO character device uAPI

From libgpiod 2.3.2-r0 (enterprise-packages), captured 2026-11-08 by running gpiodetect --help (exit 0). permalink

Usage: /usr/bin/gpiodetect [OPTIONS] [chip]...

List GPIO chips, print their labels and number of GPIO lines.

Chips may be identified by number, name, or path.
e.g. '0', 'gpiochip0', and '/dev/gpiochip0' all refer to the same chip.

If no chips are specified then all chips are listed.

Options:
  -h, --help		display this help and exit
  -v, --version		output version information and exit
Options (2)
OptionDescriptionSource
-h, --helpdisplay this help and exithelp + man
-v, --versionoutput version information and exithelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.