# IDT VersaClock 5 and 6 programmable I2C clock generators

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

> Device-tree binding reference for IDT VersaClock 5 and 6 programmable I2C clock generators.

<!-- 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;idt&#44;versaclock5&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The IDT VersaClock 5 and VersaClock 6 are programmable I2C
clock generators providing from 3 to 12 output clocks.</p>
<p style="white-space: pre-wrap">When referencing the provided clock in the DT using phandle and clock
specifier, the following mapping applies:</p>
<pre><code>- 5P49V5923:
  0 -- OUT0_SEL_I2CB
  1 -- OUT1
  2 -- OUT2</code></pre>
<pre><code>- 5P49V5933:
  0 -- OUT0_SEL_I2CB
  1 -- OUT1
  2 -- OUT4</code></pre>
<pre><code>- other parts:
  0 -- OUT0_SEL_I2CB
  1 -- OUT1
  2 -- OUT2
  3 -- OUT3
  4 -- OUT4</code></pre>
<p style="white-space: pre-wrap">The idt,shutdown and idt,output-enable-active properties control the
SH (en_global_shutdown) and SP bits of the Primary Source and Shutdown
Register, respectively. Their behavior is summarized by the following
table:</p>
<p style="white-space: pre-wrap">SH SP Output when the SD/OE pin is Low/High
== == =====================================
 0  0 Active/Inactive
 0  1 Inactive/Active
 1  0 Active/Shutdown
 1  1 Inactive/Shutdown</p>
<p style="white-space: pre-wrap">The case where SH and SP are both 1 is likely not very interesting.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Luca Ceresoli &#60;luca&#46;ceresoli&#64;bootlin&#46;com&#62;&#34;</code></span>

<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;idt&#44;5p49v5923&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;idt&#44;5p49v5925&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;idt&#44;5p49v5933&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;idt&#44;5p49v5935&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;idt&#44;5p49v60&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;idt&#44;5p49v6901&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;idt&#44;5p49v6965&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;idt&#44;5p49v6975&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">I2C device address</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-917ea1ad16cfd55f8ef7"></a> <span id="dt-808e90b1016f267b83cf"><code>104</code></span>, <span id="dt-3f3177878e4e0b370619"><code>106</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-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — not listed as 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>2</code></span>

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-432ec048388c24ed7024"></a> <span id="dt-f91d261c31c4a5d1c249"><code>&#34;xin&#34;</code></span>, <span id="dt-870a3b77177505d0a9af"><code>&#34;clkin&#34;</code></span>

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

### <code>clocks</code> — not listed as 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>2</code></span>

<a id="dt-3132d46f9011f2f73fc9"></a>

### <code>idt&#44;xtal&#45;load&#45;femtofarads</code> — not listed as required here

**Minimum value (<code>minimum</code>):** <span id="dt-0353154dd12a73a51018"><code>9000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-139b2b49fdfd80ff34a2"><code>22760</code></span>

<div id="dt-9f41272b701a46634af9">
<p style="white-space: pre-wrap">Optional load capacitor for XTAL1 and XTAL2</p>
</div>

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

### <code>idt&#44;shutdown</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6a2a5ad0664426ca0499">[<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-ed80999ea3bec0679250"></a> <span id="dt-f21ac0db8eeebf5c7cc4"><code>0</code></span>, <span id="dt-6ff790aeb3a8d5c3b83a"><code>1</code></span>

<div id="dt-b0002ebe108b3b4f5b06">
<p style="white-space: pre-wrap">If 1, this enables the shutdown functionality: the chip will be
shut down if the SD/OE pin is driven high. If 0, this disables the
shutdown functionality: the chip will never be shut down based on
the value of the SD/OE pin. This property corresponds to the SH
bit of the Primary Source and Shutdown Register.</p>
</div>

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

### <code>idt&#44;output&#45;enable&#45;active</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9f4d1caa5ca8b22168cf">[<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-43ac282051d546fbcb5c"></a> <span id="dt-b244bab0f11de3a6b8e6"><code>0</code></span>, <span id="dt-8951374fd31e574519ce"><code>1</code></span>

<div id="dt-83648a6c50774e0413b5">
<p style="white-space: pre-wrap">If 1, this enables output when the SD/OE pin is high, and disables
output when the SD/OE pin is low. If 0, this disables output when
the SD/OE pin is high, and enables output when the SD/OE pin is
low. This corresponds to the SP bit of the Primary Source and
Shutdown Register.</p>
</div>

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

## Properties matching a name pattern (<code>patternProperties</code>)

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

### <code>&#94;OUT&#91;1&#45;4&#93;&#36;</code> — name matches this regular expression

**Value type (<code>type</code>):** <span id="dt-0096827f34bb537a906d"><code>&#34;object&#34;</code></span>

<div id="dt-2bd3d7c03240838cf8ad">
<p style="white-space: pre-wrap">Description of one of the outputs (OUT1..OUT4). See "Clock1 Output Configuration" in the Versaclock 5/6/6E Family Register Description and Programming Guide.</p>
</div>

<a id="dt-23881ddf1855ffb7ff36"></a>

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

<a id="dt-2a097cdef0398ed50a47"></a>

**<code>idt&#44;mode</code> — not listed as required here**

<div id="dt-769be41b3d39b8d2e40a">
<p style="white-space: pre-wrap">The output drive mode. Values defined in dt-bindings/clock/versaclock.h</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-8ccd3dab9743cc81de2c"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-2e50fbc2cadb57e42516"><code>6</code></span>

<a id="dt-8b4fce36b6b85ca64087"></a>

**<code>idt&#44;voltage&#45;microvolt</code> — not listed as required here**

<div id="dt-3e777680b42105dd11c4">
<p style="white-space: pre-wrap">The output drive voltage.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-bc4f9c0054d087629488"></a> <span id="dt-9efab989a9837c62f4b5"><code>1800000</code></span>, <span id="dt-4fb7b79b4ee8694f6c14"><code>2500000</code></span>, <span id="dt-b7456f7c0055f9ab0ae2"><code>3300000</code></span>

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

**<code>idt&#44;slew&#45;percent</code> — not listed as required here**

<div id="dt-beae319624331caad7c8">
<p style="white-space: pre-wrap">The Slew rate control for CMOS single-ended.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-81149b5814ab82b148dc"></a> <span id="dt-9f5b147be0acaba1b17b"><code>80</code></span>, <span id="dt-9ab1e67fe615adfc053c"><code>85</code></span>, <span id="dt-1f7f53ebdc9f77ec206b"><code>90</code></span>, <span id="dt-53a6093317e2996f730a"><code>100</code></span>

<a id="dt-14ce8e820698be29eac7"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

**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-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**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-867fe1927430e9b33ede"></a> <span id="dt-7226965ee25a457638c7"><code>&#34;idt&#44;5p49v5933&#34;</code></span>, <span id="dt-2f3cfadcb56c1f0fc8f8"><code>&#34;idt&#44;5p49v5935&#34;</code></span>, <span id="dt-26e3f364c6eac5aaaf0e"><code>&#34;idt&#44;5p49v6975&#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-935ce0cf7d790018ed2d"></a>
> >
> > **<code>clock&#45;names</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-ecc90d1956c22b2b8b9a"><code>&#34;clkin&#34;</code></span>
> >
> > <a id="dt-065d246b482f4e9fba10"></a>
> >
> > **<code>clocks</code> — not listed as required here**
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-171c87b1275c34018cc2"><code>1</code></span>
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-9f814971a49b2b16029a"></a> <span id="dt-37139fbd463ab3b18082"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-8c03dcb3d185395e0247"><code>&#34;clocks&#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/versaclock.h&gt;

/* 25MHz reference crystal */
ref25: ref25m {
    compatible = "fixed-clock";
    #clock-cells = &lt;0&gt;;
    clock-frequency = &lt;25000000&gt;;
};

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

    /* IDT 5P49V5923 I2C clock generator */
    vc5: clock-generator@6a {
        compatible = "idt,5p49v5923";
        reg = &lt;0x6a&gt;;
        #clock-cells = &lt;1&gt;;

        /* Connect XIN input to 25MHz reference */
        clocks = &lt;&amp;ref25m&gt;;
        clock-names = "xin";

        /* Set the SD/OE pin's settings */
        idt,shutdown = &lt;0&gt;;
        idt,output-enable-active = &lt;0&gt;;

        OUT1 {
            idt,mode = &lt;VC5_CMOSD&gt;;
            idt,voltage-microvolt = &lt;1800000&gt;;
            idt,slew-percent = &lt;80&gt;;
        };

        OUT4 {
            idt,mode = &lt;VC5_LVDS&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 139:</strong> <span> Devices with builtin crystal + optional external input</span></p>

<p id="dt-comment-2"><strong>Line 146:</strong> <span> Devices without builtin crystal</span></p>

</details>
