lpc32xx-key.txt 936 B

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