Reference Guide

gpiotool --h (or)
gpiotool -h
List available gpio chips and pins:=
gpiotool --list (or)
gpiotool -l
Set GPIO pin:=
gpiotool --set [--chip=<chip>] --pin=<pin> --val=<value> (or)
gpiotool -s [-c <chip>] -H <pin> -V <value>
Get GPIO pins value:=
gpiotool --get [--chip=<chip>] [--pin=<pin>] (or)
gpiotool -g [-c <chip>] [-H <pin>]
Execute repeatedly command by count:=
gpiotool --iteration=max/<count> [option1] [option2]... (or)
gpiotool -I max/<count> [option1] [option2]...
Usage:=
-h, --h Show the help text
-l, --list List the understood TLV codes and names
-s, --set Set operation
-g, --get Get operation
-c, --chip= GPIO chip
-I, --iteration= Iteration command execution
-H, --pin= GPIO pin number
-V, --val= Value to be set
Output
list output
root@dell-diag-os:~# gpiotool --list
Chip 0 Core Gpio bits: 60 CORE gpiochip196
=========================================
Bit Name Dir AC Value
=========================================
15 SATA_GP0 IN LOW 0
16 SATA_LEDN OUT LOW 0
17 SATA3_GP0 IN LOW 0
19 FLEX_CLK_SE0 IN LOW 0
20 FLEX_CLK_SE1 IN LOW 0
32 GPIO_SUS1 IN LOW 0
33 GPIO_SUS2 OUT LOW 0
34 CPU_RESET_B OUT LOW 0
36 PMU_SUSCLK OUT LOW 0
37 PMU_SLP_DDRVTT_B IN LOW 0
38 PMU_SLP_LAN_B IN LOW 0
39 PMU_WAKE_B OUT LOW 0
40 PMU_PWRBTN_B IN LOW 0
49 GBE_SDP0_1 IN LOW 0
50 GBE_LED0 IN LOW 0
51 GBE_LED1 IN LOW 0
52 GBE_LED2 IN LOW 0
53 GBE_LED3 IN LOW 0
54 NCSI_RXD1 OUT LOW 0
55 GBE_MDIO0_I2C_CLK OUT LOW 0
58 GBE_MDIO1_I2C_DATA IN LOW 0
59 JTAG_TRST OUT LOW 0
root@dell-diag-os:~#
get output
root@dell-diag-os:~# gpiotool --get --pin=1
Chip 0 Core Gpio bits: 60 CORE gpiochip196
===================================
Bit Name Dir Value
===================================
50
Dell EMC DIAG OS tools