qcom,pm8941-pwrkey.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Qualcomm PM8941 PMIC Power Key
  7. maintainers:
  8. - Courtney Cavin <courtney.cavin@sonymobile.com>
  9. - Vinod Koul <vkoul@kernel.org>
  10. allOf:
  11. - $ref: input.yaml#
  12. properties:
  13. compatible:
  14. enum:
  15. - qcom,pm8941-pwrkey
  16. - qcom,pm8941-resin
  17. - qcom,pmk8350-pwrkey
  18. - qcom,pmk8350-resin
  19. interrupts:
  20. maxItems: 1
  21. debounce:
  22. description: |
  23. Time in microseconds that key must be pressed or
  24. released for state change interrupt to trigger.
  25. $ref: /schemas/types.yaml#/definitions/uint32
  26. bias-pull-up:
  27. description: |
  28. Presence of this property indicates that the KPDPWR_N
  29. pin should be configured for pull up.
  30. $ref: /schemas/types.yaml#/definitions/flag
  31. linux,code:
  32. description: |
  33. The input key-code associated with the power key.
  34. Use the linux event codes defined in
  35. include/dt-bindings/input/linux-event-codes.h
  36. When property is omitted KEY_POWER is assumed.
  37. required:
  38. - compatible
  39. - interrupts
  40. unevaluatedProperties: false
  41. ...