From: sashiko-bot@kernel.org
To: "Janani Sunil" <janani.sunil@analog.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v9 2/3] dt-bindings: iio: dac: Add AD5529R
Date: Thu, 20 Aug 2026 07:19:35 +0000 [thread overview]
Message-ID: <20260820071935.C517D1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260820-ad5529r-driver-v9-2-ba62e0b2a816@analog.com>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Low] The `spi-device-addr` property specifies a default value of integer `0`, but it is typed as a `uint32-array` in standard SPI bindings, causing schema validation to fail.
- [Low] The `default` values for `output-range-microvolt` are incorrectly placed inside the tuple `items` definition, rendering them ineffective in Device Tree schemas.
- [Low] The child node schema uses `additionalProperties: false` alongside a `$ref: dac.yaml` reference, which improperly rejects inherited standard properties like `label`.
--
--- Patch [2]: [PATCH v9 2/3] dt-bindings: iio: dac: Add AD5529R ---
commit 8e1fecbc9f92b4d6893726d1c141e8c978f52489
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 cause schema validation to fail?
Since this property can contain multiple items, standard SPI bindings
often type these as a uint32-array. Should the default be formatted
as an array like default: [0] instead of a scalar integer 0?
> + description:
> + Hardware address of each device, selected by the ID0 and ID1 pins.
> + Up to four AD5529R devices can share a single SPI chip select.
[ ... ]
> + "^channel@([0-9a-f]{1,2})$":
> + $ref: dac.yaml
> + type: object
> + description: Child nodes for individual channel configuration
> +
> + properties:
> + reg:
> + description:
> + Flattened channel number across all AD5529R devices sharing the chip
> + select. Within each 16-channel block, the physical channel number is reg % 16.
> + minimum: 0
> + maximum: 63
> +
> + 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]
Are these default values correctly placed?
Placing the default keyword inside the tuple items definition generally
renders them ineffective in Device Tree schemas when the property is
entirely omitted.
Should the default be applied to the property as a whole instead?
> + - items:
> + - const: -5000000
> + - const: 5000000
[ ... ]
> + required:
> + - reg
> +
> + additionalProperties: false
[Severity: Low]
Will this additionalProperties: false constraint improperly reject standard
properties?
Since this child node includes a $ref: dac.yaml reference earlier in the
block, this constraint typically prevents the use of inherited properties
like label and causes schema validation errors.
Should this be unevaluatedProperties: false instead?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260820-ad5529r-driver-v9-0-ba62e0b2a816@analog.com?part=2
next prev parent reply other threads:[~2026-08-20 7:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 7:08 [PATCH v9 0/3] iio: dac: Add support for AD5529R DAC Janani Sunil
2026-08-20 7:08 ` [PATCH v9 1/3] spi: dt-bindings: Add spi-device-addr peripheral property Janani Sunil
2026-08-20 7:08 ` [PATCH v9 2/3] dt-bindings: iio: dac: Add AD5529R Janani Sunil
2026-08-20 7:19 ` sashiko-bot [this message]
2026-08-20 7:08 ` [PATCH v9 3/3] iio: dac: Add AD5529R DAC driver support Janani Sunil
2026-08-20 7:23 ` 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=20260820071935.C517D1F00A3A@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox