1 * Cirrus Logic CLPS711X matrix keypad device t 1 * Cirrus Logic CLPS711X matrix keypad device tree bindings 2 2 3 Required Properties: 3 Required Properties: 4 - compatible: Shall contain "cirrus,ep7209- 4 - compatible: Shall contain "cirrus,ep7209-keypad". 5 - row-gpios: List of GPIOs used as row lin 5 - row-gpios: List of GPIOs used as row lines. 6 - poll-interval: Poll interval time in millise 6 - poll-interval: Poll interval time in milliseconds. 7 - linux,keymap: The definition can be found a 7 - linux,keymap: The definition can be found at 8 bindings/input/matrix-keymap. 8 bindings/input/matrix-keymap.txt. 9 9 10 Optional Properties: 10 Optional Properties: 11 - autorepeat: Enable autorepeat feature. 11 - autorepeat: Enable autorepeat feature. 12 12 13 Example: 13 Example: 14 keypad { 14 keypad { 15 compatible = "cirrus,ep7312-ke 15 compatible = "cirrus,ep7312-keypad", "cirrus,ep7209-keypad"; 16 autorepeat; 16 autorepeat; 17 poll-interval = <120>; 17 poll-interval = <120>; 18 row-gpios = <&porta 0 0>, 18 row-gpios = <&porta 0 0>, 19 <&porta 1 0>; 19 <&porta 1 0>; 20 20 21 linux,keymap = < 21 linux,keymap = < 22 MATRIX_KEY(0, 0, KEY_U 22 MATRIX_KEY(0, 0, KEY_UP) 23 MATRIX_KEY(0, 1, KEY_D 23 MATRIX_KEY(0, 1, KEY_DOWN) 24 MATRIX_KEY(1, 0, KEY_L 24 MATRIX_KEY(1, 0, KEY_LEFT) 25 MATRIX_KEY(1, 1, KEY_R 25 MATRIX_KEY(1, 1, KEY_RIGHT) 26 >; 26 >; 27 }; 27 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.