apple,pmgr-pwrstate.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/power/apple,pmgr-pwrstate.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Apple SoC PMGR Power States
  7. maintainers:
  8. - Hector Martin <marcan@marcan.st>
  9. allOf:
  10. - $ref: power-domain.yaml#
  11. description: |
  12. Apple SoCs include PMGR blocks responsible for power management,
  13. which can control various clocks, resets, power states, and
  14. performance features. This binding describes the device power
  15. state registers, which control power states and resets.
  16. Each instance of a power controller within the PMGR syscon node
  17. represents a generic power domain provider, as documented in
  18. Documentation/devicetree/bindings/power/power-domain.yaml.
  19. The provider controls a single SoC block. The power hierarchy is
  20. represented via power-domains relationships between these nodes.
  21. See Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml
  22. for the top-level PMGR node documentation.
  23. properties:
  24. compatible:
  25. oneOf:
  26. - items:
  27. - enum:
  28. # Do not add additional SoC to this list.
  29. - apple,s5l8960x-pmgr-pwrstate
  30. - apple,t7000-pmgr-pwrstate
  31. - apple,s8000-pmgr-pwrstate
  32. - apple,t8010-pmgr-pwrstate
  33. - apple,t8015-pmgr-pwrstate
  34. - apple,t8103-pmgr-pwrstate
  35. - apple,t8112-pmgr-pwrstate
  36. - apple,t6000-pmgr-pwrstate
  37. - const: apple,pmgr-pwrstate
  38. - items:
  39. - const: apple,t6020-pmgr-pwrstate
  40. - const: apple,t8103-pmgr-pwrstate
  41. reg:
  42. maxItems: 1
  43. "#power-domain-cells":
  44. const: 0
  45. "#reset-cells":
  46. const: 0
  47. power-domains:
  48. description:
  49. Reference to parent power domains. A domain may have multiple parents,
  50. and all will be powered up when it is powered.
  51. minItems: 1
  52. maxItems: 8 # Arbitrary, should be enough
  53. label:
  54. description:
  55. Specifies the name of the SoC domain being controlled. This is used to
  56. name the power/reset domains.
  57. apple,always-on:
  58. description:
  59. Forces this power domain to always be powered up.
  60. type: boolean
  61. apple,min-state:
  62. description:
  63. Specifies the minimum power state for auto-PM.
  64. 0 = power gated, 4 = clock gated, 15 = on.
  65. $ref: /schemas/types.yaml#/definitions/uint32
  66. minimum: 0
  67. maximum: 15
  68. required:
  69. - compatible
  70. - reg
  71. - "#power-domain-cells"
  72. - "#reset-cells"
  73. - label
  74. additionalProperties: false