GPIODETECT(1) gpiodetect GPIODETECT(1)

# [NAME](#NAME)

gpiodetect - libgpiod command-line utility

# [SYNOPSIS](#SYNOPSIS)

**gpiodetect** \[*OPTIONS*] \[*chip*]...

# [DESCRIPTION](#DESCRIPTION)

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](#OPTIONS)

[**-h**, **--help**](#h)

display this help and exit

[**-v**, **--version**](#v)

output version information and exit

# [AUTHOR](#AUTHOR)

Bartosz Golaszewski &lt;brgl@kernel.org&gt;

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to:  
Bartosz Golaszewski &lt;brgl@kernel.org&gt;  
linux-gpio &lt;linux-gpio@vger.kernel.org&gt;

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2017-2023 Bartosz Golaszewski License: GPL-2.0-or-later  
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

October 2026 gpiodetect v2.3.1 (libgpiod v2.2.1)

---

Document: gpiodetect(1) from libgpiod 2.3.1-r0 (Chainguard OS)
