# Generic PM domains

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings_

> Device-tree binding reference for Generic PM domains.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;power&#47;power&#45;domain&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rafael J&#46; Wysocki &#60;rafael&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Kevin Hilman &#60;khilman&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Ulf Hansson &#60;ulf&#46;hansson&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">System on chip designs are often divided into multiple PM domains that can be
used for power gating of selected IP blocks for power saving by reduced
leakage current. Moreover, in some cases the similar PM domains may also be
capable of scaling performance for a group of IP blocks.</p>
<p style="white-space: pre-wrap">This device tree binding can be used to bind PM domain consumer devices with
their PM domains provided by PM domain providers. A PM domain provider can be
represented by any node in the device tree and can provide one or more PM
domains. A consumer node can refer to the provider by a phandle and a set of
phandle arguments (so called PM domain specifiers) of length specified by the
\#power-domain-cells property in the PM domain provider node.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;&#40;power&#45;controller&#124;power&#45;domain&#124;performance&#45;domain&#41;&#40;&#91;&#64;&#45;&#93;&#46;&#42;&#41;&#63;&#36;&#34;</code></span>

<a id="dt-c559d57b60c09d43abfc"></a>

### <code>domain&#45;idle&#45;states</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-92fc91cf8bcfeb0b8b93">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-8f5710c4314b4caa4970>)</span>

<a id="dt-0209194eb5d00d8a4ebf"></a>

#### Array item rules (<code>items</code>)

> **Maximum number of items (<code>maxItems</code>):** <span id="dt-55ea7947a09f193af269"><code>1</code></span>

<div id="dt-554ac6bfef9e855d2aba">
<p style="white-space: pre-wrap">Phandles of idle states that defines the available states for the
power-domain provider. The idle state definitions are compatible with the
domain-idle-state bindings, specified in ./domain-idle-state.yaml.</p>
<p style="white-space: pre-wrap">Note that, the domain-idle-state property reflects the idle states of this
PM domain and not the idle states of the devices or sub-domains in the PM
domain. Devices and sub-domains have their own idle states independent of
the parent domain's idle states. In the absence of this property, the
domain would be considered as capable of being powered-on or powered-off.</p>
</div>

<a id="dt-324942e28549e5e189eb"></a>

### <code>operating&#45;points&#45;v2</code> — not listed as required here

<div id="dt-ed66e6cddc4083461f9e">
<p style="white-space: pre-wrap">Phandles to the OPP tables of power domains that are capable of scaling performance, provided by a power domain provider. If the provider provides a single power domain only or all the power domains provided by the provider have identical OPP tables, then this shall contain a single phandle. Refer to ../opp/opp-v2-base.yaml for more information.</p>
</div>

<a id="dt-b7a47dd5c405b3bc7abb"></a>

### <code>&#35;power&#45;domain&#45;cells</code> — required here

<div id="dt-151ee4b28b246226f074">
<p style="white-space: pre-wrap">Number of cells in a PM domain specifier. Typically 0 for nodes representing a single PM domain and 1 for nodes providing multiple PM domains (e.g. power controllers), but can be any value as specified by device tree binding documentation of particular provider.</p>
</div>

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

<div id="dt-33c740e5969dba94b4e6">
<p style="white-space: pre-wrap">A phandle and PM domain specifier as defined by bindings of the power controller specified by phandle. Some power domains might be powered from another power domain (or have other hardware specific dependencies). For representing such dependency a standard PM domain consumer binding is used. When provided, all domains created by the given provider should be subdomains of the domain specified by this binding.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;power&#45;domain&#45;cells&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>true</code>

Allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">power: power-controller@12340000 {
    compatible = "foo,power-controller";
    reg = &lt;0x12340000 0x1000&gt;;
    #power-domain-cells = &lt;1&gt;;
};

// The node above defines a power controller that is a PM domain provider and
// expects one cell as its phandle argument.
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">parent2: power-controller@12340000 {
    compatible = "foo,power-controller";
    reg = &lt;0x12340000 0x1000&gt;;
    #power-domain-cells = &lt;1&gt;;
};

child2: power-controller@12341000 {
    compatible = "foo,power-controller";
    reg = &lt;0x12341000 0x1000&gt;;
    power-domains = &lt;&amp;parent2 0&gt;;
    #power-domain-cells = &lt;1&gt;;
};

// The nodes above define two power controllers: 'parent' and 'child'.
// Domains created by the 'child' power controller are subdomains of '0' power
// domain provided by the 'parent' power controller.
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">parent3: power-controller@12340000 {
    compatible = "foo,power-controller";
    reg = &lt;0x12340000 0x1000&gt;;
    #power-domain-cells = &lt;0&gt;;
    domain-idle-states = &lt;&amp;DOMAIN_RET&gt;, &lt;&amp;DOMAIN_PWR_DN&gt;;
};

child3: power-controller@12341000 {
    compatible = "foo,power-controller";
    reg = &lt;0x12341000 0x1000&gt;;
    power-domains = &lt;&amp;parent3&gt;;
    #power-domain-cells = &lt;0&gt;;
    domain-idle-states = &lt;&amp;DOMAIN_PWR_DN&gt;;
};

domain-idle-states {
    DOMAIN_RET: domain-retention {
        compatible = "domain-idle-state";
        entry-latency-us = &lt;1000&gt;;
        exit-latency-us = &lt;2000&gt;;
        min-residency-us = &lt;10000&gt;;
    };

    DOMAIN_PWR_DN: domain-pwr-dn {
        compatible = "domain-idle-state";
        entry-latency-us = &lt;5000&gt;;
        exit-latency-us = &lt;8000&gt;;
        min-residency-us = &lt;7000&gt;;
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: GPL-2.0</span></p>

</details>
