qcom,pm8xxx-keypad.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Qualcomm PM8xxx PMIC Keypad
  2. PROPERTIES
  3. - compatible:
  4. Usage: required
  5. Value type: <string>
  6. Definition: must be one of:
  7. "qcom,pm8058-keypad"
  8. "qcom,pm8921-keypad"
  9. - reg:
  10. Usage: required
  11. Value type: <prop-encoded-array>
  12. Definition: address of keypad control register
  13. - interrupts:
  14. Usage: required
  15. Value type: <prop-encoded-array>
  16. Definition: the first interrupt specifies the key sense interrupt
  17. and the second interrupt specifies the key stuck interrupt.
  18. The format of the specifier is defined by the binding
  19. document describing the node's interrupt parent.
  20. - linux,keymap:
  21. Usage: required
  22. Value type: <prop-encoded-array>
  23. Definition: the linux keymap. More information can be found in
  24. input/matrix-keymap.txt.
  25. - linux,keypad-no-autorepeat:
  26. Usage: optional
  27. Value type: <bool>
  28. Definition: don't enable autorepeat feature.
  29. - wakeup-source:
  30. Usage: optional
  31. Value type: <bool>
  32. Definition: use any event on keypad as wakeup event.
  33. (Legacy property supported: "linux,keypad-wakeup")
  34. - keypad,num-rows:
  35. Usage: required
  36. Value type: <u32>
  37. Definition: number of rows in the keymap. More information can be found
  38. in input/matrix-keymap.txt.
  39. - keypad,num-columns:
  40. Usage: required
  41. Value type: <u32>
  42. Definition: number of columns in the keymap. More information can be
  43. found in input/matrix-keymap.txt.
  44. - debounce:
  45. Usage: optional
  46. Value type: <u32>
  47. Definition: time in microseconds that key must be pressed or release
  48. for key sense interrupt to trigger.
  49. - scan-delay:
  50. Usage: optional
  51. Value type: <u32>
  52. Definition: time in microseconds to pause between successive scans
  53. of the matrix array.
  54. - row-hold:
  55. Usage: optional
  56. Value type: <u32>
  57. Definition: time in nanoseconds to pause between scans of each row in
  58. the matrix array.
  59. EXAMPLE
  60. keypad@148 {
  61. compatible = "qcom,pm8921-keypad";
  62. reg = <0x148>;
  63. interrupt-parent = <&pmicintc>;
  64. interrupts = <74 1>, <75 1>;
  65. linux,keymap = <
  66. MATRIX_KEY(0, 0, KEY_VOLUMEUP)
  67. MATRIX_KEY(0, 1, KEY_VOLUMEDOWN)
  68. MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS)
  69. MATRIX_KEY(0, 3, KEY_CAMERA)
  70. >;
  71. keypad,num-rows = <1>;
  72. keypad,num-columns = <5>;
  73. debounce = <15>;
  74. scan-delay = <32>;
  75. row-hold = <91500>;
  76. };