lpc32xx-key.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. - clocks: phandle to clock controller plus clock-specifier pair
  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. Note: keypad,num-rows and keypad,num-columns are required, and must be equal
  16. since LPC32xx only supports square matrices
  17. Example:
  18. key@40050000 {
  19. compatible = "nxp,lpc3220-key";
  20. reg = <0x40050000 0x1000>;
  21. clocks = <&clk LPC32XX_CLK_KEY>;
  22. interrupt-parent = <&sic1>;
  23. interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
  24. keypad,num-rows = <1>;
  25. keypad,num-columns = <1>;
  26. nxp,debounce-delay-ms = <3>;
  27. nxp,scan-delay-ms = <34>;
  28. linux,keymap = <0x00000002>;
  29. };