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

From: Conor Dooley
Date: Wed Feb 21 2024 - 15:02:34 EST



> >> +
> >> + 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.

Attachment: signature.asc
Description: PGP signature