Page 32
6. To see the capabilities of the pmic_prog utility, access the help menu
# ./pmic_prog -help
Version: 1.0
Usage: pmic_prog [-h] COMMANDS
-h = display this help and exit
COMMANDS:
detect I2C_BUS to detect all the PMICs on an i2c bus
with:
I2C_BUS the i2c bus number (decimal: 0-255)
Example:
" pmic_prog detect 6 " to detect all the PMICs on an i2c bus 6
read I2C_BUS CHIP_ADDR REG_ADDR to read a byte at a specific address
with:
I2C_BUS the i2c bus number (decimal: 0-255)
CHIP_ADDR the chip address (hex: 0x00 - 0xFF)
REG_ADDR the address of the register to read (hex: 0x0000 - 0xFFFF)
Example:
" pmic_prog read 6 0x13 0x069e " to read the byte at address 0x069e (loop A ot_fault_limit for
IRPS5401) of chip 0x13 on i2c bus 6
write I2C_BUS CHIP_ADDR REG_ADDR VALUE to write a byte at a specific address
with:
I2C_BUS the i2c bus number (decimal: 0-255)
CHIP_ADDR the chip address (hex: 0x00 - 0xFF)
REG_ADDR the address of the register to write (hex: 0x0000 - 0xFFFF)
VALUE the byte to write (hex: 0x00 - 0xFF)
Example:
" pmic_prog write 6 0x13 0x069e 0x7F " to write 0x7F at address 0x069e (loop A ot_fault_limit
for IRPS5401) of chip 0x13 on i2c bus 6
read-registers I2C_BUS CHIP_ADDR [-o OUTPUT_FILE] [-i INPUT_FILE] to read all the registers
with:
I2C_BUS the i2c bus number (decimal: 0-255)
CHIP_ADDR the chip address (hex: 0x00 - 0xFF)
-o OUTPUT_FILE: Save the register values in the 'OUTPUT_FILE' file (optional)
-i INPUT_FILE: Check the register values from the given 'INPUT_FILE' file, and check the
differences (optional)
Example:
" pmic_prog read-registers 6 0x13 -o new_file.txt -i 0x13_Oct_01.txt " to save the register
values in the file 'new_file.txt' and check the differences with those in
'0x13_Oct_01.txt'.
program I2C_BUS CHIP_ADDR [-d] [-i INPUT_FILE] to write the registers and program the PMIC on the
first available USER slot
with:
I2C_BUS the i2c bus number (decimal: 0-255)
CHIP_ADDR the chip address (hex: 0x00 - 0xFF)
-d: dry-run The command will only check the number of USER slots available and write registers
if input file given (optional)
-i INPUT_FILE: write the registers from this config file (optional)
Example:
" pmic_prog program 6 0x13 -i 0x13_Oct_01.txt " to program the PMIC with register values from
'0x13_Oct_01.txt'.
Summary of Contents for AES-ULTRA96-V2-G
Page 10: ...Page 10 Figure 2 Ultra96 V2 Block Diagram ...
Page 26: ...Page 26 Figure 23 Connected to Ultra96 V2 Via External Wi Fi ...
Page 29: ...Page 29 Figure 28 Telemetry from PMIC 0x13 43 Figure 29 Telemetry from MPSoC Sysmon ...
Page 42: ...Page 42 7 Create or select your Host ID Click Next Figure 41 Select Host Information ...