qcom,pm8xxx-keypad.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. - linux,keypad-wakeup:
  30. Usage: optional
  31. Value type: <bool>
  32. Definition: use any event on keypad as wakeup event.
  33. - keypad,num-rows:
  34. Usage: required
  35. Value type: <u32>
  36. Definition: number of rows in the keymap. More information can be found
  37. in input/matrix-keymap.txt.
  38. - keypad,num-columns:
  39. Usage: required
  40. Value type: <u32>
  41. Definition: number of columns in the keymap. More information can be
  42. found in input/matrix-keymap.txt.
  43. - debounce:
  44. Usage: optional
  45. Value type: <u32>
  46. Definition: time in microseconds that key must be pressed or release
  47. for key sense interrupt to trigger.
  48. - scan-delay:
  49. Usage: optional
  50. Value type: <u32>
  51. Definition: time in microseconds to pause between successive scans
  52. of the matrix array.
  53. - row-hold:
  54. Usage: optional
  55. Value type: <u32>
  56. Definition: time in nanoseconds to pause between scans of each row in
  57. the matrix array.
  58. EXAMPLE
  59. keypad@148 {
  60. compatible = "qcom,pm8921-keypad";
  61. reg = <0x148>;
  62. interrupt-parent = <&pmicintc>;
  63. interrupts = <74 1>, <75 1>;
  64. linux,keymap = <
  65. MATRIX_KEY(0, 0, KEY_VOLUMEUP)
  66. MATRIX_KEY(0, 1, KEY_VOLUMEDOWN)
  67. MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS)
  68. MATRIX_KEY(0, 3, KEY_CAMERA)
  69. >;
  70. keypad,num-rows = <1>;
  71. keypad,num-columns = <5>;
  72. debounce = <15>;
  73. scan-delay = <32>;
  74. row-hold = <91500>;
  75. };