Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220705120356.94876-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Krzysztof Kozlowski and committed by
Dmitry Torokhov
005d4674 5eb56522

+19 -13
+19 -13
Documentation/devicetree/bindings/input/gpio-keys.yaml
··· 15 15 - gpio-keys 16 16 - gpio-keys-polled 17 17 18 + autorepeat: true 19 + 20 + label: 21 + description: Name of entire device 22 + 23 + poll-interval: true 24 + 18 25 patternProperties: 19 26 "^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$": 20 27 $ref: input.yaml# ··· 101 94 102 95 unevaluatedProperties: false 103 96 104 - if: 105 - properties: 106 - compatible: 107 - const: gpio-keys-polled 108 - then: 109 - properties: 110 - poll-interval: 111 - description: 112 - Poll interval time in milliseconds 113 - $ref: /schemas/types.yaml#/definitions/uint32 114 - 115 - required: 116 - - poll-interval 97 + allOf: 98 + - $ref: input.yaml# 99 + - if: 100 + properties: 101 + compatible: 102 + const: gpio-keys-polled 103 + then: 104 + required: 105 + - poll-interval 106 + else: 107 + properties: 108 + poll-interval: false 117 109 118 110 additionalProperties: false 119 111