Lines Matching +full:key +full:- +full:code
1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Device-Tree bindings for GPIO attached keys
10 - Rob Herring <robh@kernel.org>
15 - gpio-keys
16 - gpio-keys-polled
23 poll-interval: true
26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc…
37 description: Descriptive name of the key.
39 linux,code:
40 description: Key / Axis code to emit.
42 linux,input-type:
45 linux,input-value:
47 If linux,input-type is EV_ABS or EV_REL then this
50 when all buttons with linux,input-type == type and
51 linux,code == axis are released. This value is interpreted
53 value of -1 use:
55 linux,input-value = <0xffffffff>; /* -1 */
59 debounce-interval:
66 wakeup-source:
67 description: Button can wake-up the system.
69 wakeup-event-action:
71 Specifies whether the key should wake the system when asserted, when
73 system (e.g., when the "wakeup-source" property is also provided).
75 Supported values are defined in linux-event-codes.h:
77 EV_ACT_ANY - both asserted and deasserted
78 EV_ACT_ASSERTED - asserted
79 EV_ACT_DEASSERTED - deasserted
83 linux,can-disable:
90 - linux,code
93 - required:
94 - interrupts
95 - required:
96 - interrupts-extended
97 - required:
98 - gpios
101 wakeup-event-action: [ wakeup-source ]
102 linux,input-value: [ gpios ]
107 - $ref: input.yaml#
108 - if:
111 const: gpio-keys-polled
114 - poll-interval
117 poll-interval: false
122 - |
123 #include <dt-bindings/interrupt-controller/irq.h>
125 gpio-keys {
126 compatible = "gpio-keys";
129 key-up {
130 label = "GPIO Key UP";
131 linux,code = <103>;
135 key-down {
136 label = "GPIO Key DOWN";
137 linux,code = <108>;