Add device tree bindings for ADG1736, a dual SPDT switch that
functions as two independent 2:1 multiplexers. Each switch can
connect its drain terminal to one of two source terminals (A or B).
The device provides two mux controllers controlled by individual
GPIO pins, with a shared enable pin for disabling all switches.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
changes in v2:
* rename ctrl-gpios to mux-gpios
* rename en-gpios to enable-gpios
* use items format for mux-gpios description
* simplify property descriptions
---
.../devicetree/bindings/mux/adi,adg1736.yaml | 75 +++++++++++++++++++
1 file changed, 75 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mux/adi,adg1736.yaml
diff --git a/Documentation/devicetree/bindings/mux/adi,adg1736.yaml b/Documentation/devicetree/bindings/mux/adi,adg1736.yaml
new file mode 100644
index 000000000000..cef4bca3cb97
--- /dev/null
+++ b/Documentation/devicetree/bindings/mux/adi,adg1736.yaml
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mux/adi,adg1736.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADG1736 Dual SPDT Switch Multiplexer
+
+maintainers:
+ - Antoniu Miclaus <antoniu.miclaus@analog.com>
+
+description: |
+ Analog Devices ADG1736 dual single-pole, double-throw (SPDT)
+ switch. The device features two independent SPDT switches, each functioning
+ as a 2:1 multiplexer. Each switch can connect its common drain terminal (D)
+ to one of two source terminals (SA or SB).
+
+ The device has two independent mux controllers (mux 0 and mux 1), each with
+ two states:
+ * 0: SxB to Dx (control GPIO low)
+ * 1: SxA to Dx (control GPIO high)
+
+ The EN pin is shared between both switches and can disable all channels when
+ set low (inactive).
+
+allOf:
+ - $ref: mux-controller.yaml#
+
+properties:
+ compatible:
+ const: adi,adg1736
+
+ mux-gpios:
+ description:
+ GPIO pins connected to the control inputs IN1 and IN2.
+ items:
+ - description: Control GPIO for switch 1 (S1A/S1B to D1)
+ - description: Control GPIO for switch 2 (S2A/S2B to D2)
+
+ enable-gpios:
+ description:
+ GPIO connected to the EN (enable) pin. Active high.
+ maxItems: 1
+
+ '#mux-control-cells':
+ const: 1
+ description:
+ Mux controller index (0 or 1) to select which SPDT switch to control.
+
+required:
+ - compatible
+ - mux-gpios
+ - enable-gpios
+ - '#mux-control-cells'
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/mux/mux.h>
+
+ mux-controller {
+ compatible = "adi,adg1736";
+ #mux-control-cells = <1>;
+
+ mux-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>,
+ <&gpio 11 GPIO_ACTIVE_HIGH>;
+ enable-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
+
+ /* Disconnect both switches when idle */
+ idle-states = <MUX_IDLE_DISCONNECT MUX_IDLE_DISCONNECT>;
+ };
+
+...
--
2.43.0
On Mon, 05 Jan 2026 13:57:56 +0200, Antoniu Miclaus wrote: > Add device tree bindings for ADG1736, a dual SPDT switch that > functions as two independent 2:1 multiplexers. Each switch can > connect its drain terminal to one of two source terminals (A or B). > > The device provides two mux controllers controlled by individual > GPIO pins, with a shared enable pin for disabling all switches. > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> > --- > changes in v2: > * rename ctrl-gpios to mux-gpios > * rename en-gpios to enable-gpios > * use items format for mux-gpios description > * simplify property descriptions > --- > .../devicetree/bindings/mux/adi,adg1736.yaml | 75 +++++++++++++++++++ > 1 file changed, 75 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mux/adi,adg1736.yaml > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
© 2016 - 2026 Red Hat, Inc.