1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/mux/reg-mux.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic register bitfield-based multiplexer controller bindings
10 - Peter Rosin <peda@axentia.se>
13 Define register bitfields to be used to control multiplexers. The parent
14 device tree node must be a device node to provide register r/w access.
19 - reg-mux # parent device of mux controller is not syscon device
20 - mmio-mux # parent device of mux controller is syscon device
28 description: an array of register offset and pre-shifted bitfield mask
29 pairs, each describing a single mux control.
36 - '#mux-control-cells'
38 additionalProperties: false
42 /* The parent device of mux controller is not a syscon device. */
44 #include <dt-bindings/mux/mux.h>
47 compatible = "reg-mux";
48 #mux-control-cells = <1>;
50 <0x54 0xf8>, /* 0: reg 0x54, bits 7:3 */
51 <0x54 0x07>; /* 1: reg 0x54, bits 2:0 */
55 compatible = "mdio-mux-multiplexer";
56 mux-controls = <&mux1 0>;
57 mdio-parent-bus = <&emdio1>;
75 compatible = "mdio-mux-multiplexer";
76 mux-controls = <&mux1 1>;
77 mdio-parent-bus = <&emdio2>;
95 /* The parent device of mux controller is syscon device. */
97 #include <dt-bindings/mux/mux.h>
99 compatible = "fsl,imx7d-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon", "simple-mfd";
100 reg = <0x1000 0x100>;
102 mux2: mux-controller {
103 compatible = "mmio-mux";
104 #mux-control-cells = <1>;
107 <0x3 0x30>, /* 0: reg 0x3, bits 5:4 */
108 <0x3 0x40>; /* 1: reg 0x3, bit 6 */
109 idle-states = <MUX_IDLE_AS_IS>, <0>;
114 compatible = "video-mux";
115 mux-controls = <&mux2 0>;
116 #address-cells = <1>;
120 #address-cells = <1>;