File tree Expand file tree Collapse file tree 9 files changed +27
-29
lines changed
Documentation/devicetree/bindings/input Expand file tree Collapse file tree 9 files changed +27
-29
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ additionalProperties: false
45
45
patternProperties :
46
46
" ^axis@[0-9a-f]+$ " :
47
47
type : object
48
+ $ref : input.yaml#
48
49
description : >
49
50
Represents a joystick axis bound to the given ADC channel.
50
51
For each entry in the io-channels list, one axis subnode with a matching
@@ -57,7 +58,6 @@ patternProperties:
57
58
description : Index of an io-channels list entry bound to this axis.
58
59
59
60
linux,code :
60
- $ref : /schemas/types.yaml#/definitions/uint32
61
61
description : EV_ABS specific event code generated by the axis.
62
62
63
63
abs-range :
Original file line number Diff line number Diff line change @@ -44,14 +44,13 @@ properties:
44
44
patternProperties :
45
45
" ^button-[0-9]+$ " :
46
46
type : object
47
+ $ref : input.yaml#
47
48
properties :
48
49
label :
49
50
$ref : /schemas/types.yaml#/definitions/string
50
51
description : Descriptive name of the key
51
52
52
- linux,code :
53
- $ref : /schemas/types.yaml#/definitions/uint32
54
- description : Keycode to emit
53
+ linux,code : true
55
54
56
55
channel :
57
56
$ref : /schemas/types.yaml#/definitions/uint32
Original file line number Diff line number Diff line change @@ -417,6 +417,7 @@ patternProperties:
417
417
patternProperties :
418
418
" ^event-(prox|touch)$ " :
419
419
type : object
420
+ $ref : input.yaml#
420
421
description :
421
422
Represents a proximity or touch event reported by the channel.
422
423
@@ -463,11 +464,7 @@ patternProperties:
463
464
The IQS7222B does not feature channel-specific timeouts; the time-
464
465
out specified for any one channel applies to all channels.
465
466
466
- linux,code :
467
- $ref : /schemas/types.yaml#/definitions/uint32
468
- description :
469
- Numeric key or switch code associated with the event. Specify
470
- KEY_RESERVED (0) to opt out of event reporting.
467
+ linux,code : true
471
468
472
469
linux,input-type :
473
470
$ref : /schemas/types.yaml#/definitions/uint32
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ patternProperties:
34
34
35
35
linux,code :
36
36
description : Key / Axis code to emit.
37
- $ref : /schemas/types.yaml#/definitions/uint32
38
37
39
38
linux,input-type :
40
39
description :
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ properties:
23
23
minimum : 0
24
24
maximum : 0x2ff
25
25
26
+ linux,code :
27
+ description :
28
+ Specifies a single numeric keycode value to be used for reporting
29
+ button/switch events. Specify KEY_RESERVED (0) to opt out of event
30
+ reporting.
31
+ $ref : /schemas/types.yaml#/definitions/uint32
32
+ maximum : 0x2ff
33
+
26
34
poll-interval :
27
35
description : Poll interval time in milliseconds.
28
36
$ref : /schemas/types.yaml#/definitions/uint32
Original file line number Diff line number Diff line change @@ -370,6 +370,7 @@ patternProperties:
370
370
patternProperties :
371
371
" ^event-prox(-alt)?$ " :
372
372
type : object
373
+ $ref : input.yaml#
373
374
description :
374
375
Represents a proximity event reported by the channel in response to
375
376
a decrease in counts. Node names suffixed with '-alt' instead corre-
@@ -396,14 +397,13 @@ patternProperties:
396
397
default : 10
397
398
description : Specifies the threshold for the event.
398
399
399
- linux,code :
400
- $ref : /schemas/types.yaml#/definitions/uint32
401
- description : Numeric key or switch code associated with the event.
400
+ linux,code : true
402
401
403
402
additionalProperties : false
404
403
405
404
" ^event-touch(-alt)?$ " :
406
405
type : object
406
+ $ref : input.yaml#
407
407
description : Represents a touch event reported by the channel.
408
408
409
409
properties :
@@ -421,14 +421,13 @@ patternProperties:
421
421
default : 4
422
422
description : Specifies the hysteresis for the event.
423
423
424
- linux,code :
425
- $ref : /schemas/types.yaml#/definitions/uint32
426
- description : Numeric key or switch code associated with the event.
424
+ linux,code : true
427
425
428
426
additionalProperties : false
429
427
430
428
" ^event-deep(-alt)?$ " :
431
429
type : object
430
+ $ref : input.yaml#
432
431
description : Represents a deep-touch event reported by the channel.
433
432
434
433
properties :
@@ -446,9 +445,7 @@ patternProperties:
446
445
default : 0
447
446
description : Specifies the hysteresis for the event.
448
447
449
- linux,code :
450
- $ref : /schemas/types.yaml#/definitions/uint32
451
- description : Numeric key or switch code associated with the event.
448
+ linux,code : true
452
449
453
450
additionalProperties : false
454
451
Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ patternProperties:
449
449
patternProperties :
450
450
" ^event-(prox|touch|deep)(-alt)?$ " :
451
451
type : object
452
+ $ref : input.yaml#
452
453
description :
453
454
Represents a proximity, touch or deep-touch event reported by the
454
455
channel in response to a decrease in counts. Node names suffixed with
@@ -487,9 +488,7 @@ patternProperties:
487
488
Specifies the hysteresis for the event (touch and deep-touch
488
489
events only).
489
490
490
- linux,code :
491
- $ref : /schemas/types.yaml#/definitions/uint32
492
- description : Numeric key or switch code associated with the event.
491
+ linux,code : true
493
492
494
493
linux,input-type :
495
494
$ref : /schemas/types.yaml#/definitions/uint32
Original file line number Diff line number Diff line change @@ -89,15 +89,14 @@ properties:
89
89
patternProperties :
90
90
" ^hall-switch-(north|south)$ " :
91
91
type : object
92
+ $ref : input.yaml#
92
93
description :
93
94
Represents north/south-field Hall-effect sensor touch or proximity
94
95
events. Note that north/south-field orientation is reversed on the
95
96
IQS620AXzCSR device due to its flip-chip package.
96
97
97
98
properties :
98
- linux,code :
99
- $ref : /schemas/types.yaml#/definitions/uint32
100
- description : Numeric switch code associated with the event.
99
+ linux,code : true
101
100
102
101
azoteq,use-prox :
103
102
$ref : /schemas/types.yaml#/definitions/flag
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ description: |
16
16
The onkey controller is represented as a sub-node of the PMIC node on
17
17
the device tree.
18
18
19
+ allOf :
20
+ - $ref : input.yaml#
21
+
19
22
properties :
20
23
compatible :
21
24
const : maxim,max77650-onkey
22
25
23
26
linux,code :
24
- $ref : /schemas/types.yaml#/definitions/uint32
25
- description :
26
- The key-code to be reported when the key is pressed. Defaults
27
- to KEY_POWER.
27
+ default : 116 # KEY_POWER
28
28
29
29
maxim,onkey-slide :
30
30
$ref : /schemas/types.yaml#/definitions/flag
You can’t perform that action at this time.
0 commit comments