Dell N3200-ON Open Networking Hardware Diagnostic Guide July 2022 - Page 34

Output, list output, Chip 0 Core Gpio bits: 147 CORE gpiochip0

Page 34 highlights

gpiotool --set [--chip=] --pin= --val= gpiotool -s [-C ] -H -V Get GPIO pins value:= gpiotool --get [--chip=] [--pin=] gpiotool -g [-C ] [-H ] Execute repeatedly command by count:= gpiotool --iteration=max/ [option1] [option2]... gpiotool -I max/ [option1] [option2]... Usage:= -h, --h Show the help text -l, --list List operation -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 (or) (or) (or) Output list output root@dellemc-diag-os:~# gpiotool --list Chip 0 Core Gpio bits: 147 CORE gpiochip0 Bit Name Dir AC Value 4 CPLD GPIO 4 OUT LOW 0 5 BOOT OK OUT LOW 0 6 BOOT FINITO OUT LOW 0 8 CPLD GPIO 8 OUT LOW 0 9 SYSTEM INT IN LOW 0 10 CPLD GPIO 10 OUT LOW 0 22 CPLD GPIO 22 OUT LOW 0 23 CPLD GPIO 23 OUT LOW 0 37 CPLD GPIO 37 OUT LOW 0 38 CPLD GPIO 38 OUT LOW 0 39 1588 1PPS IN LOW 0 40 CPLD GPIO 40 OUT LOW 0 100 CPLD GPIO 100 OUT LOW 0 112 CPLD GPIO 112 OUT LOW 0 get output root@dellemc-diag-os:~# gpiotool --get --pin=4 Chip 0 Core Gpio bits: 147 CORE gpiochip0 Bit Name Dir Value 4 CPLD GPIO 4 OUT 0 set output root@dellemc-diag-os:~# gpiotool --set --pin=1 --val=1 34 Dell DIAG-OS tools

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

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 operation
-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@dellemc-diag-os:~# gpiotool --list
Chip 0 Core Gpio bits: 147 CORE gpiochip0
=========================================
Bit
Name
Dir
AC
Value
=========================================
4
CPLD GPIO 4 OUT
LOW
0
5
BOOT OK OUT
LOW
0
6
BOOT FINITO OUT
LOW
0
8
CPLD GPIO 8 OUT
LOW
0
9
SYSTEM INT IN
LOW
0
10
CPLD GPIO 10 OUT
LOW
0
22
CPLD GPIO 22 OUT
LOW
0
23
CPLD GPIO 23 OUT
LOW
0
37
CPLD GPIO 37 OUT
LOW
0
38
CPLD GPIO 38 OUT
LOW
0
39
1588 1PPS IN
LOW
0
40
CPLD GPIO 40 OUT
LOW
0
100
CPLD GPIO 100 OUT
LOW
0
112
CPLD GPIO 112 OUT
LOW
0
get output
root@dellemc-diag-os:~# gpiotool --get --pin=4
Chip 0 Core Gpio bits: 147 CORE gpiochip0
===================================
Bit
Name
Dir
Value
===================================
4
CPLD GPIO 4 OUT
0
set output
root@dellemc-diag-os:~# gpiotool --set --pin=1 --val=1
34
Dell DIAG-OS tools