# Microchip PolarFire Clock Control Module

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

> Device-tree binding reference for Microchip PolarFire Clock Control Module.

<!-- 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;microchip&#44;mpfs&#45;clkcfg&#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;Daire McNamara &#60;daire&#46;mcnamara&#64;microchip&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Microchip PolarFire clock control (CLKCFG) is an integrated clock controller,
which gates and enables all peripheral clocks.</p>
<p style="white-space: pre-wrap">This device tree binding describes 33 gate clocks.  Clocks are referenced by
user nodes by the CLKCFG node phandle and the clock index in the group, from
0 to 32.</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;microchip&#44;pic64gx&#45;clkcfg&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;microchip&#44;mpfs&#45;clkcfg&#34;</code></span>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;microchip&#44;mpfs&#45;clkcfg&#34;</code></span>

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

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

<a id="dt-801f7d487c42b86b5f7d"></a>

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

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

**Rule 1**

> <a id="dt-a152c07baf7d68dede0b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-3d0154060929c4dd4704"></a>
>
> **Item 1**
>
> > <div id="dt-de2bf2d1b533cb543e49">
> > <p style="white-space: pre-wrap">clock config registers:
> > These registers contain enable, reset &amp; divider tables for the, cpu,
> > axi, ahb and rtc/mtimer reference clocks as well as enable and reset
> > for the peripheral clocks.</p>
> > </div>
>
> <a id="dt-8af1fd6cadf6c96b75d3"></a>
>
> **Item 2**
>
> > <div id="dt-0807203b91cabe02e66a">
> > <p style="white-space: pre-wrap">mss pll dri registers:
> > Block of registers responsible for dynamic reconfiguration of the mss
> > pll</p>
> > </div>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-cae97b09d45d7004f50a"><code>true</code></span>

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

**Rule 2**

> <a id="dt-b25dea93dcbe89a3ef8f"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-9742628c434e3b0d8071"></a>
>
> **Item 1**
>
> > <div id="dt-179aaca3d716e678853e">
> > <p style="white-space: pre-wrap">mss pll dri registers:
> > Block of registers responsible for dynamic reconfiguration of the mss
> > pll</p>
> > </div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><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>

<div id="dt-6709a835409866cbd3af">
<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 include/dt-bindings/clock/microchip,mpfs-clock.h for the full list of
PolarFire clock IDs.</p>
</div>

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

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

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

<a id="dt-02c38475362b738e226b"></a>

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

<div id="dt-0c5e21d5853fdd8c84a9">
<p style="white-space: pre-wrap">The AHB/AXI peripherals on the PolarFire SoC have reset support, so from CLK_ENVM to CLK_CFM. The reset consumer should specify the desired peripheral via the clock ID in its "resets" phandle cell. See include/dt-bindings/clock/microchip,mpfs-clock.h for the full list of PolarFire clock IDs.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-374f156ee5b81c392b56"><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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;clock&#45;cells&#34;</code></span>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> <a id="dt-8239149d6c8b0a5dabbe"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Exact value (<code>const</code>):** <span id="dt-0259836b095562054cc8"><code>&#34;microchip&#44;pic64gx&#45;clkcfg&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> <a id="dt-d3da345ec82b9041251c"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-8893b96000b374eb19f2"></a>
>
> #### <code>reg</code> — not listed as required here
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-91b7bae59d17a6b7385d"><code>1</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/microchip,mpfs-clock.h&gt;
soc {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;

        clkcfg: clock-controller@3E001000 {
            compatible = "microchip,mpfs-clkcfg";
            reg = &lt;0x3E001000 0x1000&gt;;
            clocks = &lt;&amp;ref&gt;;
            #clock-cells = &lt;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-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 89:</strong> <span> Clock Config node:</span></p>

</details>
