power-domain.yaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/power/power-domain.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Generic PM domains
  7. maintainers:
  8. - Rafael J. Wysocki <rjw@rjwysocki.net>
  9. - Kevin Hilman <khilman@kernel.org>
  10. - Ulf Hansson <ulf.hansson@linaro.org>
  11. description: |+
  12. System on chip designs are often divided into multiple PM domains that can be
  13. used for power gating of selected IP blocks for power saving by reduced
  14. leakage current. Moreover, in some cases the similar PM domains may also be
  15. capable of scaling performance for a group of IP blocks.
  16. This device tree binding can be used to bind PM domain consumer devices with
  17. their PM domains provided by PM domain providers. A PM domain provider can be
  18. represented by any node in the device tree and can provide one or more PM
  19. domains. A consumer node can refer to the provider by a phandle and a set of
  20. phandle arguments (so called PM domain specifiers) of length specified by the
  21. \#power-domain-cells property in the PM domain provider node.
  22. properties:
  23. $nodename:
  24. pattern: "^(power-controller|power-domain|performance-domain)([@-].*)?$"
  25. domain-idle-states:
  26. $ref: /schemas/types.yaml#/definitions/phandle-array
  27. items:
  28. maxItems: 1
  29. description: |
  30. Phandles of idle states that defines the available states for the
  31. power-domain provider. The idle state definitions are compatible with the
  32. domain-idle-state bindings, specified in ./domain-idle-state.yaml.
  33. Note that, the domain-idle-state property reflects the idle states of this
  34. PM domain and not the idle states of the devices or sub-domains in the PM
  35. domain. Devices and sub-domains have their own idle states independent of
  36. the parent domain's idle states. In the absence of this property, the
  37. domain would be considered as capable of being powered-on or powered-off.
  38. operating-points-v2:
  39. description:
  40. Phandles to the OPP tables of power domains that are capable of scaling
  41. performance, provided by a power domain provider. If the provider provides
  42. a single power domain only or all the power domains provided by the
  43. provider have identical OPP tables, then this shall contain a single
  44. phandle. Refer to ../opp/opp-v2-base.yaml for more information.
  45. "#power-domain-cells":
  46. description:
  47. Number of cells in a PM domain specifier. Typically 0 for nodes
  48. representing a single PM domain and 1 for nodes providing multiple PM
  49. domains (e.g. power controllers), but can be any value as specified
  50. by device tree binding documentation of particular provider.
  51. power-domains:
  52. description:
  53. A phandle and PM domain specifier as defined by bindings of the power
  54. controller specified by phandle. Some power domains might be powered
  55. from another power domain (or have other hardware specific
  56. dependencies). For representing such dependency a standard PM domain
  57. consumer binding is used. When provided, all domains created
  58. by the given provider should be subdomains of the domain specified
  59. by this binding.
  60. required:
  61. - "#power-domain-cells"
  62. additionalProperties: true
  63. examples:
  64. - |
  65. power: power-controller@12340000 {
  66. compatible = "foo,power-controller";
  67. reg = <0x12340000 0x1000>;
  68. #power-domain-cells = <1>;
  69. };
  70. // The node above defines a power controller that is a PM domain provider and
  71. // expects one cell as its phandle argument.
  72. - |
  73. parent2: power-controller@12340000 {
  74. compatible = "foo,power-controller";
  75. reg = <0x12340000 0x1000>;
  76. #power-domain-cells = <1>;
  77. };
  78. child2: power-controller@12341000 {
  79. compatible = "foo,power-controller";
  80. reg = <0x12341000 0x1000>;
  81. power-domains = <&parent2 0>;
  82. #power-domain-cells = <1>;
  83. };
  84. // The nodes above define two power controllers: 'parent' and 'child'.
  85. // Domains created by the 'child' power controller are subdomains of '0' power
  86. // domain provided by the 'parent' power controller.
  87. - |
  88. parent3: power-controller@12340000 {
  89. compatible = "foo,power-controller";
  90. reg = <0x12340000 0x1000>;
  91. #power-domain-cells = <0>;
  92. domain-idle-states = <&DOMAIN_RET>, <&DOMAIN_PWR_DN>;
  93. };
  94. child3: power-controller@12341000 {
  95. compatible = "foo,power-controller";
  96. reg = <0x12341000 0x1000>;
  97. power-domains = <&parent3>;
  98. #power-domain-cells = <0>;
  99. domain-idle-states = <&DOMAIN_PWR_DN>;
  100. };
  101. domain-idle-states {
  102. DOMAIN_RET: domain-retention {
  103. compatible = "domain-idle-state";
  104. entry-latency-us = <1000>;
  105. exit-latency-us = <2000>;
  106. min-residency-us = <10000>;
  107. };
  108. DOMAIN_PWR_DN: domain-pwr-dn {
  109. compatible = "domain-idle-state";
  110. entry-latency-us = <5000>;
  111. exit-latency-us = <8000>;
  112. min-residency-us = <7000>;
  113. };
  114. };