at commit c03c1a14

1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/mediatek,mt6779-keypad.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Mediatek's Keypad Controller
8
9 maintainers:
10 - Mattijs Korpershoek <mkorpershoek@kernel.org>
11
12 allOf:
13 - $ref: input.yaml#
14 - $ref: /schemas/input/matrix-keymap.yaml#
15
16 description: |
17 Mediatek's Keypad controller is used to interface a SoC with a matrix-type
18 keypad device. The keypad controller supports multiple row and column lines.
19 A key can be placed at each intersection of a unique row and a unique column.
20 The keypad controller can sense a key-press and key-release and report the
21 event using a interrupt to the cpu.
22
23 properties:
24 compatible:
25 oneOf:
26 - const: mediatek,mt6779-keypad
27 - items:
28 - enum:
29 - mediatek,mt6572-keypad
30 - mediatek,mt6873-keypad
31 - mediatek,mt8183-keypad
32 - mediatek,mt8365-keypad
33 - mediatek,mt8516-keypad
34 - const: mediatek,mt6779-keypad
35
36 reg:
37 maxItems: 1
38
39 interrupts:
40 maxItems: 1
41
42 clocks:
43 maxItems: 1
44
45 clock-names:
46 items:
47 - const: kpd
48
49 wakeup-source:
50 description: use any event on keypad as wakeup event
51 type: boolean
52
53 debounce-delay-ms:
54 maximum: 256
55 default: 16
56
57 mediatek,keys-per-group:
58 description: each (row, column) group has multiple keys
59 $ref: /schemas/types.yaml#/definitions/uint32
60 default: 1
61 maximum: 2
62
63 required:
64 - compatible
65 - reg
66 - interrupts
67 - clocks
68 - clock-names
69
70 unevaluatedProperties: false
71
72 examples:
73 - |
74 #include <dt-bindings/input/input.h>
75 #include <dt-bindings/interrupt-controller/arm-gic.h>
76
77 soc {
78 #address-cells = <2>;
79 #size-cells = <2>;
80
81 keyboard@10010000 {
82 compatible = "mediatek,mt6779-keypad";
83 reg = <0 0x10010000 0 0x1000>;
84 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_FALLING>;
85 clocks = <&clk26m>;
86 clock-names = "kpd";
87 };
88 };