GNU Linux-libre 4.14.266-gnu1
[releases.git] / Documentation / devicetree / bindings / i2c / i2c-mux-pca954x.txt
1 * NXP PCA954x I2C bus switch
2
3 Required Properties:
4
5   - compatible: Must contain one of the following.
6     "nxp,pca9540", "nxp,pca9542", "nxp,pca9543", "nxp,pca9544",
7     "nxp,pca9545", "nxp,pca9546", "nxp,pca9547", "nxp,pca9548"
8
9   - reg: The I2C address of the device.
10
11   The following required properties are defined externally:
12
13   - Standard I2C mux properties. See i2c-mux.txt in this directory.
14   - I2C child bus nodes. See i2c-mux.txt in this directory.
15
16 Optional Properties:
17
18   - reset-gpios: Reference to the GPIO connected to the reset input.
19   - i2c-mux-idle-disconnect: Boolean; if defined, forces mux to disconnect all
20     children in idle state. This is necessary for example, if there are several
21     multiplexers on the bus and the devices behind them use same I2C addresses.
22   - interrupt-parent: Phandle for the interrupt controller that services
23     interrupts for this device.
24   - interrupts: Interrupt mapping for IRQ.
25   - interrupt-controller: Marks the device node as an interrupt controller.
26   - #interrupt-cells : Should be two.
27     - first cell is the pin number
28     - second cell is used to specify flags.
29     See also Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
30
31 Example:
32
33         i2c-switch@74 {
34                 compatible = "nxp,pca9548";
35                 #address-cells = <1>;
36                 #size-cells = <0>;
37                 reg = <0x74>;
38
39                 interrupt-parent = <&ipic>;
40                 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
41                 interrupt-controller;
42                 #interrupt-cells = <2>;
43
44                 i2c@2 {
45                         #address-cells = <1>;
46                         #size-cells = <0>;
47                         reg = <2>;
48
49                         eeprom@54 {
50                                 compatible = "at,24c08";
51                                 reg = <0x54>;
52                         };
53                 };
54
55                 i2c@4 {
56                         #address-cells = <1>;
57                         #size-cells = <0>;
58                         reg = <4>;
59
60                         rtc@51 {
61                                 compatible = "nxp,pcf8563";
62                                 reg = <0x51>;
63                         };
64                 };
65         };