Thread (19 messages) 19 messages, 3 authors, 2026-01-16
STALE187d

[PATCH v3 3/4] dt-bindings: mux: gpio-mux: add adi,adg2404 support

From: Antoniu Miclaus <antoniu.miclaus@analog.com>
Date: 2026-01-15 12:33:46
Also in: lkml
Subsystem: multiplexer subsystem, open firmware and flattened device tree bindings, the rest · Maintainers: Peter Rosin, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

Add adi,adg2404 as a compatible string. The ADG2404 is a 4:1 analog
multiplexer that uses the enable-gpios feature.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
changes in v3:
 * integrate with gpio-mux bindings instead of separate adi,adg2404.yaml
---
 .../devicetree/bindings/mux/gpio-mux.yaml     | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/mux/gpio-mux.yaml b/Documentation/devicetree/bindings/mux/gpio-mux.yaml
index 199792d42323..f5866b9f46dd 100644
--- a/Documentation/devicetree/bindings/mux/gpio-mux.yaml
+++ b/Documentation/devicetree/bindings/mux/gpio-mux.yaml
@@ -19,7 +19,9 @@ description: |+
 
 properties:
   compatible:
-    const: gpio-mux
+    enum:
+      - gpio-mux
+      - adi,adg2404
 
   mux-gpios:
     description:
@@ -107,4 +109,19 @@ examples:
             };
         };
     };
+
+  - |
+    /* ADG2404 4:1 multiplexer with enable GPIO */
+    #include <dt-bindings/gpio/gpio.h>
+
+    mux-controller {
+        compatible = "adi,adg2404";
+        #mux-control-cells = <0>;
+
+        mux-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>,
+                    <&gpio 2 GPIO_ACTIVE_HIGH>;
+        enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
+
+        idle-state = <0>; /* Select channel S1 when idle */
+    };
 ...
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help