TPS389006-Q1 EVM 无法读取 VMON
设置:VMON2=0.8V、VMON4=1.0V;SCL/SDA 被连接至一个 i2c 主器件、使用 i2cget 来读取 reg、使用 i2cset 来写入 reg。
测试:
------------
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x00
0x18
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x01
0x02
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x02
0x02
root@localhost:/sys/switch i2cget -f -y 6 0x30 0xf0
0x00
root@localhost:/sys/switch i2cset -f -y 6 0x30 0xf0 0xd601 w (__LW_AT__选择bank1)
root@localhost:/sys/switch i2cget -f -y 6 0x30 0xf0
0x01
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x11
0x0F
root@localhost:/sys/switchchi2cset -f -y 6 0x30 0x11 0x8700 w (__LW_AT__disable FEC)
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x11
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x12 (__LW_AT__test_cfg)
0x03
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x1c
0x01
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x1E (__LW_AT__VIN_CH_EN)
0x3F
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x1f
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0xf0
0x01
root@localhost:/sys/switch i2cset -f -y 6 0x30 0xf0 0x0 (__LW_AT__选择bank0)
root@localhost:/sys/switch i2cget -f -y 6 0x30 0xf0
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x10
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x11 (__LW_AT__bank0、0x10、INT_MONITOR=0)
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x23 (__LW_AT__bank0、0x23、INT_TEST=0)
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x30 (__LW_AT__bank0、0x30、VMON_STAT=0x7E)
0x7E
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x31
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x32 (OFF_STAT,MON2/4通道未关闭)
0x35
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x40
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x41
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x42
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x43
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x44
0x00
root@localhost:/sys/switch i2cget -f -y 6 0x30 0x45
0x00
