Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ninad Naik" <ninadnaik07@gmail.com>
Cc: lee@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org,
	linux-leds@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v4] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema
Date: Tue, 28 Jul 2026 18:52:35 +0000	[thread overview]
Message-ID: <20260728185236.048481F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260728183945.12008-1-ninadnaik07@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Using `additionalProperties: { type: object }` at the root level incorrectly restricts all unlisted parent properties to be objects, causing validation to fail for standard devicetree properties.
--

--- Patch [1]: [PATCH v4] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema ---
commit e51c70e2c2a321d27514dfdacc4ab4b3fb805568
Author: Ninad Naik <ninadnaik07@gmail.com>

dt-bindings: leds: lacie,ns2-leds: Convert to DT schema

This commit converts the lacie,ns2-leds device tree binding from plain text
to YAML schema.

> diff --git a/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml b/Documentation/devicetree/bindings/leds/lacie,ns2-leds.yaml
> new file mode 100644
> --- /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
> +
> +  description: Each child node represents a single LED

[Severity: Low]
By applying type: object to additionalProperties at the root level, will this
incorrectly restrict standard unlisted parent properties (such as status or
pinctrl-0) to be objects? 

If a standard string or array property is added to the node, it looks like
schema validation will fail. Should patternProperties be used here instead to
selectively match the child LED nodes?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260728183945.12008-1-ninadnaik07@gmail.com?part=1

      reply	other threads:[~2026-07-28 18:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28 18:39 [PATCH v4] dt-bindings: leds: lacie,ns2-leds: Convert to DT schema Ninad Naik
2026-07-28 18:52 ` 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=20260728185236.048481F000E9@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