# ASPEED BMC KCS Devices

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

> Device-tree binding reference for ASPEED BMC KCS Devices.

<!-- 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;ipmi&#47;aspeed&#44;ast2400&#45;kcs&#45;bmc&#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;Andrew Jeffery &#60;andrew&#64;aj&#46;id&#46;au&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Aspeed BMC SoCs typically use the Keyboard-Controller-Style (KCS)
interfaces on the LPC bus for in-band IPMI communication with their host.</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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Channel ID derived from reg</p>
> </div>
>
> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-987f821e94168faec68c"></a> <span id="dt-d563fad5a821afbc88df"><code>&#34;aspeed&#44;ast2400&#45;kcs&#45;bmc&#45;v2&#34;</code></span>, <span id="dt-e9933a7be8305354c303"><code>&#34;aspeed&#44;ast2500&#45;kcs&#45;bmc&#45;v2&#34;</code></span>, <span id="dt-8724e8b5c55e834f5229"><code>&#34;aspeed&#44;ast2600&#45;kcs&#45;bmc&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">Old-style with explicit channel ID, no reg</p>
> </div>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-7a0984fd34c2f9bbace7"><code>true</code></span>
>
> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-0a200203251eef03b3cb"></a> <span id="dt-21c6fa68ae1c49ecd907"><code>&#34;aspeed&#44;ast2400&#45;kcs&#45;bmc&#34;</code></span>, <span id="dt-d3500e084670fdb0caa2"><code>&#34;aspeed&#44;ast2500&#45;kcs&#45;bmc&#34;</code></span>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</code></span>

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

### <code>reg</code> — not listed as 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">IDR register</p>
> </div>

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

**Item 2**

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

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

**Item 3**

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

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

### <code>clocks</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>1</code></span>

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

### <code>aspeed&#44;lpc&#45;io&#45;reg</code> — not listed as required here

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-fedbc93837119a24eac8"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-51e96639c2d05e2cfde3"><code>2</code></span>

<div id="dt-977cba92db86bc1af578">
<p style="white-space: pre-wrap">The host CPU LPC IO data and status addresses for the device. For most
channels the status address is derived from the data address, but the
status address may be optionally provided.</p>
</div>

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

### <code>aspeed&#44;lpc&#45;interrupts</code> — not listed as required here

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1d4842d7cf903ac8af7b"><code>2</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-8cb39463fdb210a86e35"><code>2</code></span>

<div id="dt-e3acd49a7d38b6297b01">
<p style="white-space: pre-wrap">A 2-cell property expressing the LPC SerIRQ number and the interrupt
level/sense encoding (specified in the standard fashion).</p>
<p style="white-space: pre-wrap">Note that the generated interrupt is issued from the BMC to the host, and
thus the target interrupt controller is not captured by the BMC's
devicetree.</p>
</div>

<a id="dt-990bf4c0afbe55e7fdc3"></a>

### <code>kcs&#95;chan</code> — not listed as required here

**Deprecated (<code>deprecated</code>):** <span id="dt-315ba2e834f0eb8eeef9"><code>true</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-dbbc0af9c0718822ad45">[<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-b132bc4a976fb3a9e575">
<p style="white-space: pre-wrap">The LPC channel number in the controller</p>
</div>

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

### <code>kcs&#95;addr</code> — not listed as required here

**Deprecated (<code>deprecated</code>):** <span id="dt-b90088b3a5468126ce39"><code>true</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a8c3f4ed035a969c3e6e">[<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-a7dbdb7b08fc95646dc2">
<p style="white-space: pre-wrap">The host CPU IO map address</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;interrupts&#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-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-b5c9dbe70762f9ad7bb5"></a> <span id="dt-d017b1b1b5a0bb01c549"><code>&#34;aspeed&#44;ast2400&#45;kcs&#45;bmc&#34;</code></span>, <span id="dt-b1891799a94ae03bda89"><code>&#34;aspeed&#44;ast2500&#45;kcs&#45;bmc&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;kcs&#95;chan&#34;</code></span>, <span id="dt-5652a54c9ddda3dcd6bf"><code>&#34;kcs&#95;addr&#34;</code></span>
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-9f814971a49b2b16029a"></a> <span id="dt-37139fbd463ab3b18082"><code>&#34;reg&#34;</code></span>, <span id="dt-8c03dcb3d185395e0247"><code>&#34;aspeed&#44;lpc&#45;io&#45;reg&#34;</code></span>

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
kcs3: kcs@24 {
    compatible = "aspeed,ast2600-kcs-bmc";
    reg = &lt;0x24 0x1&gt;, &lt;0x30 0x1&gt;, &lt;0x3c 0x1&gt;;
    aspeed,lpc-io-reg = &lt;0xca2&gt;;
    aspeed,lpc-interrupts = &lt;11 IRQ_TYPE_LEVEL_LOW&gt;;
    interrupts = &lt;8&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> maxItems: 3</span></p>

</details>
