]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - Documentation/devicetree/bindings/input/lpc32xx-key.txt
Merge tag 'powerpc-5.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[mirror_ubuntu-hirsute-kernel.git] / Documentation / devicetree / bindings / input / lpc32xx-key.txt
CommitLineData
69690bec
RS
1NXP LPC32xx Key Scan Interface
2
1d0b1c74
SG
3This binding is based on the matrix-keymap binding with the following
4changes:
5
69690bec
RS
6Required Properties:
7- compatible: Should be "nxp,lpc3220-key"
8- reg: Physical base address of the controller and length of memory mapped
9 region.
10- interrupts: The interrupt number to the cpu.
24541ded 11- clocks: phandle to clock controller plus clock-specifier pair
69690bec
RS
12- nxp,debounce-delay-ms: Debounce delay in ms
13- nxp,scan-delay-ms: Repeated scan period in ms
14- linux,keymap: the key-code to be reported when the key is pressed
15 and released, see also
16 Documentation/devicetree/bindings/input/matrix-keymap.txt
17
1d0b1c74
SG
18Note: keypad,num-rows and keypad,num-columns are required, and must be equal
19since LPC32xx only supports square matrices
20
69690bec
RS
21Example:
22
23 key@40050000 {
24 compatible = "nxp,lpc3220-key";
25 reg = <0x40050000 0x1000>;
24541ded
VZ
26 clocks = <&clk LPC32XX_CLK_KEY>;
27 interrupt-parent = <&sic1>;
28 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
69690bec
RS
29 keypad,num-rows = <1>;
30 keypad,num-columns = <1>;
31 nxp,debounce-delay-ms = <3>;
32 nxp,scan-delay-ms = <34>;
33 linux,keymap = <0x00000002>;
34 };