1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/mediatek,pmic-keys.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek PMIC Keys
10 - Chen Zhong <chen.zhong@mediatek.com>
16 There are two key functions provided by MT6397, MT6323 and other MediaTek
17 PMICs: pwrkey and homekey.
18 The key functions are defined as the subnode of the function node provided
19 by the PMIC that is defined as a Multi-Function Device (MFD).
21 For MediaTek MT6323/MT6397 PMIC bindings see
22 Documentation/devicetree/bindings/mfd/mt6397.txt
27 - mediatek,mt6323-keys
28 - mediatek,mt6331-keys
29 - mediatek,mt6358-keys
30 - mediatek,mt6397-keys
32 power-off-time-sec: true
34 mediatek,long-press-mode:
36 Key long-press force shutdown setting
40 $ref: /schemas/types.yaml#/definitions/uint32
45 "^((power|home)|(key-[a-z0-9-]+|[a-z0-9-]+-key))$":
52 - description: Key press interrupt
53 - description: Key release interrupt
85 unevaluatedProperties: false
90 unevaluatedProperties: false
94 #include <dt-bindings/input/input.h>
95 #include <dt-bindings/interrupt-controller/arm-gic.h>
98 compatible = "mediatek,mt6397";
101 compatible = "mediatek,mt6397-keys";
102 mediatek,long-press-mode = <1>;
103 power-off-time-sec = <0>;
106 linux,keycodes = <KEY_POWER>;
111 linux,keycodes = <KEY_VOLUMEDOWN>;