1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/qcom,pm8921-keypad.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm PM8921 PMIC KeyPad
10 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
14 - $ref: matrix-keymap.yaml#
27 - description: key sense
28 - description: key stuck
32 description: use any event on keypad as wakeup event
37 description: legacy version of the wakeup-source property
41 Time in microseconds that key must be pressed or
42 released for state change interrupt to trigger.
43 $ref: /schemas/types.yaml#/definitions/uint32
46 $ref: /schemas/types.yaml#/definitions/uint32
47 description: time in microseconds to pause between successive scans of the
51 $ref: /schemas/types.yaml#/definitions/uint32
52 description: time in nanoseconds to pause between scans of each row in the
61 unevaluatedProperties: false
65 #include <dt-bindings/input/input.h>
66 #include <dt-bindings/interrupt-controller/irq.h>
72 compatible = "qcom,pm8921-keypad";
74 interrupt-parent = <&pmicintc>;
75 interrupts = <74 IRQ_TYPE_EDGE_RISING>, <75 IRQ_TYPE_EDGE_RISING>;
77 MATRIX_KEY(0, 0, KEY_VOLUMEUP)
78 MATRIX_KEY(0, 1, KEY_VOLUMEDOWN)
79 MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS)
80 MATRIX_KEY(0, 3, KEY_CAMERA)
82 keypad,num-rows = <1>;
83 keypad,num-columns = <5>;