# Power Management Controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Powerpc bindings / fsl_

> Device-tree binding reference for Power Management Controller.

<!-- SPDX-License-Identifier: (GPL-2.0-only 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;powerpc&#47;fsl&#47;pmc&#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;J&#46; Neuschäfer &#60;j&#46;ne&#64;posteo&#46;net&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Power Management Controller in several MPC8xxx SoCs helps save power by
controlling chip-wide low-power states as well as peripheral clock gating.</p>
<p style="white-space: pre-wrap">Sleep of peripheral devices is configured by the `sleep` property, for
example `sleep = &lt;&amp;pmc 0x00000030&gt;`. Any cells after the &amp;pmc phandle are
called a sleep specifier.</p>
<p style="white-space: pre-wrap">For "fsl,mpc8349-pmc", sleep specifiers consist of one cell.  For each bit that
is set in the cell, the corresponding bit in SCCR will be saved and cleared
on suspend, and restored on resume.  This sleep controller supports disabling
and resuming devices at any time.</p>
<p style="white-space: pre-wrap">For "fsl,mpc8536-pmc", sleep specifiers consist of three cells, the third of
which will be ORed into PMCDR upon suspend, and cleared from PMCDR upon
resume.  The first two cells are as described for fsl,mpc8548-pmc.  This
sleep controller only supports disabling devices during system sleep, or
permanently.</p>
<p style="white-space: pre-wrap">For "fsl,mpc8548-pmc" or "fsl,mpc8641d-pmc", Sleep specifiers consist of one
or two cells, the first of which will be ORed into DEVDISR (and the second
into DEVDISR2, if present -- this cell should be zero or absent if the
hardware does not have DEVDISR2) upon a request for permanent device
disabling.  This sleep controller does not support configuring devices to
disable during system sleep (unless supported by another compatible match),
or dynamically.</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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-5deec2612224d8d915da"><code>&#34;fsl&#44;mpc8315&#45;pmc&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;fsl&#44;mpc8313&#45;pmc&#34;</code></span>
>
> <a id="dt-8aea0680b70f72ffdfb0"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-a8216d5f954c632b59e8"><code>&#34;fsl&#44;mpc8349&#45;pmc&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;fsl&#44;mpc8313&#45;pmc&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;fsl&#44;mpc8323&#45;pmc&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;fsl&#44;mpc8360&#45;pmc&#34;</code></span>, <span id="dt-922f7901d25b667972ac"><code>&#34;fsl&#44;mpc8377&#45;pmc&#34;</code></span>, <span id="dt-eb61ad381053476dae55"><code>&#34;fsl&#44;mpc8378&#45;pmc&#34;</code></span>, <span id="dt-05b29c21ca38ad337d53"><code>&#34;fsl&#44;mpc8379&#45;pmc&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;mpc8349&#45;pmc&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b4cf31a5f463012e1429"><code>&#34;fsl&#44;p1022&#45;pmc&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;fsl&#44;mpc8536&#45;pmc&#34;</code></span>
>
> <a id="dt-3acd265d2314f4be0bd4"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-d09fdb468825e586f676"><code>&#34;fsl&#44;mpc8548&#45;pmc&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-12b3e48e4010cb944698"></a> <span id="dt-e46f645e6715baa60581"><code>&#34;fsl&#44;mpc8536&#45;pmc&#34;</code></span>, <span id="dt-f0654d9dc65c16ce7d6a"><code>&#34;fsl&#44;mpc8568&#45;pmc&#34;</code></span>, <span id="dt-80bf5233c0e34928f5ac"><code>&#34;fsl&#44;mpc8569&#45;pmc&#34;</code></span>
>
> <a id="dt-c99d921c49bf15e79633"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9e0f2ef968dd632f09b7"><code>&#34;fsl&#44;mpc8548&#45;pmc&#34;</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> **Allowed values (<code>enum</code>):** <a id="dt-78e29080fba906436b34"></a> <span id="dt-2db59273bf1b9e9ca307"><code>&#34;fsl&#44;mpc8548&#45;pmc&#34;</code></span>, <span id="dt-fb96169e79112d83b1e6"><code>&#34;fsl&#44;mpc8641d&#45;pmc&#34;</code></span>

<div id="dt-e84064a2d568e9bcb9c3">
<p style="white-space: pre-wrap">"fsl,mpc8349-pmc" should be listed for any chip whose PMC is
compatible.  "fsl,mpc8313-pmc" should also be listed for any chip
whose PMC is compatible, and implies deep-sleep capability.</p>
<p style="white-space: pre-wrap">"fsl,mpc8548-pmc" should be listed for any chip whose PMC is
compatible.  "fsl,mpc8536-pmc" should also be listed for any chip
whose PMC is compatible, and implies deep-sleep capability.</p>
<p style="white-space: pre-wrap">"fsl,mpc8641d-pmc" should be listed for any chip whose PMC is
compatible; all statements below that apply to "fsl,mpc8548-pmc" also
apply to "fsl,mpc8641d-pmc".</p>
<p style="white-space: pre-wrap">Compatibility does not include bit assignments in SCCR/PMCDR/DEVDISR; these
bit assignments are indicated via the sleep specifier in each device's
sleep property.</p>
</div>

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>2</code></span>

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

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

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

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

### <code>fsl&#44;mpc8313&#45;wakeup&#45;timer</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4b361b63366e3c590873">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>

<div id="dt-fb2db634640b419cfb65">
<p style="white-space: pre-wrap">For "fsl,mpc8313-pmc"-compatible devices, this is a phandle to an "fsl,gtm" node on which timer 4 can be used as a wakeup source from deep sleep.</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;fsl&#44;mpc8349&#45;pmc&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f6af340cf87a1ddfe255"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-47714583d986698a5277"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-51e3de466589c06bce7a"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-ee779ae571d08e44841f">
> > > <p style="white-space: pre-wrap">PMC block</p>
> > > </div>
> >
> > <a id="dt-87a371b9a996acf08952"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-cba7a3aa31527d4db158">
> > > <p style="white-space: pre-wrap">Clock Configuration block</p>
> > > </div>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;fsl&#44;mpc8548&#45;pmc&#34;</code></span>, <span id="dt-97636aa7a2139f7622b5"><code>&#34;fsl&#44;mpc8641d&#45;pmc&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-18ed1f4bd380878274d8"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-57a47f31b9538e0be5c1"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-bc319cbd3310a768e6d0"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-9da9173723afbadba2bd">
> > > <p style="white-space: pre-wrap">32-byte block beginning with DEVDISR</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">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

pmc: power@b00 {
    compatible = "fsl,mpc8377-pmc", "fsl,mpc8349-pmc";
    reg = &lt;0xb00 0x100&gt;, &lt;0xa00 0x100&gt;;
    interrupts = &lt;80 IRQ_TYPE_LEVEL_LOW&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">power@e0070 {
    compatible = "fsl,mpc8548-pmc";
    reg = &lt;0xe0070 0x20&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-only OR BSD-2-Clause)</span></p>

</details>
