Lines Matching +full:mux +full:- +full:controls

1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/i2c/i2c-mux-gpmux.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: General Purpose I2C Bus Mux
10 - Peter Rosin <peda@axentia.se>
13 This binding describes an I2C bus multiplexer that uses a mux controller
14 from the mux subsystem to route the I2C signals.
16 .-----. .-----.
18 .------------. '-----' '-----'
20 | | .--------+--------'
21 | .------. | .------+ child bus A, on MUX value set to 0
22 | | I2C |-|--| Mux |
23 | '------' | '--+---+ child bus B, on MUX value set to 1
24 | .------. | | '----------+--------+--------.
25 | | MUX- | | | | | |
26 | | Ctrl |-|-----+ .-----. .-----. .-----.
27 | '------' | | dev | | dev | | dev |
28 '------------' '-----' '-----' '-----'
32 - $ref: /schemas/i2c/i2c-mux.yaml#
36 const: i2c-mux
38 i2c-parent:
41 The phandle of the I2C bus that this multiplexer's master-side port is
44 mux-controls:
47 The mux-controller states are the I2C sub-bus numbers.
49 mux-locked:
54 - during setup of the multiplexer
55 - between setup of the multiplexer and the child bus I2C transaction
56 - between the child bus I2C transaction and releasing of the multiplexer
57 - during releasing of the multiplexer
63 If mux-locked is not present, the multiplexer is assumed to be parent-locked.
66 The properties of mux-locked and parent-locked multiplexers are discussed
67 in more detail in Documentation/i2c/i2c-topology.rst.
70 - compatible
71 - i2c-parent
72 - mux-controls
77 - |
78 #include <dt-bindings/gpio/gpio.h>
79 mux: mux-controller {
80 compatible = "gpio-mux";
81 #mux-control-cells = <0>;
83 mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
87 i2c-mux {
88 compatible = "i2c-mux";
89 mux-locked;
90 i2c-parent = <&i2c1>;
92 mux-controls = <&mux>;
94 #address-cells = <1>;
95 #size-cells = <0>;
99 #address-cells = <1>;
100 #size-cells = <0>;
104 gpio-controller;
105 #gpio-cells = <2>;
112 #address-cells = <1>;
113 #size-cells = <0>;
117 gpio-controller;
118 #gpio-cells = <2>;