Back to home page

OSCL-LXR

 
 

    


0001 * Cirrus Logic CLPS711X matrix keypad device tree bindings
0002 
0003 Required Properties:
0004 - compatible:    Shall contain "cirrus,ep7209-keypad".
0005 - row-gpios:     List of GPIOs used as row lines.
0006 - poll-interval: Poll interval time in milliseconds.
0007 - linux,keymap:  The definition can be found at
0008                  bindings/input/matrix-keymap.txt.
0009 
0010 Optional Properties:
0011 - autorepeat:    Enable autorepeat feature.
0012 
0013 Example:
0014         keypad {
0015                 compatible = "cirrus,ep7312-keypad", "cirrus,ep7209-keypad";
0016                 autorepeat;
0017                 poll-interval = <120>;
0018                 row-gpios = <&porta 0 0>,
0019                             <&porta 1 0>;
0020 
0021                 linux,keymap = <
0022                         MATRIX_KEY(0, 0, KEY_UP)
0023                         MATRIX_KEY(0, 1, KEY_DOWN)
0024                         MATRIX_KEY(1, 0, KEY_LEFT)
0025                         MATRIX_KEY(1, 1, KEY_RIGHT)
0026                 >;
0027         };