# NXP LPC1850 Clock Control Unit (CCU)

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

> Device-tree binding reference for NXP LPC1850 Clock Control Unit (CCU).

<!-- 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;nxp&#44;lpc1850&#45;ccu&#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">Each CGU base clock has several clock branches which can be turned on or off independently by the Clock Control Units CCU1 or CCU2. The branch clocks are distributed between CCU1 and CCU2.
Above text taken from NXP LPC1850 User Manual</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Frank Li &#60;Frank&#46;Li&#64;nxp&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;nxp&#44;lpc1850&#45;ccu&#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>8</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>8</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;base&#95;usb0&#95;clk&#34;</code></span>, <span id="dt-870a3b77177505d0a9af"><code>&#34;base&#95;periph&#95;clk&#34;</code></span>, <span id="dt-00aa73ed9ba3241d98e7"><code>&#34;base&#95;usb1&#95;clk&#34;</code></span>, <span id="dt-fea332d080b2f3a5da06"><code>&#34;base&#95;cpu&#95;clk&#34;</code></span>, <span id="dt-0f5b59cc7edc472ab4a4"><code>&#34;base&#95;spifi&#95;clk&#34;</code></span>, <span id="dt-6fa54eb6eeec8b2987ab"><code>&#34;base&#95;spi&#95;clk&#34;</code></span>, <span id="dt-acc2dc9efb41ae2d028a"><code>&#34;base&#95;apb1&#95;clk&#34;</code></span>, <span id="dt-65da97d63e70c3612a39"><code>&#34;base&#95;apb3&#95;clk&#34;</code></span>, <span id="dt-e858ace0471f4db0d4d0"><code>&#34;base&#95;adchs&#95;clk&#34;</code></span>, <span id="dt-4e53ec1eb59d22fe21de"><code>&#34;base&#95;sdio&#95;clk&#34;</code></span>, <span id="dt-953e1436bbfd315e4c33"><code>&#34;base&#95;ssp0&#95;clk&#34;</code></span>, <span id="dt-c40605c3755b8b2de149"><code>&#34;base&#95;ssp1&#95;clk&#34;</code></span>, <span id="dt-e86ba022161b358fb697"><code>&#34;base&#95;uart0&#95;clk&#34;</code></span>, <span id="dt-c8ca3e54dd8842446874"><code>&#34;base&#95;uart1&#95;clk&#34;</code></span>, <span id="dt-759c83d8b03babfac511"><code>&#34;base&#95;uart2&#95;clk&#34;</code></span>, <span id="dt-eb9893f4b46c3060e245"><code>&#34;base&#95;uart3&#95;clk&#34;</code></span>, <span id="dt-a0a8a055ce77c8e1e80a"><code>&#34;base&#95;audio&#95;clk&#34;</code></span>

<div id="dt-d153c20aa0faf1618c41">
<p style="white-space: pre-wrap">Which branch clocks that are available on the CCU depends on the specific LPC part. Check the user manual for your specific part.
A list of CCU clocks can be found in dt-bindings/clock/lpc18xx-ccu.h.</p>
</div>

**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-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/lpc18xx-cgu.h&gt;

clock-controller@40051000 {
    compatible = "nxp,lpc1850-ccu";
    reg = &lt;0x40051000 0x1000&gt;;
    #clock-cells = &lt;1&gt;;
    clocks = &lt;&amp;cgu BASE_APB3_CLK&gt;, &lt;&amp;cgu BASE_APB1_CLK&gt;,
             &lt;&amp;cgu BASE_SPIFI_CLK&gt;, &lt;&amp;cgu BASE_CPU_CLK&gt;,
             &lt;&amp;cgu BASE_PERIPH_CLK&gt;, &lt;&amp;cgu BASE_USB0_CLK&gt;,
             &lt;&amp;cgu BASE_USB1_CLK&gt;, &lt;&amp;cgu BASE_SPI_CLK&gt;;
    clock-names = "base_apb3_clk",   "base_apb1_clk",
                  "base_spifi_clk",  "base_cpu_clk",
                  "base_periph_clk", "base_usb0_clk",
                  "base_usb1_clk",   "base_spi_clk";
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/clock/lpc18xx-cgu.h&gt;

clock-controller@40052000 {
    compatible = "nxp,lpc1850-ccu";
    reg = &lt;0x40052000 0x1000&gt;;
    #clock-cells = &lt;1&gt;;
    clocks = &lt;&amp;cgu BASE_AUDIO_CLK&gt;, &lt;&amp;cgu BASE_UART3_CLK&gt;,
             &lt;&amp;cgu BASE_UART2_CLK&gt;, &lt;&amp;cgu BASE_UART1_CLK&gt;,
             &lt;&amp;cgu BASE_UART0_CLK&gt;, &lt;&amp;cgu BASE_SSP1_CLK&gt;,
             &lt;&amp;cgu BASE_SSP0_CLK&gt;,  &lt;&amp;cgu BASE_SDIO_CLK&gt;;
    clock-names = "base_audio_clk", "base_uart3_clk",
                  "base_uart2_clk", "base_uart1_clk",
                  "base_uart0_clk", "base_ssp1_clk",
                  "base_ssp0_clk",  "base_sdio_clk";
};
</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>
