1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/mux/gpio-mux.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO-based multiplexer controller bindings
10 - Peter Rosin <peda@axentia.se>
13 Define what GPIO pins are used to control a multiplexer. Or several
14 multiplexers, if the same pins control more than one multiplexer.
16 The multiplexer state is defined as the number represented by the
17 multiplexer GPIO pins, where the first pin is the least significant
18 bit. An active pin is a binary 1, an inactive pin is a binary 0.
26 List of gpios used to control the multiplexer, least significant bit first.
42 - "#mux-control-cells"
46 additionalProperties: false
50 #include <dt-bindings/gpio/gpio.h>
53 compatible = "gpio-mux";
54 #mux-control-cells = <0>;
56 mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
57 <&pioA 1 GPIO_ACTIVE_HIGH>;
61 compatible = "io-channel-mux";
62 io-channels = <&adc 0>;
63 io-channel-names = "parent";
65 mux-controls = <&mux>;
67 channels = "sync-1", "in", "out", "sync-2";
71 compatible = "i2c-mux";
74 mux-controls = <&mux>;