Commit 005d4674 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Dmitry Torokhov

dt-bindings: input: gpio-keys: reference input.yaml and document properties

The original text bindings documented "autorepeat" and "label"
properties (in the device node, beside the nodes with keys).  DTS use
also poll-interval.  Reference the input.yaml to get these top-level
properties.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220705120356.94876-3-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 5eb56522
...@@ -15,6 +15,13 @@ properties: ...@@ -15,6 +15,13 @@ properties:
- gpio-keys - gpio-keys
- gpio-keys-polled - gpio-keys-polled
autorepeat: true
label:
description: Name of entire device
poll-interval: true
patternProperties: patternProperties:
"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$": "^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$":
$ref: input.yaml# $ref: input.yaml#
...@@ -94,19 +101,18 @@ patternProperties: ...@@ -94,19 +101,18 @@ patternProperties:
unevaluatedProperties: false unevaluatedProperties: false
if: allOf:
properties: - $ref: input.yaml#
compatible: - if:
const: gpio-keys-polled properties:
then: compatible:
properties: const: gpio-keys-polled
poll-interval: then:
description: required:
Poll interval time in milliseconds - poll-interval
$ref: /schemas/types.yaml#/definitions/uint32 else:
properties:
required: poll-interval: false
- poll-interval
additionalProperties: false additionalProperties: false
......
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