Path: blob/master/Documentation/devicetree/bindings/input/lpc32xx-key.txt
26308 views
NXP LPC32xx Key Scan Interface12This binding is based on the matrix-keymap binding with the following3changes:45Required Properties:6- compatible: Should be "nxp,lpc3220-key"7- reg: Physical base address of the controller and length of memory mapped8region.9- interrupts: The interrupt number to the cpu.10- clocks: phandle to clock controller plus clock-specifier pair11- nxp,debounce-delay-ms: Debounce delay in ms12- nxp,scan-delay-ms: Repeated scan period in ms13- linux,keymap: the key-code to be reported when the key is pressed14and released, see also15Documentation/devicetree/bindings/input/matrix-keymap.txt1617Note: keypad,num-rows and keypad,num-columns are required, and must be equal18since LPC32xx only supports square matrices1920Example:2122key@40050000 {23compatible = "nxp,lpc3220-key";24reg = <0x40050000 0x1000>;25clocks = <&clk LPC32XX_CLK_KEY>;26interrupt-parent = <&sic1>;27interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;28keypad,num-rows = <1>;29keypad,num-columns = <1>;30nxp,debounce-delay-ms = <3>;31nxp,scan-delay-ms = <34>;32linux,keymap = <0x00000002>;33};343536