mux-controller.yaml (5d8dfaa71d87f742c53309b95cb6a8b274119027) mux-controller.yaml (8f2cade5da97713e77ca5be576438f194b8873d7)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mux/mux-controller.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Common multiplexer controller provider bindings
8

--- 11 unchanged lines hidden (view full) ---

20 space is a simple zero-based enumeration. I.e. 0-1 for a 2-way multiplexer,
21 0-7 for an 8-way multiplexer, etc.
22
23
24 Mux controller nodes
25 --------------------
26
27 Mux controller nodes must specify the number of cells used for the
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mux/mux-controller.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Common multiplexer controller provider bindings
8

--- 11 unchanged lines hidden (view full) ---

20 space is a simple zero-based enumeration. I.e. 0-1 for a 2-way multiplexer,
21 0-7 for an 8-way multiplexer, etc.
22
23
24 Mux controller nodes
25 --------------------
26
27 Mux controller nodes must specify the number of cells used for the
28 specifier using the '#mux-control-cells' property.
28 specifier using the '#mux-control-cells' or '#mux-state-cells' property.
29 The value of '#mux-state-cells' will always be one greater than the value
30 of '#mux-control-cells'.
29
30 Optionally, mux controller nodes can also specify the state the mux should
31 have when it is idle. The idle-state property is used for this. If the
32 idle-state is not present, the mux controller is typically left as is when
33 it is idle. For multiplexer chips that expose several mux controllers, the
34 idle-state property is an array with one idle state for each mux controller.
35
36 The special value (-1) may be used to indicate that the mux should be left

--- 25 unchanged lines hidden (view full) ---

62
63select:
64 anyOf:
65 - properties:
66 $nodename:
67 pattern: '^mux-controller'
68 - required:
69 - '#mux-control-cells'
31
32 Optionally, mux controller nodes can also specify the state the mux should
33 have when it is idle. The idle-state property is used for this. If the
34 idle-state is not present, the mux controller is typically left as is when
35 it is idle. For multiplexer chips that expose several mux controllers, the
36 idle-state property is an array with one idle state for each mux controller.
37
38 The special value (-1) may be used to indicate that the mux should be left

--- 25 unchanged lines hidden (view full) ---

64
65select:
66 anyOf:
67 - properties:
68 $nodename:
69 pattern: '^mux-controller'
70 - required:
71 - '#mux-control-cells'
72 - required:
73 - '#mux-state-cells'
70
71properties:
72 $nodename:
73 pattern: '^mux-controller(@.*|-[0-9a-f]+)?$'
74
75 '#mux-control-cells':
76 enum: [ 0, 1 ]
77
74
75properties:
76 $nodename:
77 pattern: '^mux-controller(@.*|-[0-9a-f]+)?$'
78
79 '#mux-control-cells':
80 enum: [ 0, 1 ]
81
82 '#mux-state-cells':
83 enum: [ 1, 2 ]
84
78 idle-state:
79 $ref: /schemas/types.yaml#/definitions/int32
80 minimum: -2
81
82 idle-states:
83 description: |
84 Mux controller nodes can specify the state the mux should have when it is
85 idle. If the idle-state is not present, the mux controller is typically

--- 88 unchanged lines hidden (view full) ---

174 #address-cells = <1>;
175 #size-cells = <0>;
176
177 pca9555: pca9555@20 {
178 reg = <0x20>;
179 };
180 };
181 };
85 idle-state:
86 $ref: /schemas/types.yaml#/definitions/int32
87 minimum: -2
88
89 idle-states:
90 description: |
91 Mux controller nodes can specify the state the mux should have when it is
92 idle. If the idle-state is not present, the mux controller is typically

--- 88 unchanged lines hidden (view full) ---

181 #address-cells = <1>;
182 #size-cells = <0>;
183
184 pca9555: pca9555@20 {
185 reg = <0x20>;
186 };
187 };
188 };
189
190 - |
191 #include <dt-bindings/gpio/gpio.h>
192
193 mux1: mux-controller {
194 compatible = "gpio-mux";
195 #mux-state-cells = <1>;
196 mux-gpios = <&exp_som 2 GPIO_ACTIVE_HIGH>;
197 };
198
199 transceiver4: can-phy4 {
200 compatible = "ti,tcan1042";
201 #phy-cells = <0>;
202 max-bitrate = <5000000>;
203 standby-gpios = <&exp_som 7 GPIO_ACTIVE_HIGH>;
204 mux-states = <&mux1 1>;
205 };
182...
206...