Re: [PATCH v5 2/3] dt-bindings: iio: dac: Add AD5529R
From: Jonathan Cameron
Date: Wed Jul 01 2026 - 14:41:13 EST
On Wed, 1 Jul 2026 08:40:40 +0200
Janani Sunil <janani.sunil@xxxxxxxxxx> wrote:
> Devicetree bindings for AD5529R 16 channel 12/16 bit high voltage,
> buffered voltage output digital-to-analog converter (DAC) with an
> integrated precision reference.
>
> Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>
Putting aside our device address discussions as being handled elsewhere
one minor thing inline
> 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 000000000000..97075b1c919d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5529r.yaml
> +properties:
> +patternProperties:
> + "^channel@([0-9a-f]{1,2})$":
> + type: object
> + description: Child nodes for individual channel configuration
> +
> + properties:
> + adi,output-range-microvolt:
> + description: |
> + Output voltage range for this channel as [min, max] in microvolts.
> + If not specified, defaults to 0V to 5V range.
No way to specify the default as part of the binding rather than a comment?
I haven't checked but does
default: [0 5000000]
not work?
> + oneOf:
> + - items:
> + - const: 0
> + - enum: [5000000, 10000000, 20000000, 40000000]
> + - items:
> + - const: -5000000
> + - const: 5000000
> + - items:
> + - const: -10000000
> + - const: 10000000
> + - items:
> + - const: -15000000
> + - const: 15000000
> + - items:
> + - const: -20000000
> + - const: 20000000
> +
> + required:
> + - reg
> +
> + additionalProperties: false