1*4882a593SmuzhiyunNXP LPC32xx Key Scan Interface 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis binding is based on the matrix-keymap binding with the following 4*4882a593Smuzhiyunchanges: 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunRequired Properties: 7*4882a593Smuzhiyun- compatible: Should be "nxp,lpc3220-key" 8*4882a593Smuzhiyun- reg: Physical base address of the controller and length of memory mapped 9*4882a593Smuzhiyun region. 10*4882a593Smuzhiyun- interrupts: The interrupt number to the cpu. 11*4882a593Smuzhiyun- clocks: phandle to clock controller plus clock-specifier pair 12*4882a593Smuzhiyun- nxp,debounce-delay-ms: Debounce delay in ms 13*4882a593Smuzhiyun- nxp,scan-delay-ms: Repeated scan period in ms 14*4882a593Smuzhiyun- linux,keymap: the key-code to be reported when the key is pressed 15*4882a593Smuzhiyun and released, see also 16*4882a593Smuzhiyun Documentation/devicetree/bindings/input/matrix-keymap.txt 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunNote: keypad,num-rows and keypad,num-columns are required, and must be equal 19*4882a593Smuzhiyunsince LPC32xx only supports square matrices 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunExample: 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun key@40050000 { 24*4882a593Smuzhiyun compatible = "nxp,lpc3220-key"; 25*4882a593Smuzhiyun reg = <0x40050000 0x1000>; 26*4882a593Smuzhiyun clocks = <&clk LPC32XX_CLK_KEY>; 27*4882a593Smuzhiyun interrupt-parent = <&sic1>; 28*4882a593Smuzhiyun interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; 29*4882a593Smuzhiyun keypad,num-rows = <1>; 30*4882a593Smuzhiyun keypad,num-columns = <1>; 31*4882a593Smuzhiyun nxp,debounce-delay-ms = <3>; 32*4882a593Smuzhiyun nxp,scan-delay-ms = <34>; 33*4882a593Smuzhiyun linux,keymap = <0x00000002>; 34*4882a593Smuzhiyun }; 35