Re: [PATCH v5 2/3] dt-bindings: iio: dac: Add AD5529R

From: David Lechner

Date: Fri Jul 03 2026 - 11:05:24 EST


On 7/3/26 5:01 AM, Janani Sunil wrote:
>
> On 7/1/26 20:41, Jonathan Cameron wrote:
>> On Wed, 1 Jul 2026 08:40:40 +0200
>> Janani Sunil <janani.sunil@xxxxxxxxxx> wrote:
>>
>>
>>> +      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?
>
> Tried that approach. But the dt binding check does not accept default for this DT cell-array property.
>

Wouldn't it have to be written like:

adi,output-range-microvolt:
...
items:
- enum: [...]
default: 0
- enum: [...]
default: 5000000