# ST-Ericsson DB8500 (U8500) clocks

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

> Device-tree binding reference for ST-Ericsson DB8500 (U8500) clocks.

<!-- 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;stericsson&#44;u8500&#45;clks&#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;Ulf Hansson &#60;ulf&#46;hansson&#64;linaro&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Linus Walleij &#60;linusw&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">While named "U8500 clocks" these clocks are inside the DB8500 digital baseband system-on-chip and its siblings such as DB8520. These bindings consider the clocks present in the SoC itself, not off-chip clocks. There are four different on-chip clocks - RTC (32 kHz), CPU clock (SMP TWD), PRCMU (power reset and control management unit) clocks and PRCC (peripheral reset and clock controller) clocks. For some reason PRCC 4 does not exist so the itemization can be a bit unintuitive.</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;stericsson&#44;u8500&#45;clks&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;stericsson&#44;u8540&#45;clks&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;stericsson&#44;u9540&#45;clks&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">PRCC 1 register area</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">PRCC 2 register area</p>
> </div>

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">PRCC 3 register area</p>
> </div>

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

**Item 4**

> <div id="dt-e7b71b4619e949c538b1">
> <p style="white-space: pre-wrap">PRCC 5 register area</p>
> </div>

<a id="dt-55b482bd3ef74ad8e49c"></a>

**Item 5**

> <div id="dt-9034b08616e8a84a1200">
> <p style="white-space: pre-wrap">PRCC 6 register area</p>
> </div>

<a id="dt-84a5ef0950c34ea722cc"></a>

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

<div id="dt-d1d7781e3ff62b811918">
<p style="white-space: pre-wrap">A subnode with one clock cell for PRCMU (power, reset, control management unit) clocks. The cell indicates which PRCMU clock in the prcmu-clock node the consumer wants to use.</p>
</div>

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

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

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

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

**<code>&#35;clock&#45;cells</code> — not listed as required here**

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

<a id="dt-b03ce38ad123c7f5f291"></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-c2ea31f1bf6bf3ba3bb5"></a>

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

<div id="dt-3c18d73a941a8b3dbd16">
<p style="white-space: pre-wrap">A subnode with two clock cells for PRCC (peripheral reset and clock controller) peripheral clocks. The first cell indicates which PRCC block the consumer wants to use, possible values are 1, 2, 3, 5, 6. The second cell indicates which clock inside the PRCC block it wants, possible values are 0 thru 31.</p>
</div>

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

<a id="dt-08c88a49714a806131b0"></a>

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

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

**<code>&#35;clock&#45;cells</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-fad5a0ff491ad7c9ca9c"><code>2</code></span>

<a id="dt-30218ec6ed18ffb6d8b9"></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-f492b7b3c2d03b6a32be"></a>

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

<div id="dt-1cf1fb2b90c5867e951f">
<p style="white-space: pre-wrap">A subnode with two clock cells for PRCC (peripheral reset and clock controller) kernel clocks. The first cell indicates which PRCC block the consumer wants to use, possible values are 1, 2, 3, 5, 6. The second cell indicates which clock inside the PRCC block it wants, possible values are 0 thru 31.</p>
</div>

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

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

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

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

**<code>&#35;clock&#45;cells</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-19c84f6ede9a152ad6f3"><code>2</code></span>

<a id="dt-baa2b04aed2abb885593"></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-5b69d47dd20cf8640ed9"></a>

### <code>prcc&#45;reset&#45;controller</code> — not listed as required here

<div id="dt-dba9d932e71435c24827">
<p style="white-space: pre-wrap">A subnode with two reset cells for the reset portions of the PRCC (peripheral reset and clock controller). The first cell indicates which PRCC block the consumer wants to use, possible values are 1, 2, 3 5 and 6. The second cell indicates which reset line inside the PRCC block it wants to control, possible values are 0 thru 31.</p>
</div>

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

<a id="dt-443afc88886417721c6e"></a>

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

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

**<code>&#35;reset&#45;cells</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-17dcd6e23821b9948597"><code>2</code></span>

<a id="dt-7aa22a6bab9b7a03c674"></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-4c47892203c3a15cf435"></a>

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

<div id="dt-eb48928275ede102fc35">
<p style="white-space: pre-wrap">A subnode with zero clock cells for the 32kHz RTC clock.</p>
</div>

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

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

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

<a id="dt-47de58fe1d64750516ea"></a>

**<code>&#35;clock&#45;cells</code> — not listed as required here**

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

<a id="dt-55ce9e5c45d0cac4df44"></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-7ca03ae2c46ba1a497e9"></a>

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

<div id="dt-42ffb12bbdfae0e133d6">
<p style="white-space: pre-wrap">A subnode for the ARM SMP Timer Watchdog cluster with zero clock cells.</p>
</div>

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

<a id="dt-451f3eb6ce039006c3c2"></a>

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

<a id="dt-530b727128aefdfbce75"></a>

**<code>&#35;clock&#45;cells</code> — not listed as required here**

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

<a id="dt-aba8de0409bcef1c9e9d"></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-8158262ce14e083744db"></a>

### <code>clkout&#45;clock</code> — not listed as required here

<div id="dt-c293d53ab28928b6dac4">
<p style="white-space: pre-wrap">A subnode with three clock cells for externally routed clocks, output clocks. These are two PRCMU-internal clocks that can be divided and muxed out on the pads of the DB8500 SoC.</p>
</div>

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

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

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

<a id="dt-20dc7f010c7b43d6ccd7"></a>

**<code>&#35;clock&#45;cells</code> — not listed as required here**

<div id="dt-2567571f73d401d9dbc6">
<p style="white-space: pre-wrap">The first cell indicates which output clock we are using, possible values are 0 (CLKOUT1) and 1 (CLKOUT2). The second cell indicates which clock we want to use as source, possible values are 0 thru 7, see the defines for the different source clocks. The third cell is a divider, legal values are 1 thru 63.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-8834362ccbfbb059f637"><code>3</code></span>

<a id="dt-7287133e3b81514ba9d9"></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;prcmu&#45;clock&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;prcc&#45;periph&#45;clock&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;prcc&#45;kernel&#45;clock&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;rtc32k&#45;clock&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;smp&#45;twd&#45;clock&#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/ste-db8500-clkout.h&gt;
clocks@8012 {
  compatible = "stericsson,u8500-clks";
  reg = &lt;0x8012f000 0x1000&gt;, &lt;0x8011f000 0x1000&gt;,
        &lt;0x8000f000 0x1000&gt;, &lt;0xa03ff000 0x1000&gt;,
        &lt;0xa03cf000 0x1000&gt;;

  prcmu_clk: prcmu-clock {
    #clock-cells = &lt;1&gt;;
  };

  prcc_pclk: prcc-periph-clock {
    #clock-cells = &lt;2&gt;;
  };

  prcc_kclk: prcc-kernel-clock {
    #clock-cells = &lt;2&gt;;
  };

  prcc_reset: prcc-reset-controller {
    #reset-cells = &lt;2&gt;;
  };

  rtc_clk: rtc32k-clock {
    #clock-cells = &lt;0&gt;;
  };

  smp_twd_clk: smp-twd-clock {
    #clock-cells = &lt;0&gt;;
  };

  clkout_clk: clkout-clock {
    #clock-cells = &lt;3&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>
