Re: [PATCH v2 1/2] dt-bindings: gpio: adg1712: add adg1712 support
From: Linus Walleij
Date: Tue Nov 11 2025 - 05:34:45 EST
On Sat, Nov 8, 2025 at 6:43 PM Antoniu Miclaus
<antoniu.miclaus@xxxxxxxxxx> wrote:
> Add devicetree bindings for adg1712 SPST quad switch.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
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