xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/i2c/i2c-mux-ltc4306.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Linear Technology / Analog Devices I2C bus switch
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired Properties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun  - compatible: Must contain one of the following.
6*4882a593Smuzhiyun    "lltc,ltc4305", "lltc,ltc4306"
7*4882a593Smuzhiyun  - reg: The I2C address of the device.
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun  The following required properties are defined externally:
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun  - Standard I2C mux properties. See i2c-mux.txt in this directory.
12*4882a593Smuzhiyun  - I2C child bus nodes. See i2c-mux.txt in this directory.
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunOptional Properties:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun  - enable-gpios: Reference to the GPIO connected to the enable input.
17*4882a593Smuzhiyun  - i2c-mux-idle-disconnect: Boolean; if defined, forces mux to disconnect all
18*4882a593Smuzhiyun    children in idle state. This is necessary for example, if there are several
19*4882a593Smuzhiyun    multiplexers on the bus and the devices behind them use same I2C addresses.
20*4882a593Smuzhiyun  - gpio-controller: Marks the device node as a GPIO Controller.
21*4882a593Smuzhiyun  - #gpio-cells: Should be two.  The first cell is the pin number and
22*4882a593Smuzhiyun	the second cell is used to specify flags.
23*4882a593Smuzhiyun	See ../gpio/gpio.txt for more information.
24*4882a593Smuzhiyun  - ltc,downstream-accelerators-enable: Enables the rise time accelerators
25*4882a593Smuzhiyun	on the downstream port.
26*4882a593Smuzhiyun  - ltc,upstream-accelerators-enable: Enables the rise time accelerators
27*4882a593Smuzhiyun	on the upstream port.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	ltc4306: i2c-mux@4a {
32*4882a593Smuzhiyun		compatible = "lltc,ltc4306";
33*4882a593Smuzhiyun		#address-cells = <1>;
34*4882a593Smuzhiyun		#size-cells = <0>;
35*4882a593Smuzhiyun		reg = <0x4a>;
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun		gpio-controller;
38*4882a593Smuzhiyun		#gpio-cells = <2>;
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun		i2c@0 {
41*4882a593Smuzhiyun			#address-cells = <1>;
42*4882a593Smuzhiyun			#size-cells = <0>;
43*4882a593Smuzhiyun			reg = <0>;
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun			eeprom@50 {
46*4882a593Smuzhiyun				compatible = "atmel,24c02";
47*4882a593Smuzhiyun				reg = <0x50>;
48*4882a593Smuzhiyun			};
49*4882a593Smuzhiyun		};
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun		i2c@1 {
52*4882a593Smuzhiyun			#address-cells = <1>;
53*4882a593Smuzhiyun			#size-cells = <0>;
54*4882a593Smuzhiyun			reg = <1>;
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun			eeprom@50 {
57*4882a593Smuzhiyun				compatible = "atmel,24c02";
58*4882a593Smuzhiyun				reg = <0x50>;
59*4882a593Smuzhiyun			};
60*4882a593Smuzhiyun		};
61*4882a593Smuzhiyun	};
62