clps711x-keypad.txt 727 B

12345678910111213141516171819202122232425262728
  1. * Cirrus Logic CLPS711X matrix keypad device tree bindings
  2. Required Properties:
  3. - compatible: Shall contain "cirrus,clps711x-keypad".
  4. - row-gpios: List of GPIOs used as row lines.
  5. - poll-interval: Poll interval time in milliseconds.
  6. - linux,keymap: The definition can be found at
  7. bindings/input/matrix-keymap.txt.
  8. Optional Properties:
  9. - autorepeat: Enable autorepeat feature.
  10. Example:
  11. keypad {
  12. compatible = "cirrus,ep7312-keypad", "cirrus,clps711x-keypad";
  13. autorepeat;
  14. poll-interval = <120>;
  15. row-gpios = <&porta 0 0>,
  16. <&porta 1 0>;
  17. linux,keymap = <
  18. MATRIX_KEY(0, 0, KEY_UP)
  19. MATRIX_KEY(0, 1, KEY_DOWN)
  20. MATRIX_KEY(1, 0, KEY_LEFT)
  21. MATRIX_KEY(1, 1, KEY_RIGHT)
  22. >;
  23. };