Re: [PATCH v2 01/19] dt-bindings: iio: resolver: add devicetree bindings for ad2s1210

From: David Lechner
Date: Mon Sep 25 2023 - 13:48:08 EST


On Sun, Sep 24, 2023 at 11:57 AM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
>
> On Thu, 21 Sep 2023 09:43:42 -0500
> David Lechner <dlechner@xxxxxxxxxxxx> wrote:
>
...
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - spi-cpha
> > + - clocks
> > + - sample-gpios
> > + - assigned-resolution-bits
> > +
> > +oneOf:
> > + - required:
> > + - mode-gpios
> > + - required:
> > + - adi,fixed-mode
> I think this allows for both. It's fiddlier to exclude that but would be a nice
> to have perhaps rather than relying on text above that says 'don't do it'.
>

example-schema.yaml says that oneOf is XOR (anyOf is OR and would
allow both).