twl4030-keypad.txt 958 B

12345678910111213141516171819202122232425262728
  1. * TWL4030's Keypad Controller device tree bindings
  2. TWL4030's Keypad controller is used to interface a SoC with a matrix-type
  3. keypad device. The keypad controller supports multiple row and column lines.
  4. A key can be placed at each intersection of a unique row and a unique column.
  5. The keypad controller can sense a key-press and key-release and report the
  6. event using a interrupt to the cpu.
  7. This binding is based on the matrix-keymap binding with the following
  8. changes:
  9. * keypad,num-rows and keypad,num-columns are required.
  10. Required SoC Specific Properties:
  11. - compatible: should be one of the following
  12. - "ti,twl4030-keypad": For controllers compatible with twl4030 keypad
  13. controller.
  14. - interrupt: should be one of the following
  15. - <1>: For controllers compatible with twl4030 keypad controller.
  16. Example:
  17. twl_keypad: keypad {
  18. compatible = "ti,twl4030-keypad";
  19. interrupts = <1>;
  20. keypad,num-rows = <8>;
  21. keypad,num-columns = <8>;
  22. };