qcom,pm8941-pwrkey.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Qualcomm PM8941 PMIC Power Key
  2. PROPERTIES
  3. - compatible:
  4. Usage: required
  5. Value type: <string>
  6. Definition: must be one of:
  7. "qcom,pm8941-pwrkey"
  8. "qcom,pm8941-resin"
  9. - reg:
  10. Usage: required
  11. Value type: <prop-encoded-array>
  12. Definition: base address of registers for block
  13. - interrupts:
  14. Usage: required
  15. Value type: <prop-encoded-array>
  16. Definition: key change interrupt; The format of the specifier is
  17. defined by the binding document describing the node's
  18. interrupt parent.
  19. - debounce:
  20. Usage: optional
  21. Value type: <u32>
  22. Definition: time in microseconds that key must be pressed or released
  23. for state change interrupt to trigger.
  24. - bias-pull-up:
  25. Usage: optional
  26. Value type: <empty>
  27. Definition: presence of this property indicates that the KPDPWR_N pin
  28. should be configured for pull up.
  29. - linux,code:
  30. Usage: optional
  31. Value type: <u32>
  32. Definition: The input key-code associated with the power key.
  33. Use the linux event codes defined in
  34. include/dt-bindings/input/linux-event-codes.h
  35. When property is omitted KEY_POWER is assumed.
  36. EXAMPLE
  37. pwrkey@800 {
  38. compatible = "qcom,pm8941-pwrkey";
  39. reg = <0x800>;
  40. interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
  41. debounce = <15625>;
  42. bias-pull-up;
  43. linux,code = <KEY_POWER>;
  44. };