2012-07-13 15:08:34 +08:00
|
|
|
NXP LPC32xx Key Scan Interface
|
|
|
|
|
2013-01-11 09:41:32 +08:00
|
|
|
This binding is based on the matrix-keymap binding with the following
|
|
|
|
changes:
|
|
|
|
|
2012-07-13 15:08:34 +08:00
|
|
|
Required Properties:
|
|
|
|
- compatible: Should be "nxp,lpc3220-key"
|
|
|
|
- reg: Physical base address of the controller and length of memory mapped
|
|
|
|
region.
|
|
|
|
- interrupts: The interrupt number to the cpu.
|
2019-04-04 01:52:49 +08:00
|
|
|
- clocks: phandle to clock controller plus clock-specifier pair
|
2012-07-13 15:08:34 +08:00
|
|
|
- nxp,debounce-delay-ms: Debounce delay in ms
|
|
|
|
- nxp,scan-delay-ms: Repeated scan period in ms
|
|
|
|
- linux,keymap: the key-code to be reported when the key is pressed
|
|
|
|
and released, see also
|
|
|
|
Documentation/devicetree/bindings/input/matrix-keymap.txt
|
|
|
|
|
2013-01-11 09:41:32 +08:00
|
|
|
Note: keypad,num-rows and keypad,num-columns are required, and must be equal
|
|
|
|
since LPC32xx only supports square matrices
|
|
|
|
|
2012-07-13 15:08:34 +08:00
|
|
|
Example:
|
|
|
|
|
|
|
|
key@40050000 {
|
|
|
|
compatible = "nxp,lpc3220-key";
|
|
|
|
reg = <0x40050000 0x1000>;
|
2019-04-04 01:52:49 +08:00
|
|
|
clocks = <&clk LPC32XX_CLK_KEY>;
|
|
|
|
interrupt-parent = <&sic1>;
|
|
|
|
interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
|
2012-07-13 15:08:34 +08:00
|
|
|
keypad,num-rows = <1>;
|
|
|
|
keypad,num-columns = <1>;
|
|
|
|
nxp,debounce-delay-ms = <3>;
|
|
|
|
nxp,scan-delay-ms = <34>;
|
|
|
|
linux,keymap = <0x00000002>;
|
|
|
|
};
|