2024-02-21 20:02:37

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v13 1/3] dt-bindings: adc: add AD7173


> >> +
> >> + diff-channels:
> >> + items:
> >> + minimum: 0
> >> + maximum: 31
> >> +
> >
> > Are we missing `bipolar: true` here? (since we have
> > unevaluatedProperties: false)
> >
>
> No, since we are referencing the adc schema "$ref: adc.yaml"
> Which contains:
> """
> bipolar:
>
> $ref: /schemas/types.yaml#/definitions/flag
>
> description: If provided, the channel is to be used in bipolar mode.
> """

FWIW, the difference here is whether or not the binding for the device
contains "additionalProperties: false" or "unevaluatedProperties: false".
The former requires "bipolar: true", the latter does not.

Cheers,
Conor.


Attachments:
(No filename) (706.00 B)
signature.asc (235.00 B)
Download all attachments