xref: /linux/Documentation/devicetree/bindings/input/lpc32xx-key.txt (revision 74acee309fb2a434dce215d44014e6f8e06975ae)
169690becSRoland StiggeNXP LPC32xx Key Scan Interface
269690becSRoland Stigge
31d0b1c74SSimon GlassThis binding is based on the matrix-keymap binding with the following
41d0b1c74SSimon Glasschanges:
51d0b1c74SSimon Glass
669690becSRoland StiggeRequired Properties:
769690becSRoland Stigge- compatible: Should be "nxp,lpc3220-key"
869690becSRoland Stigge- reg: Physical base address of the controller and length of memory mapped
969690becSRoland Stigge  region.
1069690becSRoland Stigge- interrupts: The interrupt number to the cpu.
11*24541dedSVladimir Zapolskiy- clocks: phandle to clock controller plus clock-specifier pair
1269690becSRoland Stigge- nxp,debounce-delay-ms: Debounce delay in ms
1369690becSRoland Stigge- nxp,scan-delay-ms: Repeated scan period in ms
1469690becSRoland Stigge- linux,keymap: the key-code to be reported when the key is pressed
1569690becSRoland Stigge  and released, see also
1669690becSRoland Stigge  Documentation/devicetree/bindings/input/matrix-keymap.txt
1769690becSRoland Stigge
181d0b1c74SSimon GlassNote: keypad,num-rows and keypad,num-columns are required, and must be equal
191d0b1c74SSimon Glasssince LPC32xx only supports square matrices
201d0b1c74SSimon Glass
2169690becSRoland StiggeExample:
2269690becSRoland Stigge
2369690becSRoland Stigge	key@40050000 {
2469690becSRoland Stigge		compatible = "nxp,lpc3220-key";
2569690becSRoland Stigge		reg = <0x40050000 0x1000>;
26*24541dedSVladimir Zapolskiy		clocks = <&clk LPC32XX_CLK_KEY>;
27*24541dedSVladimir Zapolskiy		interrupt-parent = <&sic1>;
28*24541dedSVladimir Zapolskiy		interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
2969690becSRoland Stigge		keypad,num-rows = <1>;
3069690becSRoland Stigge		keypad,num-columns = <1>;
3169690becSRoland Stigge		nxp,debounce-delay-ms = <3>;
3269690becSRoland Stigge		nxp,scan-delay-ms = <34>;
3369690becSRoland Stigge		linux,keymap = <0x00000002>;
3469690becSRoland Stigge	};
35