# Imagination Technologies Pistachio SoC clock controllers

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

> Device-tree binding reference for Imagination Technologies Pistachio SoC clock controllers.

<!-- 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;img&#44;pistachio&#45;clk&#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;Andrew Bresticker &#60;abrestic&#64;chromium&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Pistachio has four clock controllers (core clock, peripheral clock, peripheral
general control, and top general control) which are instantiated individually
from the device-tree.</p>
<p style="white-space: pre-wrap">Core clock controller:</p>
<p style="white-space: pre-wrap">The core clock controller generates clocks for the CPU, RPU (WiFi + BT
co-processor), audio, and several peripherals.</p>
<p style="white-space: pre-wrap">Peripheral clock controller:</p>
<p style="white-space: pre-wrap">The peripheral clock controller generates clocks for the DDR, ROM, and other
peripherals. The peripheral system clock ("periph_sys") generated by the core
clock controller is the input clock to the peripheral clock controller.</p>
<p style="white-space: pre-wrap">Peripheral general control:</p>
<p style="white-space: pre-wrap">The peripheral general control block generates system interface clocks and
resets for various peripherals. It also contains miscellaneous peripheral
control registers.</p>
<p style="white-space: pre-wrap">Top-level general control:</p>
<p style="white-space: pre-wrap">The top-level general control block contains miscellaneous control registers
and gates for the external clocks "audio_clk_in" and "enet_clk_in".</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;img&#44;pistachio&#45;clk&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;img&#44;pistachio&#45;clk&#45;periph&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;img&#44;pistachio&#45;cr&#45;periph&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;img&#44;pistachio&#45;cr&#45;top&#34;</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> — required here

**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>3</code></span>

<a id="dt-041d7cd76b652a5de06a"></a>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-65c84d57f9774b7ce5c4"><code>3</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>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clock&#45;names&#34;</code></span>

<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;img&#44;pistachio&#45;clk&#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-065d246b482f4e9fba10"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-bf2571e4630a59f0c256"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-2a540a403e097f848634"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-343db573787971306c08">
> > > <p style="white-space: pre-wrap">External 52Mhz oscillator</p>
> > > </div>
> >
> > <a id="dt-30c4212017dcaacb0d3b"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-87bc545af27987cc71f5">
> > > <p style="white-space: pre-wrap">Alternate audio reference clock</p>
> > > </div>
> >
> > <a id="dt-5b84b7ba5037f6e7c6f1"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-a1b272356204c2749c06">
> > > <p style="white-space: pre-wrap">Alternate ethernet PHY clock</p>
> > > </div>
> >
> > <a id="dt-935ce0cf7d790018ed2d"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-0f31b3430a92dd449f6c"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-4728af709128b6802243"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-031a7dbe2c066f868c35"><code>&#34;xtal&#34;</code></span>
> >
> > <a id="dt-499faf6f3c1e6a2de32b"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-14ea8009c50633baa575"><code>&#34;audio&#95;refclk&#95;ext&#95;gate&#34;</code></span>
> >
> > <a id="dt-68e48919ba73efad2634"></a>
> >
> > **Item 3**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-28720a6003e8b65201ce"><code>&#34;ext&#95;enet&#95;in&#95;gate&#34;</code></span>

<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>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;img&#44;pistachio&#45;clk&#45;periph&#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-cc2edf6d98aafaff5f44"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-9bc2c4bcef6f6d2c7e6f"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-9a92b8140775cdd9d56e"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-5f2a23fcde50f95228b6">
> > > <p style="white-space: pre-wrap">Peripheral system clock</p>
> > > </div>
> >
> > <a id="dt-dde63784a5285c3f925c"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-07c804bf76c975c5a644"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-855b6229a724a1e988d5"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-d22ff96126d7db564137"><code>&#34;periph&#95;sys&#95;core&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;img&#44;pistachio&#45;cr&#45;periph&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8308c8f88877cb33a5a0"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-848f98d28ea162761487"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-5bfe5ca02fe705443505"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-09903707c496e0ef03ef">
> > > <p style="white-space: pre-wrap">System interface clock</p>
> > > </div>
> >
> > <a id="dt-c6cd9634653c9bd1a32e"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-5b4140344e7664199596"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-38d589b0741e87d4c52a"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-2c23cdf57281bef15cec"><code>&#34;sys&#34;</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-5c56c46a4e287cf52ece"><code>&#34;img&#44;pistachio&#45;cr&#45;top&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-7cd597a6bb6b91730c25"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-9b48ab756d49c09e7d6e"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > <a id="dt-3867b786a01b5ba0e050"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-e17f95830082fa69a39a"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-9c9c147b6c21cfafd2b5">
> > > <p style="white-space: pre-wrap">External audio reference clock</p>
> > > </div>
> >
> > <a id="dt-f311694dd6b4103ae61e"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-bca0731aa3fcc6d84883">
> > > <p style="white-space: pre-wrap">External ethernet PHY clock</p>
> > > </div>
> >
> > <a id="dt-0dd30bad243a0df76d0b"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > <a id="dt-15601e83d4b95ac95a9c"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-c6508f79b7c67f4ab5c7"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-6f7c4ab4df79eac8009c"><code>&#34;audio&#95;clk&#95;in&#34;</code></span>
> >
> > <a id="dt-8a09b1b82fc12eb8948c"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-33aee55eeaaf3e7d4421"><code>&#34;enet&#95;clk&#95;in&#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.

## 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>
