Lines Matching +full:key +full:- +full:up

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#
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|switch))$":
35 - items:
36 - description: Optional key interrupt or wakeup interrupt
37 - items:
38 - description: Key interrupt
39 - description: Wakeup interrupt
41 interrupt-names:
44 wake-up interrupt in addition to the gpio irq
46 - items:
47 - enum: [ irq, wakeup ]
48 - items:
49 - const: irq
50 - const: wakeup
53 description: Descriptive name of the key.
56 description: Key / Axis code to emit.
58 linux,input-type:
61 linux,input-value:
63 If linux,input-type is EV_ABS or EV_REL then this
66 when all buttons with linux,input-type == type and
69 value of -1 use:
71 linux,input-value = <0xffffffff>; /* -1 */
75 debounce-interval:
82 wakeup-source:
83 description: Button can wake-up the system.
85 wakeup-event-action:
87 Specifies whether the key should wake the system when asserted, when
88 deasserted, or both. This property is only valid for keys that wake up the
89 system (e.g., when the "wakeup-source" property is also provided).
91 Supported values are defined in linux-event-codes.h:
93 EV_ACT_ANY - both asserted and deasserted
94 EV_ACT_ASSERTED - asserted
95 EV_ACT_DEASSERTED - deasserted
99 linux,can-disable:
106 - linux,code
109 - required:
110 - interrupts
111 - required:
112 - interrupts-extended
113 - required:
114 - gpios
117 - if:
122 - interrupts
125 interrupt-names:
128 - interrupt-names
131 wakeup-event-action: [ wakeup-source ]
132 linux,input-value: [ gpios ]
137 - $ref: input.yaml#
138 - if:
141 const: gpio-keys-polled
144 - poll-interval
147 poll-interval: false
152 - |
153 #include <dt-bindings/interrupt-controller/irq.h>
155 gpio-keys {
156 compatible = "gpio-keys";
159 key-up {
160 label = "GPIO Key UP";
165 key-down {
166 label = "GPIO Key DOWN";
171 key-wakeup {
172 label = "GPIO Key WAKEUP";
174 interrupts-extended = <&intc 2 IRQ_TYPE_EDGE_FALLING>,
176 interrupt-names = "irq", "wakeup";
177 wakeup-source;