All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Janani Sunil" <janani.sunil@analog.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v11 2/3] dt-bindings: iio: dac: Add AD5529R
Date: Wed, 02 Sep 2026 09:36:45 +0000	[thread overview]
Message-ID: <20260902093646.078221F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260902-ad5529r-driver-v11-2-301c491a0719@analog.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Schema incorrectly rejects standard properties from referenced schema
- [Low] Default value type mismatch for `spi-device-addr` array property
--

commit 1e8f5824a0d1b32d0615a8c9004b4c48496e77b0
Author: Janani Sunil <janani.sunil@analog.com>
Subject: dt-bindings: iio: dac: Add AD5529R

This commit adds device tree bindings for the Analog Devices AD5529R 
16-channel 12/16-bit high voltage DAC. It includes documentation for the 
SPI interface, power supplies, and individual channel configuration.

> 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]
Will this default value cause a schema validation warning?

Since spi-device-addr is defined as an array in the standard spi
peripheral properties (/schemas/spi/spi-peripheral-props.yaml), assigning
a scalar integer (0) as the default violates the array type expectation.

Should this be expressed as an array instead, such as default: [0]?

[ ... ]
> +patternProperties:
> +  "^channel@([0-9a-f]{1,2})$":
> +    $ref: dac.yaml
> +    type: object
> +    description: Child nodes for individual channel configuration
[ ... ]
> +    required:
> +      - reg
> +
> +    additionalProperties: false

[Severity: Medium]
Will this incorrectly block standard properties defined in dac.yaml from
being used in the child nodes?

Using additionalProperties: false here only considers the explicitly listed
local properties (reg and output-range-microvolt). If a device tree
includes standard IIO DAC properties (like label) defined in dac.yaml,
they will be rejected and cause false-positive validation errors during
dtbs_check.

Should this use unevaluatedProperties: false instead to properly validate
local properties alongside the referenced properties?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260902-ad5529r-driver-v11-0-301c491a0719@analog.com?part=2

  reply	other threads:[~2026-09-02  9:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02  9:26 [PATCH v11 0/3] iio: dac: Add support for AD5529R DAC Janani Sunil
2026-09-02  9:26 ` Janani Sunil
2026-09-02  9:26 ` [PATCH v11 1/3] spi: dt-bindings: Add spi-device-addr peripheral property Janani Sunil
2026-09-02  9:26   ` Janani Sunil
2026-09-02  9:26 ` [PATCH v11 2/3] dt-bindings: iio: dac: Add AD5529R Janani Sunil
2026-09-02  9:26   ` Janani Sunil
2026-09-02  9:36   ` sashiko-bot [this message]
2026-09-02  9:26 ` [PATCH v11 3/3] iio: dac: Add AD5529R DAC driver support Janani Sunil
2026-09-02  9:26   ` Janani Sunil
2026-09-02  9:39   ` sashiko-bot
2026-09-02 11:04   ` Andy Shevchenko
2026-09-02 11:04     ` Andy Shevchenko
2026-09-02 12:56   ` Andy Shevchenko
2026-09-02 12:56     ` Andy Shevchenko
2026-09-06 21:24     ` Jonathan Cameron
2026-09-06 21:24       ` 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=20260902093646.078221F000E9@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.