1 Pinctrl-based I2C Bus Mux
3 This binding describes an I2C bus multiplexer that uses pin multiplexing to
4 route the I2C signals, and represents the pin multiplexing configuration
5 using the pinctrl device tree bindings.
9 +------------------------+ +-----+ +-----+
11 | /----|------+--------+
12 | +---+ +------+ | child bus A, on first set of pins
14 | +---+ +------+ | child bus B, on second set of pins
15 | \----|------+--------+--------+
17 +------------------------+ +-----+ +-----+ +-----+
18 | dev | | dev | | dev |
19 +-----+ +-----+ +-----+
22 - compatible: i2c-mux-pinctrl
23 - i2c-parent: The phandle of the I2C bus that this multiplexer's master-side
28 * Standard pinctrl properties that specify the pin mux state for each child
29 bus. See ../pinctrl/pinctrl-bindings.txt.
31 * Standard I2C mux properties. See mux.txt in this directory.
33 * I2C child bus nodes. See mux.txt in this directory.
35 For each named state defined in the pinctrl-names property, an I2C child bus
36 will be created. I2C child bus numbers are assigned based on the index into
37 the pinctrl-names property.
39 The only exception is that no bus will be created for a state named "idle". If
40 such a state is defined, it must be the last entry in pinctrl-names. For
43 pinctrl-names = "ddc", "pta", "idle" -> ddc = bus 0, pta = bus 1
44 pinctrl-names = "ddc", "idle", "pta" -> Invalid ("idle" not last)
45 pinctrl-names = "idle", "ddc", "pta" -> Invalid ("idle" not last)
47 Whenever an access is made to a device on a child bus, the relevant pinctrl
48 state will be programmed into hardware.
50 If an idle state is defined, whenever an access is not being made to a device
51 on a child bus, the idle pinctrl state will be programmed into hardware.
53 If an idle state is not defined, the most recently used pinctrl state will be
54 left programmed into hardware whenever no access is being made of a device on
60 compatible = "i2c-mux-pinctrl";
66 pinctrl-names = "ddc", "pta", "idle";
67 pinctrl-0 = <&state_i2cmux_ddc>;
68 pinctrl-1 = <&state_i2cmux_pta>;
69 pinctrl-2 = <&state_i2cmux_idle>;
77 compatible = "eeprom";
88 compatible = "eeprom";