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

Listdevicenames output, Read output, Write output, Reset Extender CPLD 4 RW 0x1

Page 64 highlights

0x102 SW_SCRATCH bits:8 RW val:0xde mask:0xff test:1 ver:0x0 7:0 SW_SCRATCH RW 0xde 0x103 CPLD_ID bits:8 RO val:0xff mask:0xff test:0 ver:0x0 7:0 CPLD_ID RO 0x1 0x10f BOARD_REV bits:8 RO val:0xff mask:0xff test:0 ver:0x0 7:0 BOARD_REV RO 0 0x110 CPLD_SEP_RST0 bits:8 RO val:0xff mask:0xff test:0 ver:0x0 7 Reset Extender CPLD 4 RW 0x1 0 Reset 1 Not Reset 6 Reset Extender CPLD 3 RW 0x1 0 Reset 1 Not Reset 5 Reset Extender CPLD 2 RW 0x1 0 Reset 1 Not Reset 4 PCA9548_RST7 RW 0x1 0 Reset 1 Not Reset 3 PCA9548_RST6 RW 0x1 0 Reset 1 Not Reset 2 PCA9548_RST5 RW 0x1 0 Reset 1 Not Reset 1 PCA9548_RST4 RW 0x1 0 Reset 1 Not Reset Listdevicenames output Based from the output of --devicenames, you can decide if you must use the --devname= option in the read or write functions. You can access CPLD1 being at deviceaddress 0, using the register value for the register you want, such as: root@dell-diag-os:~# pltool -listdevicenames 0x0 : CPLD1 0x3e : CPLD2 0x3e : CPLD3 0x3e : CPLD4 0x0 : SMF_FPGA Read output root@dell-diag-os:~# pltool --read --devname=CPLD4 --dev=0x3e --reg=0x2 SW_SCRATCH : offset 0x02 = 0xde 7: 0 SW_SCRATCH = de root@dell-diag-os:~# Write output root@dell-diag-os:~# pltool --write --devname=CPLD4 --dev=0x3e --reg=0x2 --val=0xff Test output root@dell-diag-os:~# pltool --test Testing Programmable Devices: PL Tool test: CPLD1 Passed CPLD2: SW_SCRATCH Passed CPLD3: SW_SCRATCH Passed 64 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

0x102 SW_SCRATCH bits:8 RW val:0xde mask:0xff test:1 ver:0x0
7:0 SW_SCRATCH RW 0xde
0x103 CPLD_ID bits:8 RO val:0xff mask:0xff test:0 ver:0x0
7:0 CPLD_ID RO 0x1
0x10f BOARD_REV bits:8 RO val:0xff mask:0xff test:0 ver:0x0
7:0 BOARD_REV RO 0
0x110 CPLD_SEP_RST0 bits:8 RO val:0xff mask:0xff test:0 ver:0x0
7 Reset Extender CPLD 4 RW 0x1
0 Reset
1 Not Reset
6 Reset Extender CPLD 3 RW 0x1
0 Reset
1 Not Reset
5 Reset Extender CPLD 2 RW 0x1
0 Reset
1 Not Reset
4 PCA9548_RST7 RW 0x1
0 Reset
1 Not Reset
3 PCA9548_RST6 RW 0x1
0 Reset
1 Not Reset
2 PCA9548_RST5 RW 0x1
0 Reset
1 Not Reset
1 PCA9548_RST4 RW 0x1
0 Reset
1 Not Reset
Listdevicenames output
Based from the output of
--devicenames
, you can decide if you must use the
--devname= option
in the read or write
functions. You can access
CPLD1
being at
deviceaddress 0
, using the register value for the register you want, such as:
root@dell-diag-os:~# pltool -listdevicenames
0x0 : CPLD1
0x3e : CPLD2
0x3e : CPLD3
0x3e : CPLD4
0x0 : SMF_FPGA
Read output
root@dell-diag-os:~# pltool --read --devname=CPLD4 --dev=0x3e --reg=0x2
SW_SCRATCH : offset 0x02 = 0xde
7: 0 SW_SCRATCH = de
root@dell-diag-os:~#
Write output
root@dell-diag-os:~# pltool --write
--devname=CPLD4 --dev=0x3e --reg=0x2 --val=0xff
Test output
root@dell-diag-os:~# pltool --test
Testing Programmable Devices:
PL Tool test:
CPLD1
....................
Passed
CPLD2: SW_SCRATCH
....................
Passed
CPLD3: SW_SCRATCH
....................
Passed
64
Dell DIAG-OS tools