[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE-0n53v4Ts0D=FUZwCHa-q0gkQnujPWvvq+_8zZmYaAozcVAw@mail.gmail.com>
Date: Wed, 15 Jun 2022 17:50:09 -0700
From: Stephen Boyd <swboyd@...omium.org>
To: Doug Anderson <dianders@...omium.org>
Cc: Benson Leung <bleung@...omium.org>,
LKML <linux-kernel@...r.kernel.org>, patches@...ts.linux.dev,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
devicetree@...r.kernel.org, chrome-platform@...ts.linux.dev,
Guenter Roeck <groeck@...omium.org>,
Craig Hesling <hesling@...omium.org>,
Tom Hughes <tomhughes@...omium.org>,
Alexandru M Stan <amstan@...omium.org>,
Tzung-Bi Shih <tzungbi@...nel.org>,
Matthias Kaehlcke <mka@...omium.org>,
Lee Jones <lee.jones@...aro.org>
Subject: Re: [PATCH v6 2/2] dt-bindings: cros-ec: Add ChromeOS fingerprint binding
Quoting Doug Anderson (2022-06-14 15:41:25)
> On Tue, Jun 14, 2022 at 12:51 PM Stephen Boyd <swboyd@...omium.org> wrote:
> > +
> > +select:
> > + properties:
> > + compatible:
> > + contains:
> > + const: google,cros-ec-spi
> > + required:
> > + - compatible
> > + - boot0-gpios
>
> I've never personally used "select" before and I'm not sure where it's
> documented. Without knowing anything, it seems weird to me that in
> this file we're matching against a compatible that's not
> google,cros-ec-fp. Randomly grabbing some other example that's similar
> (panel-lvds.yaml) looks more like what I would have expected. AKA in
> this file:
>
> select:
> properties:
> compatible:
> contains:
> const: google,cros-ec-fp
> required:
> - compatible
>
> ...and then in the other file:
>
> select:
> properties:
> compatible:
> contains:
> const: google,cros-ec-spi
> not:
> properties:
> compatible:
> contains:
> const: google,cros-ec-fp
> required:
> - compatible
>
>
> Of course, if one of the dt maintainers gives different advice then
> listen to them. ;-)
>
I followed a pwm example, see renesas,tpu-pwm.yaml, but I suspect this
works just as well. I don't really care either way so I'll defer to DT
maintainers here.
Powered by blists - more mailing lists