File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed
Documentation/devicetree/bindings/input Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,6 @@ patternProperties:
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 :
Original file line number Diff line number Diff line change @@ -36,12 +36,7 @@ patternProperties:
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 : |
Original file line number Diff line number Diff line change @@ -31,6 +31,17 @@ properties:
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
@@ -47,4 +58,7 @@ properties:
47
58
reset automatically. Device with key pressed reset feature can specify
48
59
this property.
49
60
61
+ dependencies :
62
+ linux,input-type : [ "linux,code" ]
63
+
50
64
additionalProperties : true
Original file line number Diff line number Diff line change @@ -491,16 +491,12 @@ patternProperties:
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
499
501
- dependencies :
502
- linux,input-type : ["linux,code"]
503
-
504
500
additionalProperties : false
505
501
506
502
dependencies :
You can’t perform that action at this time.
0 commit comments