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

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>

authored by

Rob Herring and committed by
Dmitry Torokhov
75448ff7 d853cec7

+15 -11
-1
Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
··· 467 467 linux,code: true 468 468 469 469 linux,input-type: 470 - $ref: /schemas/types.yaml#/definitions/uint32 471 470 enum: [1, 5] 472 471 default: 1 473 472 description:
+1 -6
Documentation/devicetree/bindings/input/gpio-keys.yaml
··· 36 36 description: Key / Axis code to emit. 37 37 38 38 linux,input-type: 39 - description: 40 - Specify event type this button/key generates. If not specified defaults to 41 - <1> == EV_KEY. 42 - $ref: /schemas/types.yaml#/definitions/uint32 43 - 44 - default: 1 39 + default: 1 # EV_KEY 45 40 46 41 linux,input-value: 47 42 description: |
+14
Documentation/devicetree/bindings/input/input.yaml
··· 31 31 $ref: /schemas/types.yaml#/definitions/uint32 32 32 maximum: 0x2ff 33 33 34 + linux,input-type: 35 + $ref: /schemas/types.yaml#/definitions/uint32 36 + enum: 37 + - 1 # EV_KEY 38 + - 2 # EV_REL 39 + - 3 # EV_ABS 40 + - 5 # EV_SW 41 + description: 42 + Specifies whether the event is to be interpreted as a key, relative, 43 + absolute, or switch. 44 + 34 45 poll-interval: 35 46 description: Poll interval time in milliseconds. 36 47 $ref: /schemas/types.yaml#/definitions/uint32 ··· 57 46 Duration in seconds which the key should be kept pressed for device to 58 47 reset automatically. Device with key pressed reset feature can specify 59 48 this property. 49 + 50 + dependencies: 51 + linux,input-type: [ "linux,code" ] 60 52 61 53 additionalProperties: true
-4
Documentation/devicetree/bindings/input/iqs626a.yaml
··· 491 491 linux,code: true 492 492 493 493 linux,input-type: 494 - $ref: /schemas/types.yaml#/definitions/uint32 495 494 enum: [1, 5] 496 495 description: 497 496 Specifies whether the event is to be interpreted as a key (1) or 498 497 a switch (5). By default, Hall-channel events are interpreted as 499 498 switches and all others are interpreted as keys. 500 - 501 - dependencies: 502 - linux,input-type: ["linux,code"] 503 499 504 500 additionalProperties: false 505 501