Debian Codegraph @

Documentation/devicetree/bindings/input/nxp,lpc3220-key.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/nxp,lpc3220-key.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: NXP LPC32xx Key Scan Interface
8
9 maintainers:
10 - Frank Li <[email protected]>
11
12 properties:
13 compatible:
14 const: nxp,lpc3220-key
15
16 reg:
17 maxItems: 1
18
19 interrupts:
20 maxItems: 1
21
22 clocks:
23 maxItems: 1
24
25 nxp,debounce-delay-ms:
26 description: Debounce delay in ms
27
28 nxp,scan-delay-ms:
29 description: Repeated scan period in ms
30
31 required:
32 - compatible
33 - reg
34 - interrupts
35 - clocks
36 - nxp,debounce-delay-ms
37 - nxp,scan-delay-ms
38 - linux,keymap
39
40 allOf:
41 - $ref: matrix-keymap.yaml#
42
43 unevaluatedProperties: false
44
45 examples:
46 - |
47 #include <dt-bindings/interrupt-controller/irq.h>
48 #include <dt-bindings/clock/lpc32xx-clock.h>
49
50 key@40050000 {
51 compatible = "nxp,lpc3220-key";
52 reg = <0x40050000 0x1000>;
53 clocks = <&clk LPC32XX_CLK_KEY>;
54 interrupt-parent = <&sic1>;
55 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
56 keypad,num-rows = <1>;
57 keypad,num-columns = <1>;
58 nxp,debounce-delay-ms = <3>;
59 nxp,scan-delay-ms = <34>;
60 linux,keymap = <0x00000002>;
61 };