# Generic performance domains

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

> Device-tree binding reference for Generic performance domains.

<!-- SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -->


<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;dvfs&#47;performance&#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;Sudeep Holla &#60;sudeep&#46;holla&#64;arm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This binding is intended for performance management of groups of devices or
CPUs that run in the same performance domain. Performance domains must not
be confused with power domains. A performance domain is defined by a set
of devices that always have to run at the same performance level. For a given
performance domain, there is a single point of control that affects all the
devices in the domain, making it impossible to set the performance level of
an individual device in the domain independently from other devices in
that domain. For example, a set of CPUs that share a voltage domain, and
have a common frequency control, is said to be in the same performance
domain.</p>
<p style="white-space: pre-wrap">This device tree binding can be used to bind performance domain consumer
devices with their performance domains provided by performance domain
providers. A performance domain provider can be represented by any node in
the device tree and can provide one or more performance domains. A consumer
node can refer to the provider by a phandle and a set of phandle arguments
(so called performance domain specifiers) of length specified by the
\#performance-domain-cells property in the performance domain provider node.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>true</code>

This selection rule always matches.

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

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

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

### <code>&#35;performance&#45;domain&#45;cells</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-f9182b229331b6e47960"></a> <span id="dt-9672907a9c0e5b7cc78b"><code>0</code></span>, <span id="dt-21e64f4865f18439a9bc"><code>1</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f55a9d53d1a7dc0b9edd">[<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>

<div id="dt-f976e22133e1ead7f656">
<p style="white-space: pre-wrap">A phandle and performance domain specifier as defined by bindings of the performance controller/provider specified by phandle.</p>
</div>

<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">soc {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    performance: performance-controller@11bc00 {
        compatible = "mediatek,cpufreq-hw";
        reg = &lt;0 0x0011bc10 0 0x120&gt;, &lt;0 0x0011bd30 0 0x120&gt;;

        #performance-domain-cells = &lt;1&gt;;
    };
};

// The node above defines a performance controller that is a performance
// domain provider and expects one cell as its phandle argument.

cpus {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;0&gt;;

    cpu@0 {
        device_type = "cpu";
        compatible = "arm,cortex-a57";
        reg = &lt;0x0 0x0&gt;;
        performance-domains = &lt;&amp;performance 1&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 OR BSD-2-Clause)</span></p>

</details>
