xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/twl4030-keypad.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* TWL4030's Keypad Controller device tree bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunTWL4030's Keypad controller is used to interface a SoC with a matrix-type
4*4882a593Smuzhiyunkeypad device. The keypad controller supports multiple row and column lines.
5*4882a593SmuzhiyunA key can be placed at each intersection of a unique row and a unique column.
6*4882a593SmuzhiyunThe keypad controller can sense a key-press and key-release and report the
7*4882a593Smuzhiyunevent using a interrupt to the cpu.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunThis binding is based on the matrix-keymap binding with the following
10*4882a593Smuzhiyunchanges:
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun * keypad,num-rows and keypad,num-columns are required.
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunRequired SoC Specific Properties:
15*4882a593Smuzhiyun- compatible: should be one of the following
16*4882a593Smuzhiyun   - "ti,twl4030-keypad": For controllers compatible with twl4030 keypad
17*4882a593Smuzhiyun      controller.
18*4882a593Smuzhiyun- interrupt: should be one of the following
19*4882a593Smuzhiyun   - <1>: For controllers compatible with twl4030 keypad controller.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunExample:
22*4882a593Smuzhiyun	twl_keypad: keypad {
23*4882a593Smuzhiyun		compatible = "ti,twl4030-keypad";
24*4882a593Smuzhiyun		interrupts = <1>;
25*4882a593Smuzhiyun		keypad,num-rows = <8>;
26*4882a593Smuzhiyun		keypad,num-columns = <8>;
27*4882a593Smuzhiyun	};
28