From: sashiko-bot@kernel.org
To: "Ninad Naik" <ninadnaik07@gmail.com>
Cc: conor+dt@kernel.org, lee@kernel.org, robh@kernel.org,
devicetree@vger.kernel.org, linux-leds@vger.kernel.org
Subject: Re: [PATCH v3] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema
Date: Fri, 24 Jul 2026 16:36:57 +0000 [thread overview]
Message-ID: <20260724163657.F29171F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260724162332.32291-1-ninadnaik07@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The top-level `additionalProperties` is incorrectly defined as a child-node schema, causing it to incorrectly reject standard device tree properties.
--
--- Patch [1]: [PATCH v3] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema ---
commit 2e02c3a2b329288ad4aeeb155d96aec6b772c421
Author: Ninad Naik <ninadnaik07@gmail.com>
dt-bindings: leds: lacie,ns2-leds: Convert to DT schema
Convert lacie,ns2-leds to DT schema.
Closes: https://lore.kernel.org/r/202607231542.6ovJrInT-lkp@intel.com/
> diff --git a/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml b/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml
> new file mode 100644
> index 0000000000000..2138c75c04133
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml
[ ... ]
> +properties:
> + compatible:
> + const: lacie,ns2-leds
> +
> +additionalProperties:
> + type: object
> + $ref: common.yaml#
> + unevaluatedProperties: false
[Severity: Medium]
Does this incorrectly apply an object constraint to all unspecified top-level
properties?
It appears this schema logic will cause valid device trees containing standard
non-object properties (like status or pinctrl-0) to fail validation during
make dtbs_check.
Should child nodes instead be matched using patternProperties, with
additionalProperties: false or unevaluatedProperties: false used at the top
level to allow standard DT properties?
> +
> + description: Each child node represents a single LED
> +
> + properties:
> + cmd-gpio:
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260724162332.32291-1-ninadnaik07@gmail.com?part=1
prev parent reply other threads:[~2026-07-24 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 16:23 [PATCH v3] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema Ninad Naik
2026-07-24 16:36 ` sashiko-bot [this message]
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=20260724163657.F29171F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=ninadnaik07@gmail.com \
--cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox