Reference Guide

To Scan the (Specific) I2C devices:=
i2ctool --scan [--bus=/dev/i2c-
<bus_number>]
(or)
i2ctool -n [-b /dev/i2c-<bus_number>]
To Test the pre-programmed configuration or from config file:=
i2ctool --test [--
config=<config_file_name>]
(or)
i2ctool -t [-f <config_file_name>]
Execute repeatedly command by count:=
i2ctool --iteration=max/<count> [option1]
[option2]...
(or)
i2ctool -I max/<count> [option1] [option2]...
Read:=
i2ctool --read --bus=/dev/i2c-<bus_number> --addr=<address> --reg=<register> --
count=<count> --width=<width> --display_size=<display_size> (or)
i2ctool -r -b /dev/i2c-<bus_number> -a <address> -R <register> -C <count> -W <width> -
D <display_size>
Read(16 bit addressing):=
i2ctool --read --bus=/dev/i2c-<bus_number> --addr=<address> --reg16=<register(16bit)>
[--reg_le] --count=<count> --width=<width> --display_size=<display_size> (or)
i2ctool -r -b /dev/i2c-<bus_number> -a <address> -o <register(16bit)> [-L] -C <count>
-W <width> -D <display_size>
Write:=
i2ctool --write --bus=/dev/i2c-<bus_number> --addr=<address> --reg=<regiser> --
width=<width> --val=<value> (or)
i2ctool -w -b /dev/i2c-<bus_number> -a <address> -R <register> -W <width> -V <value>
Write(16 bit addressing):=
i2ctool --write --bus=/dev/i2c-<bus_number> --addr=<address> --
reg16=<register(16bit)> [--reg_le] --val=<value>
(or)
i2ctool -w -b /dev/i2c-<bus_number> -a <address> -o <register(16bit)> [-L] -V <value>
Usage:
-h, --h Show the help text
-n, --scan Scan operation
-t, --test Test using the pre-programmed configuration or use supplied config
-r, --read Read operation
-w, --write Write operation
-f, --config= To specify the location of the config file e.g. /etc/dn/diag/
<file_name>
-C, --count= Count
-R, --reg= Register
-o, --reg16= Register(16 bit addressing)
-V, --val= Value to be set
-W, --width= Width {8,16}
-b, --buspath= To specify the i2c bus e.g.: /dev/i2c-<bus number>
-a, --addr= Address
-D, --display_size= Display size, {1,2,4} of bytesDisplay size, {1,2,4} of bytes
-I, --iteration= Iteration command execution
Output
NOTE:
The i2ctool does not automatically scan multiple MUXed segments. Before scanning, you MUST set the MUXes
to select the devices you want to see on the busses. By default, the i2ctool scans the i2c devices from the root MUX
where it sees the list of devices directly connected to the CPU MUX. The default scan function scans all connected
busses. By specifying a bus, you can limit the scan to one bus. In the scan data, RR indicates a reserved address which is
not used for any devices and UU indicates that the device is busy or mapped to the OS.
scan Output
root@dell-diag-os:/etc/dn/diag# i2ctool --scan
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: RR RR RR RR RR RR RR RR -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- 18 -- 1a -- -- -- -- --
30
Dell EMC DIAG OS tools