Back to home page

OSCL-LXR

 
 

    


0001 * TWL4030's Keypad Controller device tree bindings
0002 
0003 TWL4030's Keypad controller is used to interface a SoC with a matrix-type
0004 keypad device. The keypad controller supports multiple row and column lines.
0005 A key can be placed at each intersection of a unique row and a unique column.
0006 The keypad controller can sense a key-press and key-release and report the
0007 event using a interrupt to the cpu.
0008 
0009 This binding is based on the matrix-keymap binding with the following
0010 changes:
0011 
0012  * keypad,num-rows and keypad,num-columns are required.
0013 
0014 Required SoC Specific Properties:
0015 - compatible: should be one of the following
0016    - "ti,twl4030-keypad": For controllers compatible with twl4030 keypad
0017       controller.
0018 - interrupt: should be one of the following
0019    - <1>: For controllers compatible with twl4030 keypad controller.
0020 
0021 Example:
0022         twl_keypad: keypad {
0023                 compatible = "ti,twl4030-keypad";
0024                 interrupts = <1>;
0025                 keypad,num-rows = <8>;
0026                 keypad,num-columns = <8>;
0027         };