# NXP i.MX8QXP LPCG (Low-Power Clock Gating) Clock

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

> Device-tree binding reference for NXP i.MX8QXP LPCG (Low-Power Clock Gating) Clock.

<!-- 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;clock&#47;imx8qxp&#45;lpcg&#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;Aisheng Dong &#60;aisheng&#46;dong&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Low-Power Clock Gate (LPCG) modules contain a local programming
model to control the clock gates for the peripherals. An LPCG module
is used to locally gate the clocks for the associated peripheral.</p>
<p style="white-space: pre-wrap">This level of clock gating is provided after the clocks are generated
by the SCU resources and clock controls. Thus even if the clock is
enabled by these control bits, it might still not be running based
on the base resource.</p>
<p style="white-space: pre-wrap">The clock consumer should specify the desired clock by having the clock
ID in its "clocks" phandle cell. See the full list of clock IDs from:
include/dt-bindings/clock/imx8-lpcg.h</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**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#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;imx8qm&#45;lpcg&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#34;</code></span>

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

**Rule 3**

> **Allowed values (<code>enum</code>):** <a id="dt-9fc3f5081af7fe32b794"></a> <span id="dt-264517b00ca7c7f3c30f"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;adma&#34;</code></span>, <span id="dt-78ff4d043ca24550ed33"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;conn&#34;</code></span>, <span id="dt-aada3a31ecc374bd5eca"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;dc&#34;</code></span>, <span id="dt-6cdb02d4beab121ea3fa"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;dsp&#34;</code></span>, <span id="dt-f978b4044ceeb19adde5"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;gpu&#34;</code></span>, <span id="dt-1ea77152497c76252ea0"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;hsio&#34;</code></span>, <span id="dt-42352670cc4b67ace014"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;img&#34;</code></span>, <span id="dt-657f89e877f0e7f48111"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;lsio&#34;</code></span>, <span id="dt-dd4d83ee81a3a49510c2"><code>&#34;fsl&#44;imx8qxp&#45;lpcg&#45;vpu&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-0ced5c7fccd8fc640f58"><code>true</code></span>

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

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

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

<a id="dt-7471877b51a93881192b"></a>

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

**Exact value (<code>const</code>):** <span id="dt-0eebe37dd30ae3dd2a72"><code>1</code></span>

<a id="dt-4e9a371963ac013ad39d"></a>

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Input parent clocks phandle array for each clock</p>
</div>

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

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

<a id="dt-34e1202d67be80638746"></a>

### <code>clock&#45;indices</code> — not listed as required here

<div id="dt-69b05aa424e2b147bd7a">
<p style="white-space: pre-wrap">An integer array indicating the bit offset for each clock.
Refer to &lt;include/dt-bindings/clock/imx8-lpcg.h&gt; for the
supported LPCG clock indices.</p>
</div>

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

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

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

### <code>clock&#45;output&#45;names</code> — not listed as required here

<div id="dt-1944bc0b47114a0d6f2d">
<p style="white-space: pre-wrap">Shall be the corresponding names of the outputs.
NOTE this property must be specified in the same order
as the clock-indices property.</p>
</div>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-48bdbc8ce79b7a10c6b6"><code>8</code></span>

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

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

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

**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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;clock&#45;cells&#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/clock/imx8-lpcg.h&gt;
#include &lt;dt-bindings/firmware/imx/rsrc.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

sdhc0_lpcg: clock-controller@5b200000 {
    compatible = "fsl,imx8qxp-lpcg";
    reg = &lt;0x5b200000 0x10000&gt;;
    #clock-cells = &lt;1&gt;;
    clocks = &lt;&amp;sdhc0_clk IMX_SC_PM_CLK_PER&gt;,
             &lt;&amp;conn_ipg_clk&gt;,
             &lt;&amp;conn_axi_clk&gt;;
    clock-indices = &lt;IMX_LPCG_CLK_0&gt;,
                    &lt;IMX_LPCG_CLK_4&gt;,
                    &lt;IMX_LPCG_CLK_5&gt;;
    clock-output-names = "sdhc0_lpcg_per_clk",
                         "sdhc0_lpcg_ipg_clk",
                         "sdhc0_lpcg_ahb_clk";
    power-domains = &lt;&amp;pd IMX_SC_R_SDHC_0&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>
