Path: blob/master/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/mediatek,pmic-keys.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: MediaTek PMIC Keys78maintainers:9- Chen Zhong <chen.zhong@mediatek.com>1011allOf:12- $ref: input.yaml#1314description: |15There are two key functions provided by MT6397, MT6323 and other MediaTek16PMICs: pwrkey and homekey.17The key functions are defined as the subnode of the function node provided18by the PMIC that is defined as a Multi-Function Device (MFD).1920For MediaTek MT6323/MT6397 PMIC bindings see21Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml2223properties:24compatible:25enum:26- mediatek,mt6323-keys27- mediatek,mt6328-keys28- mediatek,mt6331-keys29- mediatek,mt6357-keys30- mediatek,mt6358-keys31- mediatek,mt6359-keys32- mediatek,mt6397-keys3334power-off-time-sec: true3536mediatek,long-press-mode:37description: |38Key long-press force shutdown setting390 - disabled401 - pwrkey412 - pwrkey+homekey42$ref: /schemas/types.yaml#/definitions/uint3243default: 044maximum: 24546patternProperties:47"^((power|home)|(key-[a-z0-9-]+|[a-z0-9-]+-key))$":48$ref: input.yaml#4950properties:51interrupts:52minItems: 153items:54- description: Key press interrupt55- description: Key release interrupt5657interrupt-names: true5859linux,keycodes:60maxItems: 16162wakeup-source: true6364required:65- linux,keycodes6667if:68properties:69interrupt-names:70contains:71const: powerkey72then:73properties:74interrupt-names:75minItems: 176items:77- const: powerkey78- const: powerkey_r79else:80properties:81interrupt-names:82minItems: 183items:84- const: homekey85- const: homekey_r8687unevaluatedProperties: false8889required:90- compatible9192unevaluatedProperties: false9394...959697