From: "Ricardo Cañuelo" <ricardo.canuelo@collabora.com>
To: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Cc: robh@kernel.org, kernel@collabora.com, bleung@chromium.org,
groeck@chromium.org, sjg@chromium.org, dianders@chromium.org,
devicetree@vger.kernel.org,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: [PATCH 2/3] dt-bindings: input: convert cros-ec-keyb to json-schema
Date: Mon, 5 Oct 2020 11:35:14 +0200 [thread overview]
Message-ID: <20201005093514.kvgniedeu2ltj3pp@rcn-XPS-13-9360> (raw)
In-Reply-To: <3f30a00e-8b1c-4ac7-c5ed-8f23c7af9af0@collabora.com>
Hi Enric,
Thanks for reviewing the patch and for your suggestions. I'll prepare a
new series with the fixes.
On lun 05-10-2020 11:03:54, Enric Balletbo i Serra wrote:
> Note that there was already an attempt for this here [1]. So I think you should
> address those comments too.
>
> cc'ing Dmitry as he is the input maintainer.
>
> [1] https://patchwork.kernel.org/patch/11350059/
Thanks, I wasn't aware of that.
> > +unevaluatedProperties: false
> > +
>
> Not sure about unevaluatedProperties does here, I might miss something. But,
> shouldn't you add `additionalProperties: false` instead?
The idea of using this came from
Documentation/devicetree/bindings/example-schema.yaml, when it explains
the "additionalProperties: false" line:
This can't be used in cases where another schema is referenced
(i.e. allOf: [{$ref: ...}]). If and only if another schema is
referenced and arbitrary children nodes can appear,
"unevaluatedProperties: false" could be used. Typical example is
I2C controller where no name pattern matching for children can be
added.
This binding references matrix-keymap.yaml and it may use some
properties defined in it (although they're not
subnodes). bindings/input/imx-keypad.yaml does the same.
The alternative would be to define "additionalProperties: false" and
redefine the matrix-keymap properties used in this binding too
(keypad,num-rows keypad,num-columns and linux,keymap). Or to ditch
"additionalProperties: false" altogether, but I don't think that's a
proper solution.
> > +examples:
> > + - |
> > + cros-ec-keyb {
>
> The keyboard controller is always a subnode inside the cros_ec, please use a
> complete example.
Ok, I'll do that.
Cheers,
Ricardo
next prev parent reply other threads:[~2020-10-05 9:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-05 7:13 [PATCH 0/3] Fix checker warnings related to cros-ec binding Ricardo Cañuelo
2020-10-05 7:14 ` [PATCH 1/3] dt-bindings: i2c: convert i2c-cros-ec-tunnel to json-schema Ricardo Cañuelo
2020-10-05 8:52 ` Enric Balletbo i Serra
2020-10-05 9:18 ` Ricardo Cañuelo
2020-10-05 9:27 ` Enric Balletbo i Serra
2020-10-05 14:04 ` Rob Herring
2020-10-05 7:14 ` [PATCH 2/3] dt-bindings: input: convert cros-ec-keyb " Ricardo Cañuelo
2020-10-05 9:03 ` Enric Balletbo i Serra
2020-10-05 9:35 ` Ricardo Cañuelo [this message]
2020-10-05 7:14 ` [PATCH 3/3] dt-bindings: mfd: google,cros-ec: add missing properties Ricardo Cañuelo
2020-10-05 9:23 ` Enric Balletbo i Serra
2020-10-05 9:48 ` Ricardo Cañuelo
2020-10-05 15:37 ` Rob Herring
2020-10-05 15:48 ` Enric Balletbo i Serra
2020-10-06 6:13 ` Ricardo Cañuelo
2020-10-06 11:28 ` Guenter Roeck
2020-10-06 13:07 ` Ricardo Cañuelo
2020-10-06 21:35 ` Rob Herring
2020-10-07 6:31 ` Ricardo Cañuelo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201005093514.kvgniedeu2ltj3pp@rcn-XPS-13-9360 \
--to=ricardo.canuelo@collabora.com \
--cc=bleung@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=dmitry.torokhov@gmail.com \
--cc=enric.balletbo@collabora.com \
--cc=groeck@chromium.org \
--cc=kernel@collabora.com \
--cc=robh@kernel.org \
--cc=sjg@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).