Commit d95bca4f authored by Stephen Boyd's avatar Stephen Boyd Committed by Dmitry Torokhov

dt-bindings: google,cros-ec-keyb: Fixup bad compatible match

This uses anyOf which is wrong. Use oneOf and move the items under the
description. Also drop allOf for $ref.
Reported-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/CAE-0n50KE9bkqZvCOLtCGiq3g1jYhK7zpVcVFBzinaguNhNaPw@mail.gmail.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent ca1eadbf
......@@ -20,13 +20,11 @@ description: |
properties:
compatible:
anyOf:
oneOf:
- description: ChromeOS EC with only buttons/switches
- items:
- const: google,cros-ec-keyb-switches
const: google,cros-ec-keyb-switches
- description: ChromeOS EC with keyboard and possibly buttons/switches
- items:
- const: google,cros-ec-keyb
const: google,cros-ec-keyb
google,needs-ghost-filter:
description:
......@@ -58,8 +56,7 @@ if:
contains:
const: google,cros-ec-keyb
then:
allOf:
- $ref: "/schemas/input/matrix-keymap.yaml#"
$ref: "/schemas/input/matrix-keymap.yaml#"
required:
- keypad,num-rows
- keypad,num-columns
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment