[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251219143244.21674-2-antoniu.miclaus@analog.com>
Date: Fri, 19 Dec 2025 16:31:44 +0200
From: Antoniu Miclaus <antoniu.miclaus@...log.com>
To: Peter Rosin <peda@...ntia.se>, Rob Herring <robh@...nel.org>,
"Krzysztof
Kozlowski" <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
"Antoniu
Miclaus" <antoniu.miclaus@...log.com>,
Arnd Bergmann <arnd@...db.de>,
"Greg
Kroah-Hartman" <gregkh@...uxfoundation.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH 1/2] dt-bindings: mux: adg2404: add support
Add dt bindings for adg2404.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@...log.com>
---
.../devicetree/bindings/mux/adi,adg2404.yaml | 66 +++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mux/adi,adg2404.yaml
diff --git a/Documentation/devicetree/bindings/mux/adi,adg2404.yaml b/Documentation/devicetree/bindings/mux/adi,adg2404.yaml
new file mode 100644
index 000000000000..f28e66f7a250
--- /dev/null
+++ b/Documentation/devicetree/bindings/mux/adi,adg2404.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mux/adi,adg2404.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADG2404 4:1 multiplexer
+
+maintainers:
+ - Antoniu Miclaus <antoniu.miclaus@...log.com>
+
+description: |
+ Bindings for Analog Devices ADG2404 4:1 single-ended analog multiplexer
+
+ The multiplexer state corresponds to the selected input channel:
+ * 0: Channel S1 selected
+ * 1: Channel S2 selected
+ * 2: Channel S3 selected
+ * 3: Channel S4 selected
+
+allOf:
+ - $ref: mux-controller.yaml#
+
+properties:
+ compatible:
+ const: adi,adg2404
+
+ addr-gpios:
+ description: |
+ GPIO pins connected to the address inputs, with index 0 being A0 and
+ index 1 being A1. The address pins are set simultaneously to avoid
+ glitches during channel transitions.
+ minItems: 2
+ maxItems: 2
+
+ en-gpios:
+ description: GPIO connected to the EN (enable) pin
+ maxItems: 1
+
+ '#mux-control-cells':
+ const: 0
+
+required:
+ - compatible
+ - addr-gpios
+ - en-gpios
+ - '#mux-control-cells'
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ mux-controller {
+ compatible = "adi,adg2404";
+ #mux-control-cells = <0>;
+
+ addr-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>,
+ <&gpio 2 GPIO_ACTIVE_HIGH>;
+ en-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
+
+ idle-state = <0>; /* Select channel S1 when idle */
+ };
+
+...
--
2.43.0
Powered by blists - more mailing lists