From: sashiko-bot@kernel.org
To: "Esben Haabendal" <esben@geanix.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v4 3/7] dt-bindings: iio: light: ltr501: Add ltr329 compatible
Date: Mon, 10 Aug 2026 07:19:28 +0000 [thread overview]
Message-ID: <20260810071929.DCE891F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260810-liteon-ltr329-v4-3-8bd3dfd15280@geanix.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The schema allows the `interrupts` and `proximity-near-level` properties for `liteon,ltr329`, despite the hardware lacking support for both.
--
--- Patch [3]: [PATCH v4 3/7] dt-bindings: iio: light: ltr501: Add ltr329 compatible ---
commit 886ebb6ac5c09271398d18cea2c0a6d6d1bb9043
Author: Esben Haabendal <esben@geanix.com>
dt-bindings: iio: light: ltr501: Add ltr329 compatible
This commit adds a new compatible string for the LTR-329ALS-01 ambient
light sensor. The commit message notes that it is similar to LTR-303ALS-01
but without interrupt support.
> diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
> index 6234e2eaec2e4..8c9d6cee55b49 100644
> --- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
> +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
> @@ -17,6 +17,7 @@ properties:
> enum:
> - liteon,ltr301
> - liteon,ltr303
> + - liteon,ltr329
[Severity: Medium]
Since the commit message explicitly states that the LTR-329ALS-01 does not
have interrupt support, should the schema actively disallow the interrupts
property for this specific compatible string?
Currently, because interrupts and proximity-near-level are defined globally
in this schema, validation will silently pass if a device tree node for
liteon,ltr329 incorrectly includes them.
Could an allOf rule be added to restrict these unsupported properties?
allOf:
- if:
properties:
compatible:
contains:
const: liteon,ltr329
then:
properties:
interrupts: false
proximity-near-level: false
> - liteon,ltr501
> - liteon,ltr559
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260810-liteon-ltr329-v4-0-8bd3dfd15280@geanix.com?part=3
next prev parent reply other threads:[~2026-08-10 7:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 7:11 [PATCH v4 0/7] iio: light: ltr501: Add ltr329 support Esben Haabendal
2026-08-10 7:11 ` [PATCH v4 1/7] dt-bindings: iio: light: ltr501: Sort compatible enum array Esben Haabendal
2026-08-10 7:11 ` [PATCH v4 2/7] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible Esben Haabendal
2026-08-10 7:11 ` [PATCH v4 3/7] dt-bindings: iio: light: ltr501: Add ltr329 compatible Esben Haabendal
2026-08-10 7:19 ` sashiko-bot [this message]
2026-08-10 15:50 ` Rob Herring
2026-08-10 7:11 ` [PATCH v4 4/7] iio: light: ltr501: Power down chip if request irq fails Esben Haabendal
2026-08-10 7:23 ` sashiko-bot
2026-08-10 7:11 ` [PATCH v4 5/7] iio: light: ltr501: Fix duplicated error message Esben Haabendal
2026-08-10 7:11 ` [PATCH v4 6/7] iio: light: ltr501: Add ltr329 driver support Esben Haabendal
2026-08-10 7:24 ` sashiko-bot
2026-08-10 19:57 ` Andy Shevchenko
2026-08-10 7:11 ` [PATCH v4 7/7] iio: light: ltr501: Fix sorting order of device arrays Esben Haabendal
2026-08-10 19:59 ` [PATCH v4 0/7] iio: light: ltr501: Add ltr329 support Andy Shevchenko
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=20260810071929.DCE891F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=esben@geanix.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