lpc32xx-key.txt 902 B

12345678910111213141516171819202122232425262728
  1. NXP LPC32xx Key Scan Interface
  2. Required Properties:
  3. - compatible: Should be "nxp,lpc3220-key"
  4. - reg: Physical base address of the controller and length of memory mapped
  5. region.
  6. - interrupts: The interrupt number to the cpu.
  7. - keypad,num-rows: Number of rows and columns, e.g. 1: 1x1, 6: 6x6
  8. - keypad,num-columns: Must be equal to keypad,num-rows since LPC32xx only
  9. supports square matrices
  10. - nxp,debounce-delay-ms: Debounce delay in ms
  11. - nxp,scan-delay-ms: Repeated scan period in ms
  12. - linux,keymap: the key-code to be reported when the key is pressed
  13. and released, see also
  14. Documentation/devicetree/bindings/input/matrix-keymap.txt
  15. Example:
  16. key@40050000 {
  17. compatible = "nxp,lpc3220-key";
  18. reg = <0x40050000 0x1000>;
  19. interrupts = <54 0>;
  20. keypad,num-rows = <1>;
  21. keypad,num-columns = <1>;
  22. nxp,debounce-delay-ms = <3>;
  23. nxp,scan-delay-ms = <34>;
  24. linux,keymap = <0x00000002>;
  25. };