summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/input/input.yaml
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2022-06-08 23:12:06 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-07-09 00:17:55 +0200
commit75448ff73f5ecfdfa867cbd0bd2cecc71f950978 (patch)
tree8028da08b62058d5f4b8b8f9dfff78f05a3d99a7 /Documentation/devicetree/bindings/input/input.yaml
parentdt-bindings: input: Use common 'linux,keycodes' definition (diff)
downloadlinux-75448ff73f5ecfdfa867cbd0bd2cecc71f950978.tar.xz
linux-75448ff73f5ecfdfa867cbd0bd2cecc71f950978.zip
dt-bindings: input: Centralize 'linux,input-type' definition
Multiple bindings use 'linux,input-type', but there is not a central definition and type. Add 'linux,input-type' to input.yaml and update all the users to use it. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Jeff LaBundy <jeff@labundy.com> Link: https://lore.kernel.org/r/20220608211207.2058487-5-robh@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/input.yaml')
-rw-r--r--Documentation/devicetree/bindings/input/input.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/input.yaml b/Documentation/devicetree/bindings/input/input.yaml
index e3701a0bc500..17512f4347fd 100644
--- a/Documentation/devicetree/bindings/input/input.yaml
+++ b/Documentation/devicetree/bindings/input/input.yaml
@@ -31,6 +31,17 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
maximum: 0x2ff
+ linux,input-type:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum:
+ - 1 # EV_KEY
+ - 2 # EV_REL
+ - 3 # EV_ABS
+ - 5 # EV_SW
+ description:
+ Specifies whether the event is to be interpreted as a key, relative,
+ absolute, or switch.
+
poll-interval:
description: Poll interval time in milliseconds.
$ref: /schemas/types.yaml#/definitions/uint32
@@ -47,4 +58,7 @@ properties:
reset automatically. Device with key pressed reset feature can specify
this property.
+dependencies:
+ linux,input-type: [ "linux,code" ]
+
additionalProperties: true