From: sashiko-bot@kernel.org
To: "Marcelo Schmitt" <marcelo.schmitt1@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v1 1/4] dt-bindings: iio: adc: Add ltc2378
Date: Mon, 18 May 2026 15:29:13 +0000 [thread overview]
Message-ID: <20260518152913.D0B83C2BCB7@smtp.kernel.org> (raw)
In-Reply-To: <cf404216011b6972519436c63fcc7c4e2c883c54.1779117444.git.marcelo.schmitt1@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The YAML schema incorrectly models fallback compatible strings by grouping specific and fallback strings into a single-element list, rejecting actual fallback usage in the device tree.
- [Medium] `additionalProperties: false` is used instead of `unevaluatedProperties: false` alongside a common schema reference, causing erroneous schema validation failures for valid SPI properties.
--
commit e7c5954ec798a9962f4a29e46b3240e39219ef7e
Author: Marcelo Schmitt <marcelo.schmitt@analog.com>
dt-bindings: iio: adc: Add ltc2378
This commit documents the device tree bindings for the Analog Devices LTC2378
and similar ADCs. It introduces a new YAML schema defining the compatible
strings, power supplies, interrupts, and SPI peripheral properties.
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ltc2378.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ltc2378.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ltc2378.yaml
[ ... ]
> +properties:
> + compatible:
> + oneOf:
> + - enum:
> + - adi,ltc2338-18
> + - adi,ltc2369-18
> + - adi,ltc2370-16
> + - adi,ltc2379-18
> + - adi,ltc2380-16
> + - items:
> + - enum:
> + - adi,ltc2364-18
> + - adi,ltc2364-16 # fallback compatible
Does this definition restrict the compatible property to an array of exactly
one string?
Grouping a specific variant and its fallback into a single enum under a
one-element items array natively rejects the standard device tree formatting
for a specific device paired with a fallback, such as:
compatible = "adi,ltc2364-18", "adi,ltc2364-16";
Should this list declare two discrete elements positionally instead, with the
specific variant first, followed by a const for the fallback string? This
pattern repeats for the other fallback compatibles below.
[ ... ]
> +required:
> + - compatible
> + - reg
> + - vdd-supply
> + - ovdd-supply
> + - ref-supply
> +
> +additionalProperties: false
Does this introduce a regression where valid SPI peripheral properties are
erroneously rejected?
The binding includes a $ref to /schemas/spi/spi-peripheral-props.yaml# at
the top of the file, but concludes with additionalProperties: false. Since
additionalProperties only considers properties explicitly defined in this
specific properties block, device tree nodes using standard SPI properties
that are not manually redefined here (like spi-cpha or spi-cs-high) will
fail validation.
Should this be unevaluatedProperties: false instead?
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1779117444.git.marcelo.schmitt1@gmail.com?part=1
next prev parent reply other threads:[~2026-05-18 15:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-18 15:20 [PATCH v1 0/4] iio: adc: Add support for LTC2378 and similar ADCs Marcelo Schmitt
2026-05-18 15:21 ` [PATCH v1 1/4] dt-bindings: iio: adc: Add ltc2378 Marcelo Schmitt
2026-05-18 15:29 ` sashiko-bot [this message]
2026-05-18 17:06 ` Conor Dooley
2026-05-18 18:42 ` Marcelo Schmitt
2026-05-18 15:21 ` [PATCH v1 2/4] iio: adc: Add support for LTC2378-20 and similar ADCs Marcelo Schmitt
2026-05-18 15:51 ` sashiko-bot
2026-05-20 16:04 ` Jonathan Cameron
2026-05-18 15:22 ` [PATCH v1 3/4] iio: adc: ltc2378: Enable high-speed data capture Marcelo Schmitt
2026-05-18 16:19 ` sashiko-bot
2026-05-20 16:27 ` Jonathan Cameron
2026-05-20 17:31 ` Marcelo Schmitt
2026-05-20 18:58 ` Jonathan Cameron
2026-05-18 15:22 ` [PATCH v1 4/4] iio: adc: ltc2378: Enable triggered buffer " Marcelo Schmitt
2026-05-20 16:32 ` Jonathan Cameron
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=20260518152913.D0B83C2BCB7@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=marcelo.schmitt1@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 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.