From: sashiko-bot@kernel.org
To: "Janani Sunil" <janani.sunil@analog.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 2/3] dt-bindings: iio: dac: Add AD5529R
Date: Wed, 05 Aug 2026 07:28:55 +0000 [thread overview]
Message-ID: <20260805072856.19AD61F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260805-ad5529r-driver-v8-2-b41781f5632a@analog.com>
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [Low] The `default: 0` value for `spi-device-addr` is a scalar integer, which violates the underlying `uint32-array` type.
- [Low] The `spi-cpol` and `spi-cpha` properties are referenced in dependencies but are omitted from the properties block.
- [Low] The use of `additionalProperties: false` in the channel node incorrectly restricts inherited properties from `dac.yaml`.
- [Low] The `default` annotations inside the `items` array for `output-range-microvolt` are ineffective.
--
--- Patch [2]: [PATCH v8 2/3] dt-bindings: iio: dac: Add AD5529R ---
commit c7fd92093d1e8febbb573957a72221de0c72a60c
Author: Janani Sunil <janani.sunil@analog.com>
dt-bindings: iio: dac: Add AD5529R
Devicetree bindings for AD5529R 16 channel 12/16 bit high voltage,
buffered voltage output digital-to-analog converter (DAC) with an
integrated precision reference.
> diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5529r.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5529r.yaml
> new file mode 100644
> index 0000000000000..9c390d460e5ff
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5529r.yaml
[ ... ]
> + spi-device-addr:
> + minItems: 1
> + maxItems: 4
> + items:
> + enum: [0, 1, 2, 3]
> + default: 0
[Severity: Low]
Does this default value need to be an array (e.g., [0]) to conform to the
uint32-array type defined in spi-peripheral-props.yaml? A scalar value might
cause schema validation to fail for bindings relying on this default.
[ ... ]
> + output-range-microvolt:
> + description:
> + Output voltage range for this channel as [min, max] in
> + microvolts.
> + oneOf:
> + - items:
> + - const: 0
> + default: 0
> + - enum: [5000000, 10000000, 20000000, 40000000]
> + default: 5000000
[Severity: Low]
Should the default keyword be declared at the property level
(e.g., default: [0, 5000000]) rather than inside the items elements?
It seems the schema tooling will not provide a default value when the
property is omitted if it is structured this way.
[ ... ]
> + required:
> + - reg
> +
> + additionalProperties: false
[Severity: Low]
Should this be unevaluatedProperties: false instead?
In JSON schema, additionalProperties: false does not see through the $ref to
dac.yaml. This would cause common DAC channel properties inherited from
dac.yaml to be erroneously rejected by validation.
[ ... ]
> +dependencies:
> + spi-cpha: [ spi-cpol ]
> + spi-cpol: [ spi-cpha ]
> +
> +allOf:
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> +
> +unevaluatedProperties: false
[Severity: Low]
Are spi-cpol and spi-cpha missing from the local properties block?
Since they are referenced in dependencies but not explicitly declared, device
trees configuring SPI Mode 3 might fail static validation due to
unevaluatedProperties: false not seeing them.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260805-ad5529r-driver-v8-0-b41781f5632a@analog.com?part=2
next prev parent reply other threads:[~2026-08-05 7:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 7:17 [PATCH v8 0/3] iio: dac: Add support for AD5529R DAC Janani Sunil
2026-08-05 7:17 ` Janani Sunil
2026-08-05 7:17 ` [PATCH v8 1/3] spi: dt-bindings: Add spi-device-addr peripheral property Janani Sunil
2026-08-05 7:17 ` Janani Sunil
2026-08-05 7:17 ` [PATCH v8 2/3] dt-bindings: iio: dac: Add AD5529R Janani Sunil
2026-08-05 7:17 ` Janani Sunil
2026-08-05 7:28 ` sashiko-bot [this message]
2026-08-05 16:29 ` Conor Dooley
2026-08-05 16:29 ` Conor Dooley
2026-08-05 7:17 ` [PATCH v8 3/3] iio: dac: Add AD5529R DAC driver support Janani Sunil
2026-08-05 7:17 ` Janani Sunil
2026-08-05 7:31 ` sashiko-bot
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=20260805072856.19AD61F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=janani.sunil@analog.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.