U-boot deployment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual
Page 57
U-boot Deployment
COMX-P2020 BSP User Guide (6806800L84B)
57
i2cswitch show - Show I2C Bus that connected to I2C Switch
Connect I2C Bus through PCA9545
The command: "i2cswitch connect" can be used to connect the channel 0 - 3 to I2C Bus. For
example, we can connect the channel 0 to I2C Bus:
i2c dev 0
Setting bus to 0
i2c probe
Valid chip addresses: 50 70
Excluded chip addresses: 29
=> i2cswitch connect 0
=> i2c probe
Valid chip addresses: 38 50 54 70
Excluded chip addresses: 29
=>
Once the channel 0 is connected to the I2C Bus, the other I2C chips (38, 54) can be detected at
the testing bed which connect the I2C#1 through channel 0:
Show the channel connected to the I2C Bus:
The command: "i2cswitch show" can be used to show all the channels that connected to
the I2C bus.
i2cswitch connect 0
i2cswitch connect 1
i2cswitch show
Connected I2C Bus: 0 1
Disconnect channel:
i2cswitch disconnect 0
i2cswitch show
Connected I2C Bus: 1
=> i2c probe
Valid chip addresses: 50 70
Excluded chip addresses: 29
Once the channel 0 has been disconnected from the I2C bus, then the all the I2C chips at the
testing bed (38, 54) will disappear from the I2C bus.