From: Antoniu Miclaus <antoniu.miclaus@analog.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, <linux-gpio@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: Antoniu Miclaus <antoniu.miclaus@analog.com>
Subject: [PATCH 1/2] dt-bindings: gpio: adg1712: add adg1712 support
Date: Fri, 31 Oct 2025 16:07:04 +0000 [thread overview]
Message-ID: <20251031160710.13343-2-antoniu.miclaus@analog.com> (raw)
In-Reply-To: <20251031160710.13343-1-antoniu.miclaus@analog.com>
Add devicetree bindings for adg1712 SPST quad switch.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
.../devicetree/bindings/gpio/adi,adg1712.yaml | 75 +++++++++++++++++++
1 file changed, 75 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/adi,adg1712.yaml
diff --git a/Documentation/devicetree/bindings/gpio/adi,adg1712.yaml b/Documentation/devicetree/bindings/gpio/adi,adg1712.yaml
new file mode 100644
index 000000000000..2c26d2a7def8
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/adi,adg1712.yaml
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/gpio/adi,adg1712.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADG1712 quad SPST switch GPIO controller
+
+maintainers:
+ - Antoniu Miclaus <antoniu.miclaus@analog.com>
+
+description: |
+ Bindings for Analog Devices ADG1712 quad single-pole, single-throw (SPST)
+ switch controlled by GPIOs. The device features four independent switches,
+ each controlled by a dedicated GPIO input pin.
+
+ Each GPIO line exposed by this controller corresponds to one of the four
+ switches (SW1-SW4) on the ADG1712. Setting a GPIO line high enables the
+ corresponding switch, while setting it low disables the switch.
+
+properties:
+ compatible:
+ const: adi,adg1712
+
+ switch1-gpios:
+ description: GPIO connected to the IN1 control pin (controls SW1)
+ maxItems: 1
+
+ switch2-gpios:
+ description: GPIO connected to the IN2 control pin (controls SW2)
+ maxItems: 1
+
+ switch3-gpios:
+ description: GPIO connected to the IN3 control pin (controls SW3)
+ maxItems: 1
+
+ switch4-gpios:
+ description: GPIO connected to the IN4 control pin (controls SW4)
+ maxItems: 1
+
+ gpio-controller: true
+
+ "#gpio-cells":
+ const: 2
+ description: |
+ The first cell is the GPIO number (0-3 corresponding to SW1-SW4).
+ The second cell specifies GPIO flags.
+
+required:
+ - compatible
+ - switch1-gpios
+ - switch2-gpios
+ - switch3-gpios
+ - switch4-gpios
+ - gpio-controller
+ - "#gpio-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ adg1712: gpio-expander {
+ compatible = "adi,adg1712";
+ gpio-controller;
+ #gpio-cells = <2>;
+
+ switch1-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
+ switch2-gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
+ switch3-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
+ switch4-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
+ };
+
+...
\ No newline at end of file
--
2.43.0
next prev parent reply other threads:[~2025-10-31 16:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-31 16:07 [PATCH 0/2] gpio: Add support for ADG1712 quad SPST switch Antoniu Miclaus
2025-10-31 16:07 ` Antoniu Miclaus [this message]
2025-10-31 17:38 ` [PATCH 1/2] dt-bindings: gpio: adg1712: add adg1712 support Rob Herring (Arm)
2025-11-10 10:27 ` Linus Walleij
2025-10-31 16:07 ` [PATCH 2/2] gpio: adg1712: add driver support Antoniu Miclaus
2025-11-03 11:18 ` Nuno Sá
2025-11-10 10:30 ` Linus Walleij
2025-11-10 12:32 ` Nuno Sá
2025-11-11 11:05 ` Linus Walleij
2025-11-11 16:01 ` Nuno Sá
2025-11-18 22:54 ` Linus Walleij
2025-11-19 9:38 ` Nuno Sá
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251031160710.13343-2-antoniu.miclaus@analog.com \
--to=antoniu.miclaus@analog.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®