# Qualcomm Subsystem Power Manager / SPM AVS Wrapper 2 (SAW2)

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Soc bindings / qcom_

> Device-tree binding reference for Qualcomm Subsystem Power Manager / SPM AVS Wrapper 2 (SAW2).

<!-- 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;soc&#47;qcom&#47;qcom&#44;saw2&#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;Andy Gross &#60;agross&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Bjorn Andersson &#60;bjorn&#46;andersson&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Qualcomm Subsystem Power Manager is used to control the peripheral logic
surrounding the application cores in Qualcomm platforms.</p>
<p style="white-space: pre-wrap">The SAW2 is a wrapper around the Subsystem Power Manager (SPM) and the
Adaptive Voltage Scaling (AVS) hardware. The SPM is a programmable
power-controller that transitions a piece of hardware (like a processor or
subsystem) into and out of low power modes via a direct connection to
the PMIC. It can also be wired up to interact with other processors in the
system, notifying them when a low power state is entered or exited.</p>
</div>

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

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

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;qcom&#44;ipq4019&#45;saw2&#45;cpu&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;qcom&#44;ipq4019&#45;saw2&#45;l2&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;qcom&#44;ipq8064&#45;saw2&#45;cpu&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;qcom&#44;sdm660&#45;gold&#45;saw2&#45;v4&#46;1&#45;l2&#34;</code></span>, <span id="dt-6eb9cf2b3f55b257fde4"><code>&#34;qcom&#44;sdm660&#45;silver&#45;saw2&#45;v4&#46;1&#45;l2&#34;</code></span>, <span id="dt-50ce8af78a6d0f3b7b82"><code>&#34;qcom&#44;msm8998&#45;gold&#45;saw2&#45;v4&#46;1&#45;l2&#34;</code></span>, <span id="dt-8be3d578ae616ce6273c"><code>&#34;qcom&#44;msm8998&#45;silver&#45;saw2&#45;v4&#46;1&#45;l2&#34;</code></span>, <span id="dt-348801aa97cc32ed4b8e"><code>&#34;qcom&#44;msm8909&#45;saw2&#45;v3&#46;0&#45;cpu&#34;</code></span>, <span id="dt-08e250be67bbdba4113e"><code>&#34;qcom&#44;msm8916&#45;saw2&#45;v3&#46;0&#45;cpu&#34;</code></span>, <span id="dt-b384a2e268c424bd4737"><code>&#34;qcom&#44;msm8939&#45;saw2&#45;v3&#46;0&#45;cpu&#34;</code></span>, <span id="dt-00645d7276e48dce88cf"><code>&#34;qcom&#44;msm8226&#45;saw2&#45;v2&#46;1&#45;cpu&#34;</code></span>, <span id="dt-e5bb0b4c6f96135591dc"><code>&#34;qcom&#44;msm8226&#45;saw2&#45;v2&#46;1&#45;l2&#34;</code></span>, <span id="dt-4bde956a8cf6f215f70e"><code>&#34;qcom&#44;msm8960&#45;saw2&#45;cpu&#34;</code></span>, <span id="dt-10b35ef19b737dbb8601"><code>&#34;qcom&#44;msm8974&#45;saw2&#45;v2&#46;1&#45;cpu&#34;</code></span>, <span id="dt-04e607d0cca73ecd9a42"><code>&#34;qcom&#44;msm8974&#45;saw2&#45;v2&#46;1&#45;l2&#34;</code></span>, <span id="dt-e2db6a6268b84a260286"><code>&#34;qcom&#44;msm8976&#45;gold&#45;saw2&#45;v2&#46;3&#45;l2&#34;</code></span>, <span id="dt-2a8ead1a46a814445402"><code>&#34;qcom&#44;msm8976&#45;silver&#45;saw2&#45;v2&#46;3&#45;l2&#34;</code></span>, <span id="dt-98beb3234fc95a98556f"><code>&#34;qcom&#44;apq8084&#45;saw2&#45;v2&#46;1&#45;cpu&#34;</code></span>, <span id="dt-61d982f22a36aee0de44"><code>&#34;qcom&#44;apq8084&#45;saw2&#45;v2&#46;1&#45;l2&#34;</code></span>, <span id="dt-63fb3a62361de7665053"><code>&#34;qcom&#44;apq8064&#45;saw2&#45;v1&#46;1&#45;cpu&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;qcom&#44;saw2&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Base address and size of the SPM register region</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Base address and size of the alias register region</p>
> </div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>1</code></span>

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

### <code>regulator</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6da0a79c5cc39eb61478">[<code>&#47;schemas&#47;regulator&#47;regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<div id="dt-32eab13df6332e19c8f7">
<p style="white-space: pre-wrap">Indicates that this SPM device acts as a regulator device device for the core (CPU or Cache) the SPM is attached to.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>

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

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

<code>false</code>

Not allowed by this rule.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">
/* Example 1: SoC using SAW2 and kpss-acc-v2 CPUIdle */
cpus {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    cpu@0 {
        compatible = "arm,cortex-a53";
        device_type = "cpu";
        enable-method = "qcom,kpss-acc-v2";
        qcom,acc = &lt;&amp;acc0&gt;;
        qcom,saw = &lt;&amp;saw0&gt;;
        reg = &lt;0x0&gt;;
        operating-points-v2 = &lt;&amp;cpu_opp_table&gt;;
    };
};

saw0: power-manager@f9089000 {
    compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
    reg = &lt;0xf9089000 0x1000&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">
/*
 * Example 2: New-gen multi cluster SoC using SAW only for L2;
 * This does not require any cpuidle driver, nor any cpu phandle.
 */
power-manager@17812000 {
    compatible = "qcom,msm8998-gold-saw2-v4.1-l2", "qcom,saw2";
    reg = &lt;0x17812000 0x1000&gt;;
};

power-manager@17912000 {
    compatible = "qcom,msm8998-silver-saw2-v4.1-l2", "qcom,saw2";
    reg = &lt;0x17912000 0x1000&gt;;
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">/*
 * Example 3: SAW2 with the bundled regulator definition.
 */
power-manager@2089000 {
    compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
    reg = &lt;0x02089000 0x1000&gt;, &lt;0x02009000 0x1000&gt;;

    regulator {
        regulator-min-microvolt = &lt;850000&gt;;
        regulator-max-microvolt = &lt;1300000&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>
