imx-keypad.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. * Freescale i.MX Keypad Port(KPP) device tree bindings
  2. The KPP is designed to interface with a keypad matrix with 2-point contact
  3. or 3-point contact keys. The KPP is designed to simplify the software task
  4. of scanning a keypad matrix. The KPP is capable of detecting, debouncing,
  5. and decoding one or multiple keys pressed simultaneously on a keypad.
  6. Required SoC Specific Properties:
  7. - compatible: Should be "fsl,<soc>-kpp".
  8. - reg: Physical base address of the KPP and length of memory mapped
  9. region.
  10. - interrupts: The KPP interrupt number to the CPU(s).
  11. - clocks: The clock provided by the SoC to the KPP. Some SoCs use dummy
  12. clock(The clock for the KPP is provided by the SoCs automatically).
  13. Required Board Specific Properties:
  14. - pinctrl-names: The definition can be found at
  15. pinctrl/pinctrl-bindings.txt.
  16. - pinctrl-0: The definition can be found at
  17. pinctrl/pinctrl-bindings.txt.
  18. - linux,keymap: The definition can be found at
  19. bindings/input/matrix-keymap.txt.
  20. Example:
  21. kpp: kpp@73f94000 {
  22. compatible = "fsl,imx51-kpp", "fsl,imx21-kpp";
  23. reg = <0x73f94000 0x4000>;
  24. interrupts = <60>;
  25. clocks = <&clks 0>;
  26. pinctrl-names = "default";
  27. pinctrl-0 = <&pinctrl_kpp_1>;
  28. linux,keymap = <0x00000067 /* KEY_UP */
  29. 0x0001006c /* KEY_DOWN */
  30. 0x00020072 /* KEY_VOLUMEDOWN */
  31. 0x00030066 /* KEY_HOME */
  32. 0x0100006a /* KEY_RIGHT */
  33. 0x01010069 /* KEY_LEFT */
  34. 0x0102001c /* KEY_ENTER */
  35. 0x01030073 /* KEY_VOLUMEUP */
  36. 0x02000040 /* KEY_F6 */
  37. 0x02010042 /* KEY_F8 */
  38. 0x02020043 /* KEY_F9 */
  39. 0x02030044 /* KEY_F10 */
  40. 0x0300003b /* KEY_F1 */
  41. 0x0301003c /* KEY_F2 */
  42. 0x0302003d /* KEY_F3 */
  43. 0x03030074>; /* KEY_POWER */
  44. };