0001 NXP LPC32xx Key Scan Interface
0002
0003 This binding is based on the matrix-keymap binding with the following
0004 changes:
0005
0006 Required Properties:
0007 - compatible: Should be "nxp,lpc3220-key"
0008 - reg: Physical base address of the controller and length of memory mapped
0009 region.
0010 - interrupts: The interrupt number to the cpu.
0011 - clocks: phandle to clock controller plus clock-specifier pair
0012 - nxp,debounce-delay-ms: Debounce delay in ms
0013 - nxp,scan-delay-ms: Repeated scan period in ms
0014 - linux,keymap: the key-code to be reported when the key is pressed
0015 and released, see also
0016 Documentation/devicetree/bindings/input/matrix-keymap.txt
0017
0018 Note: keypad,num-rows and keypad,num-columns are required, and must be equal
0019 since LPC32xx only supports square matrices
0020
0021 Example:
0022
0023 key@40050000 {
0024 compatible = "nxp,lpc3220-key";
0025 reg = <0x40050000 0x1000>;
0026 clocks = <&clk LPC32XX_CLK_KEY>;
0027 interrupt-parent = <&sic1>;
0028 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
0029 keypad,num-rows = <1>;
0030 keypad,num-columns = <1>;
0031 nxp,debounce-delay-ms = <3>;
0032 nxp,scan-delay-ms = <34>;
0033 linux,keymap = <0x00000002>;
0034 };