# Canaan Kendryte K210 System Controller

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

> Device-tree binding reference for Canaan Kendryte K210 System Controller.

<!-- 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;mfd&#47;canaan&#44;k210&#45;sysctl&#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;Damien Le Moal &#60;dlemoal&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Canaan Inc. Kendryte K210 SoC system controller which provides a register map for controlling the clocks, reset signals and pin power domains of the SoC.</p>
</div>

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

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

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;canaan&#44;k210&#45;sysctl&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;syscon&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-985600cab9ae8398068d"><code>&#34;simple&#45;mfd&#34;</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>

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">System controller Advanced Power Bus (APB) interface clock source.</p>
</div>

<a id="dt-041d7cd76b652a5de06a"></a>

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;pclk&#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-d13e593686332195aa86"></a>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c79d3291aa8a087c9738">[<code>&#47;schemas&#47;clock&#47;canaan&#44;k210&#45;clk&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-clock/canaan-k210-clk.md#dt-root>)</span>

<div id="dt-94b2b72852f35c738bf2">
<p style="white-space: pre-wrap">Clock controller for the SoC clocks. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/clock/canaan,k210-clk.yaml.</p>
</div>

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-984ca9b72518300f9348">[<code>&#47;schemas&#47;reset&#47;canaan&#44;k210&#45;rst&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-reset/canaan-k210-rst.md#dt-root>)</span>

<div id="dt-428e39e203a90e877a36">
<p style="white-space: pre-wrap">Reset controller for the SoC. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/reset/canaan,k210-rst.yaml.</p>
</div>

<a id="dt-7c6125c9a07c0cd4e9e3"></a>

### <code>syscon&#45;reboot</code> — not listed as required here

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4a7fd3617e3107c5f6c4">[<code>&#47;schemas&#47;power&#47;reset&#47;syscon&#45;reboot&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-power/reset/syscon-reboot.md#dt-root>)</span>

<div id="dt-ae5363bd90945a9eb787">
<p style="white-space: pre-wrap">Reboot method for the SoC. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml.</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;clocks&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;reg&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;controller&#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/k210-clk.h&gt;
#include &lt;dt-bindings/reset/k210-rst.h&gt;

clocks {
  in0: oscllator {
    compatible = "fixed-clock";
    #clock-cells = &lt;0&gt;;
    clock-frequency = &lt;26000000&gt;;
  };
};

sysctl: syscon@50440000 {
  compatible = "canaan,k210-sysctl",
               "syscon", "simple-mfd";
  reg = &lt;0x50440000 0x100&gt;;
  clocks = &lt;&amp;sysclk K210_CLK_APB1&gt;;
  clock-names = "pclk";

  sysclk: clock-controller {
    #clock-cells = &lt;1&gt;;
    compatible = "canaan,k210-clk";
    clocks = &lt;&amp;in0&gt;;
  };

  sysrst: reset-controller {
    compatible = "canaan,k210-rst";
    #reset-cells = &lt;1&gt;;
  };

  reboot: syscon-reboot {
    compatible = "syscon-reboot";
    regmap = &lt;&amp;sysctl&gt;;
    offset = &lt;48&gt;;
    mask = &lt;1&gt;;
    value = &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-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 37:</strong> <span> Child node</span></p>

<p id="dt-comment-2"><strong>Line 46:</strong> <span> Child node</span></p>

<p id="dt-comment-3"><strong>Line 55:</strong> <span> Child node</span></p>

</details>
