# CIRRUS LOGIC Fractional-N Clock Synthesizer & Clock Multiplier

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

> Device-tree binding reference for CIRRUS LOGIC Fractional-N Clock Synthesizer & Clock Multiplier.

<!-- 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;cirrus&#44;cs2000&#45;cp&#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;Kuninori Morimoto &#60;kuninori&#46;morimoto&#46;gx&#64;renesas&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The CS2000-CP is an extremely versatile system clocking device that
utilizes a programmable phase lock loop.</p>
<p style="white-space: pre-wrap">Link: https://www.cirrus.com/products/cs2000/</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;cirrus&#44;cs2000&#45;cp&#34;</code></span>

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Common clock binding for CLK_IN, XTI/REF_CLK</p>
</div>

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

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

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

<a id="dt-3d1de59bdfddccf00eed"></a>

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;clk&#95;in&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;ref&#95;clk&#34;</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>0</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-ac4cd6df38af34c736e2"></a>

### <code>cirrus&#44;aux&#45;output&#45;source</code> — not listed as required here

<div id="dt-ba3115c91093429be9d5">
<p style="white-space: pre-wrap">Specifies the function of the auxiliary clock output pin</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-5a52bea5f038304b2fcd"></a> <span id="dt-05b7a8064ba27d681e2e"><code>0</code></span>, <span id="dt-576724ccfdcf33b57416"><code>1</code></span>, <span id="dt-4b24b901fb86c47d68e2"><code>2</code></span>, <span id="dt-9e773d2e84b5e55b9791"><code>3</code></span>

**Default value (<code>default</code>):** <span id="dt-12fed528f238d51e7cc7"><code>0</code></span>

<a id="dt-30f57e5e15e335735bfb"></a>

### <code>cirrus&#44;clock&#45;skip</code> — not listed as required here

<div id="dt-394b33b5ce15d538d8e6">
<p style="white-space: pre-wrap">This mode allows the PLL to maintain lock even when CLK_IN has missing pulses for up to 20 ms.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6d9c1d421aab8ed2dfeb">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

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

### <code>cirrus&#44;dynamic&#45;mode</code> — not listed as required here

<div id="dt-0d53419764effc05578c">
<p style="white-space: pre-wrap">In dynamic mode, the CLK_IN input is used to drive the digital PLL of the silicon. If not given, the static mode shall be used to derive the output signal directly from the REF_CLK input.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6ecbc203585539b72a93">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</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;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><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/cirrus,cs2000-cp.h&gt;

i2c@0 {
  reg = &lt;0x0 0x100&gt;;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  clock-controller@4f {
    #clock-cells = &lt;0&gt;;
    compatible = "cirrus,cs2000-cp";
    reg = &lt;0x4f&gt;;
    clocks = &lt;&amp;rcar_sound 0&gt;, &lt;&amp;x12_clk&gt;;
    clock-names = "clk_in", "ref_clk";
    cirrus,aux-output-source = &lt;CS2000CP_AUX_OUTPUT_CLK_OUT&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 44:</strong> <span> CS2000CP_AUX_OUTPUT_REF_CLK:  ref_clk input</span></p>

<p id="dt-comment-2"><strong>Line 45:</strong> <span> CS2000CP_AUX_OUTPUT_CLK_IN:   clk_in input</span></p>

<p id="dt-comment-3"><strong>Line 46:</strong> <span> CS2000CP_AUX_OUTPUT_CLK_OUT:  clk_out output</span></p>

<p id="dt-comment-4"><strong>Line 47:</strong> <span> CS2000CP_AUX_OUTPUT_PLL_LOCK: pll lock status</span></p>

</details>
