From: Rob Herring <robh@kernel.org>
To: Rudraksha Gupta <guptarud@gmail.com>
Cc: sashiko-reviews@lists.linux.dev, conor+dt@kernel.org,
devicetree@vger.kernel.org, linux-leds@vger.kernel.org,
lee@kernel.org
Subject: Re: [PATCH v7 1/3] dt-bindings: leds: rt8515: Support single-GPIO flash ICs with vin supply
Date: Tue, 15 Sep 2026 15:25:03 -0500 [thread overview]
Message-ID: <20260915202503.GA3364430-robh@kernel.org> (raw)
In-Reply-To: <583fd625-b57f-44be-96c8-94d981c29c79@gmail.com>
On Tue, Sep 15, 2026 at 12:49:47PM -0700, Rudraksha Gupta wrote:
>
> On 9/12/26 19:45, sashiko-bot@kernel.org wrote:
> > Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> > - [Medium] The `oneOf` constraint incorrectly makes `ent-gpios` and `vin-supply` mutually exclusive and strictly requires exactly one to be present, contradicting the claim that `vin-supply` is optional and artificially restricting valid hardware configurations.
> > --
> make ARCH=arm CHECK_DTBS=y DT_SCHEMA_FILES=richtek,rt8515.yaml \
> qcom/qcom-msm8960-samsung-expressatt.dtb \
> st/ste-ux500-samsung-codina.dtb \
> st/ste-ux500-samsung-codina-tmo.dtb \
> st/ste-ux500-samsung-gavini.dtb \
> st/ste-ux500-samsung-golden.dtb \
> st/ste-ux500-samsung-janice.dtb \
> st/ste-ux500-samsung-kyle.dtb \
> st/ste-ux500-samsung-skomer.dtb
>
> all 8 in-tree users of this binding. 0 warnings.
>
> existing hw passes.
So?
> Probably not useful to account for hw not in the tree
Oh, yes it is.
> > commit 72463777ee1c18e7913b350d5d2ad857810ece89
> > Author: Rudraksha Gupta <guptarud@gmail.com>
> > Subject: dt-bindings: leds: rt8515: Support single-GPIO flash ICs with vin supply
> >
> > This commit adds support for single-channel variants of the RT8515 flash
> > ICs. It makes ent-gpios optional and introduces a vin-supply property,
> > adding a oneOf constraint to manage their presence.
> >
> > > diff --git a/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml b/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml
> > > index 0356371a6b014..ab3c5139132cc 100644
> > > --- a/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml
> > > +++ b/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml
> > [ ... ]
> >
> > > @@ -81,10 +90,15 @@ properties:
> > > required:
> > > - compatible
> > > - - ent-gpios
> > > - enf-gpios
> > > - led
> > > +oneOf:
> > > + - required:
> > > + - ent-gpios
> > > + - required:
> > > + - vin-supply
> > > +
> > [Severity: Medium]
> > Does this oneOf constraint incorrectly restrict valid hardware configurations?
> >
> > The oneOf constraint strictly requires exactly one of its subschemas to match.
> > If a single-channel IC (which naturally lacks ent-gpios) does not use the
> > explicitly optional vin-supply regulator, zero subschemas will match, causing
> > schema validation to fail.
> >
> > Conversely, if a standard dual-channel IC (which requires ent-gpios) is also
> > powered by a vin-supply regulator, two subschemas will match. This will also
> > fail validation due to the strict exclusivity of oneOf.
I agree. It makes little sense that you can only have either a supply or
a GPIO. If that does make sense, the commit message better explain why.
Rob
next prev parent reply other threads:[~2026-09-15 20:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-13 2:38 [PATCH v7 0/3] Samsung Expressatt: Camera Flash Rudraksha Gupta via B4 Relay
2026-09-13 2:38 ` Rudraksha Gupta
2026-09-13 2:38 ` [PATCH v7 1/3] dt-bindings: leds: rt8515: Support single-GPIO flash ICs with vin supply Rudraksha Gupta via B4 Relay
2026-09-13 2:38 ` Rudraksha Gupta
2026-09-13 2:45 ` sashiko-bot
2026-09-15 19:49 ` Rudraksha Gupta
2026-09-15 20:25 ` Rob Herring [this message]
2026-09-13 2:38 ` [PATCH v7 2/3] leds: flash: " Rudraksha Gupta via B4 Relay
2026-09-13 2:38 ` Rudraksha Gupta
2026-09-13 2:50 ` sashiko-bot
2026-09-15 11:07 ` Lee Jones
2026-09-15 19:51 ` Rudraksha Gupta
2026-09-13 2:38 ` [PATCH v7 3/3] ARM: dts: qcom: msm8960: expressatt: Add camera flash Rudraksha Gupta via B4 Relay
2026-09-13 2:38 ` Rudraksha Gupta
2026-09-13 2:50 ` 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=20260915202503.GA3364430-robh@kernel.org \
--to=robh@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=guptarud@gmail.com \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.