Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Antoniu Miclaus <antoniu.miclaus@analog.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-gpio@vger.kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: switch: adg1712: add adg1712 support
Date: Thu, 20 Nov 2025 00:31:11 +0000	[thread overview]
Message-ID: <20251120-evacuee-opulently-8e98840c4ba2@spud> (raw)
In-Reply-To: <CACRpkdayt+upQxxT-GdQOENWjdF2zz3DLEjcvD7sdg9-oaLwoA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

On Wed, Nov 19, 2025 at 10:22:02PM +0100, Linus Walleij wrote:
> On Wed, Nov 19, 2025 at 6:56 PM Conor Dooley <conor@kernel.org> wrote:
> > On Mon, Nov 17, 2025 at 09:13:22AM +0000, Antoniu Miclaus wrote:
> 
> > > +  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).
> >
> > Did I miss a reply about my comment on this switch-gpios? I was asking
> > if a binding like this, which doesn't permit any of these not being
> > provided is a good idea.
> >
> > > +    minItems: 4
> > > +    maxItems: 4
> 
> Maybe we should make them named GPIOs after all, as the switch
> has exactly 4 possible GPIOs. It was my request to have an
> array I think, and now I feel a bit stupid about that :(

It might cause havoc dt-schema wise, but is having a switch-gpio-names
a silly suggestion? Seems more usable than having 16 or 32 individual
-gpios properties on a larger device.

> > > +  switch-states:
> > > +    description: |
> > > +      Initial states for the four switches (SW1-SW4).
> >
> > Missing an adi prefix? Also, probably should say initial if it is
> > initial states.
> 
> It should probably be initial-switch-states.
> 
> I vote for a generic binding as it is a new "subsystem" in DT,
> and this can be exepected for any new switch.

Cool, prefix-less is fine in the case - although Rob's usual requirement
is two users for some common thing to make sure that it is actually
suitable for being common.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2025-11-20  0:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-17  9:13 [PATCH v3 0/2] Add ADG1712 SPST switch controller support Antoniu Miclaus
2025-11-17  9:13 ` [PATCH v3 1/2] dt-bindings: switch: adg1712: add adg1712 support Antoniu Miclaus
2025-11-19 13:45   ` Linus Walleij
2025-11-19 17:56   ` Conor Dooley
2025-11-19 21:22     ` Linus Walleij
2025-11-20  0:31       ` Conor Dooley [this message]
2025-11-20 23:19         ` Linus Walleij
2025-11-17  9:13 ` [PATCH v3 2/2] gpio: adg1712: add driver support Antoniu Miclaus
2025-11-17 14:46   ` Bartosz Golaszewski
2025-11-19 13:59   ` Linus Walleij
2025-11-17 15:06 ` [PATCH v3 0/2] Add ADG1712 SPST switch controller support 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=20251120-evacuee-opulently-8e98840c4ba2@spud \
    --to=conor@kernel.org \
    --cc=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