1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/mediatek,mt6779-keypad.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Mediatek's Keypad Controller
10 - Mattijs Korpershoek <mkorpershoek@baylibre.com>
13 - $ref: /schemas/input/matrix-keymap.yaml#
16 Mediatek's Keypad controller is used to interface a SoC with a matrix-type
17 keypad device. The keypad controller supports multiple row and column lines.
18 A key can be placed at each intersection of a unique row and a unique column.
19 The keypad controller can sense a key-press and key-release and report the
20 event using a interrupt to the cpu.
25 - const: mediatek,mt6779-keypad
28 - mediatek,mt6873-keypad
29 - const: mediatek,mt6779-keypad
45 description: use any event on keypad as wakeup event
52 mediatek,keys-per-group:
53 description: each (row, column) group has multiple keys
54 $ref: /schemas/types.yaml#/definitions/uint32
65 unevaluatedProperties: false
69 #include <dt-bindings/input/input.h>
70 #include <dt-bindings/interrupt-controller/arm-gic.h>
77 compatible = "mediatek,mt6779-keypad";
78 reg = <0 0x10010000 0 0x1000>;
79 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_FALLING>;