Lines Matching +full:linux +full:- +full:keycodes
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/mediatek,pmic-keys.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen Zhong <chen.zhong@mediatek.com>
13 - $ref: input.yaml#
19 by the PMIC that is defined as a Multi-Function Device (MFD).
27 - mediatek,mt6323-keys
28 - mediatek,mt6331-keys
29 - mediatek,mt6357-keys
30 - mediatek,mt6358-keys
31 - mediatek,mt6397-keys
33 power-off-time-sec: true
35 mediatek,long-press-mode:
37 Key long-press force shutdown setting
38 0 - disabled
39 1 - pwrkey
40 2 - pwrkey+homekey
46 "^((power|home)|(key-[a-z0-9-]+|[a-z0-9-]+-key))$":
53 - description: Key press interrupt
54 - description: Key release interrupt
56 interrupt-names: true
58 linux,keycodes:
61 wakeup-source: true
64 - linux,keycodes
68 interrupt-names:
73 interrupt-names:
76 - const: powerkey
77 - const: powerkey_r
80 interrupt-names:
83 - const: homekey
84 - const: homekey_r
89 - compatible
94 - |
95 #include <dt-bindings/input/input.h>
96 #include <dt-bindings/interrupt-controller/arm-gic.h>
102 compatible = "mediatek,mt6397-keys";
103 mediatek,long-press-mode = <1>;
104 power-off-time-sec = <0>;
106 key-power {
107 linux,keycodes = <KEY_POWER>;
108 wakeup-source;
111 key-home {
112 linux,keycodes = <KEY_VOLUMEDOWN>;