* [PATCH v2 0/2] gpio: Add support for ADG1712 quad SPST switch
@ 2025-11-08 17:40 Antoniu Miclaus
2025-11-08 17:40 ` [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support Antoniu Miclaus
2025-11-08 17:40 ` [PATCH v2 2/2] gpio: adg1712: add driver support Antoniu Miclaus
0 siblings, 2 replies; 6+ messages in thread
From: Antoniu Miclaus @ 2025-11-08 17:40 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio, devicetree,
linux-kernel
Cc: Antoniu Miclaus
This patch series adds support for the Analog Devices ADG1712 quad
single-pole/single-throw (SPST) switch GPIO driver.
The ADG1712 contains four independent SPST switches and operates with a
low-voltage single supply range from +1.08V to +5.5V or a low-voltage
dual supply range from ±1.08V to ±2.75V. Each switch is controlled by
a dedicated GPIO input pin.
The driver provides a GPIO controller interface where each GPIO line
controls one of the four independent analog switches on the ADG1712.
This allows software to dynamically control signal routing through
the analog switches.
Patch 1 adds the device tree bindings documentation.
Patch 2 adds the GPIO driver implementation.
Antoniu Miclaus (2):
dt-bindings: gpio: adg1712: add adg1712 support
gpio: adg1712: add driver support
.../devicetree/bindings/gpio/adi,adg1712.yaml | 65 ++++++++++
drivers/gpio/Kconfig | 9 ++
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-adg1712.c | 119 ++++++++++++++++++
4 files changed, 194 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/adi,adg1712.yaml
create mode 100644 drivers/gpio/gpio-adg1712.c
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support
2025-11-08 17:40 [PATCH v2 0/2] gpio: Add support for ADG1712 quad SPST switch Antoniu Miclaus
@ 2025-11-08 17:40 ` Antoniu Miclaus
2025-11-10 19:16 ` Conor Dooley
` (2 more replies)
2025-11-08 17:40 ` [PATCH v2 2/2] gpio: adg1712: add driver support Antoniu Miclaus
1 sibling, 3 replies; 6+ messages in thread
From: Antoniu Miclaus @ 2025-11-08 17:40 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio, devicetree,
linux-kernel
Cc: Antoniu Miclaus
Add devicetree bindings for adg1712 SPST quad switch.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
Changes in v2:
- Replace individual GPIO properties (switch1-gpios, switch2-gpios, etc.)
with a single GPIO array property (switch-gpios)
- Update required properties list accordingly
- Simplify device tree example to use array notation
---
.../devicetree/bindings/gpio/adi,adg1712.yaml | 65 +++++++++++++++++++
1 file changed, 65 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..d6000a788d6e
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/adi,adg1712.yaml
@@ -0,0 +1,65 @@
+# 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
+
+ switch-gpios:
+ description: |
+ Array of GPIOs connected to the IN1-IN4 control pins.
+ Index 0 corresponds to IN1 (controls SW1),
+ Index 1 corresponds to IN2 (controls SW2),
+ Index 2 corresponds to IN3 (controls SW3),
+ Index 3 corresponds to IN4 (controls SW4).
+ minItems: 4
+ maxItems: 4
+
+ 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
+ - switch-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>;
+
+ switch-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>,
+ <&gpio 11 GPIO_ACTIVE_HIGH>,
+ <&gpio 12 GPIO_ACTIVE_HIGH>,
+ <&gpio 13 GPIO_ACTIVE_HIGH>;
+ };
+...
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/2] gpio: adg1712: add driver support
2025-11-08 17:40 [PATCH v2 0/2] gpio: Add support for ADG1712 quad SPST switch Antoniu Miclaus
2025-11-08 17:40 ` [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support Antoniu Miclaus
@ 2025-11-08 17:40 ` Antoniu Miclaus
1 sibling, 0 replies; 6+ messages in thread
From: Antoniu Miclaus @ 2025-11-08 17:40 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio, devicetree,
linux-kernel
Cc: Antoniu Miclaus
Add driver support for the ADG1712, which contains four independent
single-pole/single-throw (SPST) switches and operates with a
low-voltage single supply range from +1.08V to +5.5V or a low-voltage
dual supply range from ±1.08V to ±2.75V.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
Changes in v2:
- Replace individual GPIO descriptors array with gpio_descs structure
- Use devm_gpiod_get_array() instead of individual devm_gpiod_get() calls
- Use GPIOD_ASIS flag to preserve current GPIO states instead of GPIOD_OUT_LOW
- Remove unnecessary direction_input and direction_output callbacks for output-only device
- Remove unnecessary offset bounds checking (handled by GPIO core)
- Return result from gpiod_set_value_cansleep() instead of always returning 0
- Optimize set_multiple() to use gpiod_set_array_value_cansleep() for bulk operations
- Change dev_info() to dev_dbg() for registration message
- Simplify probe function by eliminating the GPIO setup loop
---
drivers/gpio/Kconfig | 9 +++
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-adg1712.c | 119 ++++++++++++++++++++++++++++++++++++
3 files changed, 129 insertions(+)
create mode 100644 drivers/gpio/gpio-adg1712.c
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 7ee3afbc2b05..3fac05823eae 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -157,6 +157,15 @@ config GPIO_74XX_MMIO
8 bits: 74244 (Input), 74273 (Output)
16 bits: 741624 (Input), 7416374 (Output)
+config GPIO_ADG1712
+ tristate "Analog Devices ADG1712 quad SPST switch GPIO driver"
+ depends on GPIOLIB
+ help
+ GPIO driver for Analog Devices ADG1712 quad single-pole,
+ single-throw (SPST) switch. The driver provides a GPIO controller
+ interface where each GPIO line controls one of the four independent
+ analog switches on the ADG1712.
+
config GPIO_ALTERA
tristate "Altera GPIO"
select GPIOLIB_IRQCHIP
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index ec296fa14bfd..9043d2d07a15 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -28,6 +28,7 @@ obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o
obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o
obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o
obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o
+obj-$(CONFIG_GPIO_ADG1712) += gpio-adg1712.o
obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o
obj-$(CONFIG_GPIO_ADP5520) += gpio-adp5520.o
obj-$(CONFIG_GPIO_ADP5585) += gpio-adp5585.o
diff --git a/drivers/gpio/gpio-adg1712.c b/drivers/gpio/gpio-adg1712.c
new file mode 100644
index 000000000000..092dc459c7e8
--- /dev/null
+++ b/drivers/gpio/gpio-adg1712.c
@@ -0,0 +1,119 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Analog Devices ADG1712 quad SPST switch GPIO driver
+ *
+ * Copyright 2025 Analog Devices Inc.
+ *
+ * Author: Antoniu Miclaus <antoniu.miclaus@analog.com>
+ */
+
+#include <linux/err.h>
+#include <linux/gpio/consumer.h>
+#include <linux/gpio/driver.h>
+#include <linux/mod_devicetable.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/property.h>
+
+#define ADG1712_NUM_GPIOS 4
+
+struct adg1712 {
+ struct gpio_chip chip;
+ struct gpio_descs *switch_gpios;
+};
+
+static int adg1712_get_direction(struct gpio_chip *chip, unsigned int offset)
+{
+ return GPIO_LINE_DIRECTION_OUT;
+}
+
+static int adg1712_set(struct gpio_chip *chip, unsigned int offset, int value)
+{
+ struct adg1712 *adg1712 = gpiochip_get_data(chip);
+
+ return gpiod_set_value_cansleep(adg1712->switch_gpios->desc[offset],
+ value);
+}
+
+static int adg1712_get(struct gpio_chip *chip, unsigned int offset)
+{
+ struct adg1712 *adg1712 = gpiochip_get_data(chip);
+
+ return gpiod_get_value_cansleep(adg1712->switch_gpios->desc[offset]);
+}
+
+static int adg1712_set_multiple(struct gpio_chip *chip, unsigned long *mask,
+ unsigned long *bits)
+{
+ struct adg1712 *adg1712 = gpiochip_get_data(chip);
+
+ return gpiod_set_array_value_cansleep(adg1712->switch_gpios->ndescs,
+ adg1712->switch_gpios->desc,
+ adg1712->switch_gpios->info,
+ bits);
+}
+
+static const struct gpio_chip adg1712_gpio_chip = {
+ .label = "adg1712",
+ .owner = THIS_MODULE,
+ .get_direction = adg1712_get_direction,
+ .get = adg1712_get,
+ .set = adg1712_set,
+ .set_multiple = adg1712_set_multiple,
+ .base = -1,
+ .ngpio = ADG1712_NUM_GPIOS,
+ .can_sleep = true,
+};
+
+static int adg1712_probe(struct platform_device *pdev)
+{
+ struct device *dev = &pdev->dev;
+ struct adg1712 *adg1712;
+ int ret;
+
+ adg1712 = devm_kzalloc(dev, sizeof(*adg1712), GFP_KERNEL);
+ if (!adg1712)
+ return -ENOMEM;
+
+ adg1712->chip = adg1712_gpio_chip;
+ adg1712->chip.parent = dev;
+
+ adg1712->switch_gpios = devm_gpiod_get_array(dev, "switch", GPIOD_ASIS);
+ if (IS_ERR(adg1712->switch_gpios))
+ return dev_err_probe(dev, PTR_ERR(adg1712->switch_gpios),
+ "failed to get switch gpios\n");
+
+ if (adg1712->switch_gpios->ndescs != ADG1712_NUM_GPIOS)
+ return dev_err_probe(dev, -EINVAL,
+ "expected %d gpios, got %d\n",
+ ADG1712_NUM_GPIOS,
+ adg1712->switch_gpios->ndescs);
+
+ ret = devm_gpiochip_add_data(dev, &adg1712->chip, adg1712);
+ if (ret)
+ return dev_err_probe(dev, ret, "failed to add gpio chip\n");
+
+ dev_dbg(dev, "ADG1712 %u-GPIO expander registered\n",
+ adg1712->chip.ngpio);
+
+ return 0;
+}
+
+static const struct of_device_id adg1712_dt_ids[] = {
+ { .compatible = "adi,adg1712", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, adg1712_dt_ids);
+
+static struct platform_driver adg1712_driver = {
+ .driver = {
+ .name = "adg1712",
+ .of_match_table = adg1712_dt_ids,
+ },
+ .probe = adg1712_probe,
+};
+module_platform_driver(adg1712_driver);
+
+MODULE_DESCRIPTION("Analog Devices ADG1712 quad SPST switch GPIO driver");
+MODULE_AUTHOR("Antoniu Miclaus <antoniu.miclaus@analog.com>");
+MODULE_LICENSE("GPL");
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support
2025-11-08 17:40 ` [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support Antoniu Miclaus
@ 2025-11-10 19:16 ` Conor Dooley
2025-11-11 10:27 ` Linus Walleij
2025-11-12 9:13 ` Nuno Sá
2 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2025-11-10 19:16 UTC (permalink / raw)
To: Antoniu Miclaus
Cc: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio, devicetree,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 3147 bytes --]
On Sat, Nov 08, 2025 at 05:40:28PM +0000, Antoniu Miclaus wrote:
> Add devicetree bindings for adg1712 SPST quad switch.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> ---
> Changes in v2:
> - Replace individual GPIO properties (switch1-gpios, switch2-gpios, etc.)
> with a single GPIO array property (switch-gpios)
As implemented, does this not prevent only populating some of the
inputs?
e.g. 1-3 and 0 is empty.
> - Update required properties list accordingly
> - Simplify device tree example to use array notation
> ---
> .../devicetree/bindings/gpio/adi,adg1712.yaml | 65 +++++++++++++++++++
> 1 file changed, 65 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..d6000a788d6e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/adi,adg1712.yaml
> @@ -0,0 +1,65 @@
> +# 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
> +
> + switch-gpios:
> + description: |
> + Array of GPIOs connected to the IN1-IN4 control pins.
> + Index 0 corresponds to IN1 (controls SW1),
> + Index 1 corresponds to IN2 (controls SW2),
> + Index 2 corresponds to IN3 (controls SW3),
> + Index 3 corresponds to IN4 (controls SW4).
> + minItems: 4
> + maxItems: 4
> +
> + 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
> + - switch-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>;
> +
> + switch-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>,
> + <&gpio 11 GPIO_ACTIVE_HIGH>,
> + <&gpio 12 GPIO_ACTIVE_HIGH>,
> + <&gpio 13 GPIO_ACTIVE_HIGH>;
> + };
> +...
> --
> 2.43.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support
2025-11-08 17:40 ` [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support Antoniu Miclaus
2025-11-10 19:16 ` Conor Dooley
@ 2025-11-11 10:27 ` Linus Walleij
2025-11-12 9:13 ` Nuno Sá
2 siblings, 0 replies; 6+ messages in thread
From: Linus Walleij @ 2025-11-11 10:27 UTC (permalink / raw)
To: Antoniu Miclaus
Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-gpio, devicetree, linux-kernel
On Sat, Nov 8, 2025 at 6:43 PM Antoniu Miclaus
<antoniu.miclaus@analog.com> wrote:
> Add devicetree bindings for adg1712 SPST quad switch.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
My comment on v1 stands.
This is a switch controlled by a GPIO:
-----/ -----
|
gpio
The resulting binding is not about GPIO, it is about a switch.
There are similar things that have unique bindings already,
for example:
Documentation/devicetree/bindings/power/reset/gpio-poweroff.yaml
I think this needs a new binding folder in
dt-bindings/switch/* and cannot be hidden away
as "some kind of GPIO".
Maybe it will be modeled as some GPIO in Linux, I don't
know yet, but other operating systems use these bindings
too, and they will be confused by this "GPIO" which is
actually a switch.
I don't like the idea of GPIO being used as a dumping
ground for hardware that isn't properly modeled.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support
2025-11-08 17:40 ` [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support Antoniu Miclaus
2025-11-10 19:16 ` Conor Dooley
2025-11-11 10:27 ` Linus Walleij
@ 2025-11-12 9:13 ` Nuno Sá
2 siblings, 0 replies; 6+ messages in thread
From: Nuno Sá @ 2025-11-12 9:13 UTC (permalink / raw)
To: Antoniu Miclaus, Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-gpio, devicetree,
linux-kernel
On Sat, 2025-11-08 at 17:40 +0000, Antoniu Miclaus wrote:
> Add devicetree bindings for adg1712 SPST quad switch.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> ---
> Changes in v2:
> - Replace individual GPIO properties (switch1-gpios, switch2-gpios, etc.)
> with a single GPIO array property (switch-gpios)
> - Update required properties list accordingly
> - Simplify device tree example to use array notation
> ---
Antoniu,
See the discussion in [1] and reply there. Linus gave a suggestion on how
this could be implemented. See if it fits the usecases this chip is being
used and if not we need to discuss alternatives or if we can allow
gpiochip .set()/.get()
[1]: https://lore.kernel.org/linux-gpio/20251031160710.13343-1-antoniu.miclaus@analog.com/T/#m3f4397526ee7cb2a737a30673934578b3b290c1c
- Nuno Sá
> .../devicetree/bindings/gpio/adi,adg1712.yaml | 65 +++++++++++++++++++
> 1 file changed, 65 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..d6000a788d6e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/adi,adg1712.yaml
> @@ -0,0 +1,65 @@
> +# 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
> +
> + switch-gpios:
> + description: |
> + Array of GPIOs connected to the IN1-IN4 control pins.
> + Index 0 corresponds to IN1 (controls SW1),
> + Index 1 corresponds to IN2 (controls SW2),
> + Index 2 corresponds to IN3 (controls SW3),
> + Index 3 corresponds to IN4 (controls SW4).
> + minItems: 4
> + maxItems: 4
> +
> + 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
> + - switch-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>;
> +
> + switch-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>,
> + <&gpio 11 GPIO_ACTIVE_HIGH>,
> + <&gpio 12 GPIO_ACTIVE_HIGH>,
> + <&gpio 13 GPIO_ACTIVE_HIGH>;
> + };
> +...
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-11-12 9:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-08 17:40 [PATCH v2 0/2] gpio: Add support for ADG1712 quad SPST switch Antoniu Miclaus
2025-11-08 17:40 ` [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support Antoniu Miclaus
2025-11-10 19:16 ` Conor Dooley
2025-11-11 10:27 ` Linus Walleij
2025-11-12 9:13 ` Nuno Sá
2025-11-08 17:40 ` [PATCH v2 2/2] gpio: adg1712: add driver support Antoniu Miclaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).