From: Krzysztof Kozlowski <krzk@kernel.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: "Torreno, Alexis Czezar" <AlexisCzezar.Torreno@analog.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
"linux-hwmon@vger.kernel.org" <linux-hwmon@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH v2 1/5] dt-bindings: hwmon: (pmbus/max20830): add enable-gpios property and complete examples
Date: Fri, 10 Jul 2026 12:13:08 +0200 [thread overview]
Message-ID: <20260710-acrid-enchanted-prawn-5de949@quoll> (raw)
In-Reply-To: <65ebf21f-5a23-43b5-b10c-684fe421b0dc@roeck-us.net>
On Mon, Jul 06, 2026 at 09:33:32AM -0700, Guenter Roeck wrote:
> On 7/6/26 00:13, Torreno, Alexis Czezar wrote:
> >
> > > On Mon, Jul 06, 2026 at 10:08:41AM +0800, Alexis Czezar Torreno wrote:
> > > > Adding an entry for the MAX20830 EN (enable) pin. This pin exist but
> > > > was not included before. Also edited examples entry to be more complete.
> > > >
> > > > Signed-off-by: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
> > > > ---
> > > > .../devicetree/bindings/hwmon/pmbus/adi,max20830.yaml | 11
> > > +++++++++++
> > > > 1 file changed, 11 insertions(+)
> > > >
> > >
> > > How did you address previous feedback?
> > >
> >
> > Regarding the enable pin, I added this since I know bindings like being complete
> > and saw that I didn't add it the first time I submitted max20830.
> > I added driver code for the gpio but learned that it wasn't really a use case so
> > I simply dropped the patch for it.
> >
>
> I guess I am completely missing the point here. I can not imagine a situation
> where one would want to connect the enable pin to a driver-controlled GPIO pin,
> or why would one connect the chip's PGOOD output pin to a GPIO input pin
> and connect that back to the driver.
>
> I think we will need guidance from devicetree maintainers explaining what
> "complete" means in such a context to avoid having to repeat this discussion
> for every driver going forward.
I think complete means all reasonable hardware resources/properties,
regardless whether current OS implementation uses them or not. That's
why if there is enable-gpios which is not used by Linux but could be in
the future, then it should be documented.
However if you claim that enable-gpios will absolutely NEVER be used by
Linux or bootloader or any other DT bindings user (*BSD, Barebox, U-boot
etc), then I would skip it, just like we do not describe many other
parts which simply have no use for the software.
IOW, DTS is description of non-discoverable hardware for the software.
We do not describe hardware for the sake of description, to mirror
schematics. That's not the goal. The goal is to make some software
happy, even if this is a future software implementation.
What is the case here - I rely on your guidance whether enable-gpios can
EVER be used by software. If there is a chance, then IMO property could
stay.
Also, no harm will be done if we skip this property and we add it later
in the future when actual use appears. Maybe no need to spend time on
discussing such triviality and instead just skip it.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-07-10 10:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-06 2:08 [PATCH v2 0/5] Add support for MAX20830C and MAX20840C step-down DC-DC switching regulator Alexis Czezar Torreno
2026-07-06 2:08 ` [PATCH v2 1/5] dt-bindings: hwmon: (pmbus/max20830): add enable-gpios property and complete examples Alexis Czezar Torreno
2026-07-06 2:16 ` sashiko-bot
2026-07-06 6:39 ` Krzysztof Kozlowski
2026-07-06 7:13 ` Torreno, Alexis Czezar
2026-07-06 16:33 ` Guenter Roeck
2026-07-10 10:13 ` Krzysztof Kozlowski [this message]
2026-07-10 14:41 ` Guenter Roeck
2026-07-06 14:01 ` Guenter Roeck
2026-07-11 8:46 ` Krzysztof Kozlowski
2026-07-06 2:08 ` [PATCH v2 2/5] dt-bindings: hwmon: (pmbus/max20830): add VOUT feedback resistor properties Alexis Czezar Torreno
2026-07-06 2:14 ` sashiko-bot
2026-07-06 2:08 ` [PATCH v2 3/5] hwmon: (pmbus/max20830): add VOUT feedback resistor scaling support Alexis Czezar Torreno
2026-07-06 2:21 ` sashiko-bot
2026-07-06 2:08 ` [PATCH v2 4/5] dt-bindings: hwmon: (pmbus/max20830): add max20830c and max20840c support Alexis Czezar Torreno
2026-07-06 2:16 ` sashiko-bot
2026-07-06 6:40 ` Krzysztof Kozlowski
2026-07-06 2:08 ` [PATCH v2 5/5] hwmon: (pmbus/max20830): add support for max20830c and max20840c Alexis Czezar Torreno
2026-07-06 2:20 ` sashiko-bot
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=20260710-acrid-enchanted-prawn-5de949@quoll \
--to=krzk@kernel.org \
--cc=AlexisCzezar.Torreno@analog.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.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