From: sashiko-bot@kernel.org
To: "Chang Yu" <marcus.yu.56@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 1/2] dt-bindings: iio: light: add as7343
Date: Tue, 13 Oct 2026 12:04:32 +0000 [thread overview]
Message-ID: <sashiko-outbox-169669@kernel.org> (raw)
In-Reply-To: <20261013115639.167433-2-marcus.yu.56@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: additionalProperties: false blocks referenced LED properties
--
commit 91a13bd8ef095a37fbdedc3e1a205c8195e990a3
Author: Chang Yu <marcus.yu.56@gmail.com>
dt-bindings: iio: light: add as7343
This commit adds a device tree binding schema for the AMS AS7343, a
14-channel multi-spectral sensor.
> diff --git a/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml
> new file mode 100644
> index 0000000000000..7fb10b0d4843b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml
[ ... ]
> +required:
> + - compatible
> + - reg
> + - vdd-supply
> +
> +additionalProperties: false
> +
> +allOf:
> + - $ref: /schemas/leds/common.yaml#
[Severity: Low]
Will additionalProperties: false cause the schema validator to incorrectly
reject valid LED properties?
Because additionalProperties is set to false at the root level, only the
properties explicitly listed in the local properties dictionary are allowed.
When a device tree author adds standard LED properties (such as function,
color, or label) included by the /schemas/leds/common.yaml reference, they
will fail validation as unallowed additional properties.
Could we use unevaluatedProperties: false instead? This would allow the
properties defined in the externally referenced common LED schema to pass
validation correctly.
> +
> +examples:
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261013115639.167433-1-marcus.yu.56@gmail.com?part=1
next prev parent reply other threads:[~2026-10-13 12:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 11:56 [PATCH v6 0/2] Add support for AS7343 multi-spectral sensor Chang Yu
2026-10-13 11:56 ` [PATCH v6 1/2] dt-bindings: iio: light: add as7343 Chang Yu
2026-10-13 12:04 ` sashiko-bot [this message]
2026-10-13 11:56 ` [PATCH v6 2/2] iio: light: add AS7343 multi-spectral sensor driver Chang Yu
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=sashiko-outbox-169669@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=marcus.yu.56@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