[PATCH 1/2] dt-bindings: mux: adg2404: add support

Antoniu Miclaus posted 2 patches 1 month, 3 weeks ago
There is a newer version of this series
[PATCH 1/2] dt-bindings: mux: adg2404: add support
Posted by Antoniu Miclaus 1 month, 3 weeks ago
Add dt bindings for adg2404.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.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@analog.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
Re: [PATCH 1/2] dt-bindings: mux: adg2404: add support
Posted by Krzysztof Kozlowski 1 month, 3 weeks ago
On Fri, Dec 19, 2025 at 04:31:44PM +0200, Antoniu Miclaus wrote:
> Add dt bindings for adg2404.
> 
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.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@analog.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#

Same comments as for your other patch.


Best regards,
Krzysztof