# NVIDIA Tegra Clock and Reset Controller

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

> Device-tree binding reference for NVIDIA Tegra Clock and Reset Controller.

<!-- SPDX-License-Identifier: (GPL-2.0+ 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;nvidia&#44;tegra124&#45;car&#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;Jon Hunter &#60;jonathanh&#64;nvidia&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Thierry Reding &#60;thierry&#46;reding&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Clock and Reset (CAR) is the HW module responsible for muxing and gating
Tegra's clocks, and setting their rates. It comprises CLKGEN and RSTGEN units.</p>
<p style="white-space: pre-wrap">CLKGEN provides the registers to program the PLLs. It controls most of
the clock source programming and most of the clock dividers.</p>
<p style="white-space: pre-wrap">CLKGEN input signals include the external clock for the reference frequency
(12 MHz, 26 MHz) and the external clock for the Real Time Clock (32.768 KHz).</p>
<p style="white-space: pre-wrap">Outputs from CLKGEN are inputs clock of the h/w blocks in the Tegra system.</p>
<p style="white-space: pre-wrap">RSTGEN provides the registers needed to control resetting of each block in
the Tegra system.</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;nvidia&#44;tegra124&#45;car&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;nvidia&#44;tegra132&#45;car&#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-02c38475362b738e226b"></a>

### <code>&#35;reset&#45;cells</code> — required here

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

<a id="dt-9682ab0c32877932d1bd"></a>

### <code>nvidia&#44;external&#45;memory&#45;controller</code> — not listed as required here

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

<div id="dt-52f13b48514a3dc00890">
<p style="white-space: pre-wrap">phandle of the external memory controller node</p>
</div>

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

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

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

### <code>&#94;emc&#45;timings&#45;&#91;0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression

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

<a id="dt-48df4152d8251e3120a4"></a>

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

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

**<code>nvidia&#44;ram&#45;code</code> — not listed as required here**

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

<div id="dt-8e45035ce67f04e2fdd1">
<p style="white-space: pre-wrap">value of the RAM_CODE field in the PMC_STRAPPING_OPT_A register that this timing set is used for</p>
</div>

<a id="dt-71f7d1b6cd47af08be62"></a>

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

<a id="dt-74868145e13ff4bdfab2"></a>

**<code>&#94;timing&#45;&#91;0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression**

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

<a id="dt-73333684559ea90edcdb"></a>

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

<a id="dt-34ea8af818eb76bf70cf"></a>

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

<div id="dt-cb23c302c74306b5f031">
<p style="white-space: pre-wrap">external memory clock rate in Hz</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-aa575dc8334ffaeb2285"><code>1000000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-28b5e151679f39212be3"><code>1000000000</code></span>

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

**<code>nvidia&#44;parent&#45;clock&#45;frequency</code> — required here**

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

<div id="dt-af283c3b1197d88dee9f">
<p style="white-space: pre-wrap">rate of parent clock in Hz</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-37b3112a5a2a8947cdc5"><code>1000000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-3936ef93a98c3777aab6"><code>1000000000</code></span>

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

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

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

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

<a id="dt-17a300570a42ab61d84d"></a>

**Item 1**

> <div id="dt-aeeaed74b70dba37c46d">
> <p style="white-space: pre-wrap">parent clock of EMC</p>
> </div>

<a id="dt-04be76e48789521cee35"></a>

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

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

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

<a id="dt-654c5aef4205fe4e816c"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-a40607294ccc9998707d"><code>&#34;emc&#45;parent&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-953b79b36bec76169bd4"></a> <span id="dt-683f48622f748edb75b9"><code>&#34;clock&#45;frequency&#34;</code></span>, <span id="dt-8fc770f0a50bd52bc7e9"><code>&#34;nvidia&#44;parent&#45;clock&#45;frequency&#34;</code></span>, <span id="dt-c2ae629e04808a030ac7"><code>&#34;clocks&#34;</code></span>, <span id="dt-fa482aeb346d198975d6"><code>&#34;clock&#45;names&#34;</code></span>

<a id="dt-d88f32d3fb6ff507c08e"></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-50d4dd64a4581a6811fa"></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>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;reset&#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/tegra124-car.h&gt;

car: clock-controller@60006000 {
    compatible = "nvidia,tegra124-car";
    reg = &lt;0x60006000 0x1000&gt;;
    #clock-cells = &lt;1&gt;;
    #reset-cells = &lt;1&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+ OR BSD-2-Clause)</span></p>

</details>
