From: sashiko-bot@kernel.org
To: "Janani Sunil" <janani.sunil@analog.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v5 2/3] dt-bindings: iio: dac: Add AD5529R
Date: Wed, 01 Jul 2026 06:52:26 +0000 [thread overview]
Message-ID: <20260701065226.7735D1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260701-ad5529r-driver-v5-2-ed087900e642@analog.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The Device Tree binding incorrectly aggregates up to four separate physical AD5529R chips into a single logical DT node, misplacing the `spi,device-addr` property into individual IIO channel subnodes and extending the channel `reg` limit to 63.
--
commit 8170de6b140882817db48df2f479428c10fc9dbc
Author: Janani Sunil <janani.sunil@analog.com>
dt-bindings: iio: dac: Add AD5529R
This commit adds Devicetree bindings for the Analog Devices AD5529R, a
16-channel 12/16-bit high voltage DAC. It includes properties for
power supplies, PWM, GPIOs, and channel configurations.
> 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..97075b1c919d1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5529r.yaml
[ ... ]
> +patternProperties:
> + "^channel@([0-9a-f]{1,2})$":
> + type: object
> + description: Child nodes for individual channel configuration
> +
> + properties:
> + reg:
> + description: Channel number.
> + minimum: 0
> + maximum: 63
[Severity: High]
Does this topology correctly model the hardware? The AD5529R is a 16-channel
DAC, but setting the maximum to 63 implies flattening up to four separate
physical chips into a single logical Device Tree node.
By aggregating multiple chips into a single node, they are forced to share a
single reset-gpios, clear-gpios, and interrupts definition. If a board wires
these physical pins to different SoC GPIOs or interrupts for each chip, it
would be structurally impossible to describe that hardware using this binding.
> +
> + spi,device-addr:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1, 2, 3]
> + description:
> + Device address selected by the ID0 and ID1 pins. Up to four AD5529R
> + devices can share a single SPI chip select; each device responds only
> + to transfers whose address bits [13:12] match its configured address.
[Severity: High]
Should spi,device-addr be defined inside the channel subnode scope?
Since this property represents the physical ID0 and ID1 pins on the chip itself,
placing it in every single channel subnode seems semantically incorrect and
redundant. Should the child nodes represent the physical chips (allowing
per-chip physical properties like spi,device-addr and reset-gpios) rather than
flattening all channels across chips into one level?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701-ad5529r-driver-v5-0-ed087900e642@analog.com?part=2
next prev parent reply other threads:[~2026-07-01 6:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 6:40 [PATCH v5 0/3] iio: dac: Add support for AD5529R DAC Janani Sunil
2026-07-01 6:40 ` [PATCH v5 1/3] dt-bindings: spi: Add spi,device-addr peripheral property Janani Sunil
2026-07-01 6:52 ` sashiko-bot
2026-07-01 11:04 ` Conor Dooley
2026-07-01 18:29 ` Jonathan Cameron
2026-07-01 18:48 ` David Lechner
2026-07-01 20:31 ` Conor Dooley
2026-07-01 6:40 ` [PATCH v5 2/3] dt-bindings: iio: dac: Add AD5529R Janani Sunil
2026-07-01 6:52 ` sashiko-bot [this message]
2026-07-01 11:07 ` Conor Dooley
2026-07-01 18:41 ` Jonathan Cameron
2026-07-01 6:40 ` [PATCH v5 3/3] iio: dac: Add AD5529R DAC driver support Janani Sunil
2026-07-01 6:52 ` sashiko-bot
2026-07-01 9:17 ` Andy Shevchenko
2026-07-01 18:55 ` 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=20260701065226.7735D1F00A3D@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