# Renesas 5p35023 VersaClock 3 programmable I2C clock generator

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

> Device-tree binding reference for Renesas 5p35023 VersaClock 3 programmable I2C clock generator.

<!-- 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;renesas&#44;5p35023&#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;Biju Das &#60;biju&#46;das&#46;jz&#64;bp&#46;renesas&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The 5P35023 is a VersaClock programmable clock generator and
is designed for low-power, consumer, and high-performance PCI
express applications. The 5P35023 device is a three PLL
architecture design, and each PLL is individually programmable
and allowing for up to 6 unique frequency outputs.</p>
<p style="white-space: pre-wrap">An internal OTP memory allows the user to store the configuration
in the device. After power up, the user can change the device register
settings through the I2C interface when I2C mode is selected.</p>
<p style="white-space: pre-wrap">The driver can read a full register map from the DT, and will use that
register map to initialize the attached part (via I2C) when the system
boots. Any configuration not supported by the common clock framework
must be done via the full register map, including optimized settings.</p>
<p style="white-space: pre-wrap">Link to datasheet:
https://www.renesas.com/us/en/products/clocks-timing/clock-generation/programmable-clocks/5p35023-versaclock-3s-programmable-clock-generator</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;renesas&#44;5l35023&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;renesas&#44;5p35023&#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

<div id="dt-6709a835409866cbd3af">
<p style="white-space: pre-wrap">The index in the assigned-clocks is mapped to the output clock as below 0 - REF, 1 - SE1, 2 - SE2, 3 - SE3, 4 - DIFF1, 5 - DIFF2.</p>
</div>

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

<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-91279cf6c81eed7cd1b7"></a>

### <code>renesas&#44;settings</code> — not listed as required here

<div id="dt-30e8161b4108107ef2db">
<p style="white-space: pre-wrap">Optional, complete register map of the device. Optimized settings for the device must be provided in full and are written during initialization.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9a4f8967754f088e5bc1">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint8&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-184849745c5e941c3ec5>)</span>

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

<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">i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    versa3: clock-generator@68 {
        compatible = "renesas,5p35023";
        reg = &lt;0x68&gt;;
        #clock-cells = &lt;1&gt;;

        clocks = &lt;&amp;x1&gt;;

        renesas,settings = [
            80 00 11 19 4c 02 23 7f 83 19 08 a9 5f 25 24 bf
            00 14 7a e1 00 00 00 00 01 55 59 bb 3f 30 90 b6
            80 b0 45 c4 95
        ];

        assigned-clocks = &lt;&amp;versa3 0&gt;, &lt;&amp;versa3 1&gt;,
                          &lt;&amp;versa3 2&gt;, &lt;&amp;versa3 3&gt;,
                          &lt;&amp;versa3 4&gt;, &lt;&amp;versa3 5&gt;;
        assigned-clock-rates = &lt;24000000&gt;, &lt;11289600&gt;,
                               &lt;11289600&gt;, &lt;12000000&gt;,
                               &lt;25000000&gt;, &lt;12288000&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>
