Difference between revisions of "How to Use I2c Hub"

From ESS-WIKI
Jump to: navigation, search
(Created page with "= Overview = ROM-5780 supports ONE I2C hub.The I2C7 of it is converted to a 4-way I2C9 to I2C12 via TPA9545. It's a quad bidirectional switch controlled v...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Overview =
 
= Overview =
  
ROM-5780 supports ONE I2C hub.The I2C7 of it is converted to a 4-way I2C9 to I2C12 via TPA9545. It's a quad bidirectional switch controlled via the I2C bus, the SCL/SDA upstream pair fans out to four downstream pairs, or channels. It should be noted that the address of the connected I2C device cannot be 0x73, because the address of TPA9545 is already 0x73. If the address is the same, there will be a conflict and the data cannot be transferred.
+
ROM-5780 supports one I2C hub.The I2C7 of ROM 5780 is converted to a 4-way I2C9 to I2C12 via TPA9545. It’s a quad bidirectional switch controlled via the I2C bus, the SCL/SDA upstream pair fans out to four downstream pairs, or channels. It should be noted that the devices connected on the I2C hub cannot be 0x73, because the address of i2c hub TPA9545 is already 0x73. If the address is the same, there will be a conflict and the data cannot be transferred.
  
 
= Lists the bus of the I2C Hub =
 
= Lists the bus of the I2C Hub =
  
I2c9-i2c12 is routed from the i2c7 of ROM-5780 through the hub.
+
I2c-9 to I2c-12 is routed from the i2c7 of ROM-5780 through the hub.
 
<pre>root@linaro-alip:~# i2cdetect -l
 
<pre>root@linaro-alip:~# i2cdetect -l
i2c-0  i2c            rk3x-i2c                                I2C adapter
 
i2c-1  i2c            rk3x-i2c                                I2C adapter
 
i2c-2  i2c            rk3x-i2c                                I2C adapter
 
i2c-4  i2c            rk3x-i2c                                I2C adapter
 
 
i2c-7  i2c            rk3x-i2c                                I2C adapter
 
i2c-7  i2c            rk3x-i2c                                I2C adapter
 
i2c-9  i2c            i2c-7-mux (chan_id 0)                  I2C adapter
 
i2c-9  i2c            i2c-7-mux (chan_id 0)                  I2C adapter
 
i2c-10  i2c            i2c-7-mux (chan_id 1)                  I2C adapter
 
i2c-10  i2c            i2c-7-mux (chan_id 1)                  I2C adapter
 
i2c-11  i2c            i2c-7-mux (chan_id 2)                  I2C adapter
 
i2c-11  i2c            i2c-7-mux (chan_id 2)                  I2C adapter
i2c-12  i2c            i2c-7-mux (chan_id 3)                  I2C adapter
+
i2c-12  i2c            i2c-7-mux (chan_id 3)                  I2C adapter</pre>
</pre>
 
  
 
= Detect device address =
 
= Detect device address =
  
 
For example I2C9
 
For example I2C9
<pre>root@linaro-alip:~# i2cdetect -y 9</pre>
+
<pre>root@linaro-alip:~# i2cdetect -y 9
 +
</pre>
 +
 
 +
Note: The device address connected on the hub cannot be 0x73.

Latest revision as of 10:01, 30 September 2020

Overview

ROM-5780 supports one I2C hub.The I2C7 of ROM 5780 is converted to a 4-way I2C9 to I2C12 via TPA9545. It’s a quad bidirectional switch controlled via the I2C bus, the SCL/SDA upstream pair fans out to four downstream pairs, or channels. It should be noted that the devices connected on the I2C hub cannot be 0x73, because the address of i2c hub TPA9545 is already 0x73. If the address is the same, there will be a conflict and the data cannot be transferred.

Lists the bus of the I2C Hub

I2c-9 to I2c-12 is routed from the i2c7 of ROM-5780 through the hub.

root@linaro-alip:~# i2cdetect -l
i2c-7   i2c             rk3x-i2c                                I2C adapter
i2c-9   i2c             i2c-7-mux (chan_id 0)                   I2C adapter
i2c-10  i2c             i2c-7-mux (chan_id 1)                   I2C adapter
i2c-11  i2c             i2c-7-mux (chan_id 2)                   I2C adapter
i2c-12  i2c             i2c-7-mux (chan_id 3)                   I2C adapter

Detect device address

For example I2C9

root@linaro-alip:~# i2cdetect -y 9

Note: The device address connected on the hub cannot be 0x73.