# Aspeed Low Pin Count (LPC) Bus Controller

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

> Device-tree binding reference for Aspeed Low Pin Count (LPC) Bus 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;aspeed&#45;lpc&#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>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Chia&#45;Wei Wang &#60;chiawei&#95;wang&#64;aspeedtech&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The LPC bus is a means to bridge a host CPU to a number of low-bandwidth peripheral devices, replacing the use of the ISA bus in the age of PCI[0]. The primary use case of the Aspeed LPC controller is as a slave on the bus (typically in a Baseboard Management Controller SoC), but under certain conditions it can also take the role of bus master.
The LPC controller is represented as a multi-function device to account for the mix of functionality, which includes, but is not limited to
* An IPMI Block Transfer[2] Controller
* An LPC Host Interface Controller manages functions exposed to the host such as LPC firmware hub cycles, configuration of the LPC-to-AHB mapping, UART management and bus snoop configuration.
* A set of SuperIO[3] scratch registers enabling implementation of e.g. custom hardware management protocols for handover between the host and baseboard management controller.
Additionally the state of the LPC controller influences the pinmux configuration, therefore the host portion of the controller is exposed as a syscon as a means to arbitrate access.</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**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;aspeed&#44;ast2400&#45;lpc&#45;v2&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;aspeed&#44;ast2500&#45;lpc&#45;v2&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;aspeed&#44;ast2600&#45;lpc&#45;v2&#34;</code></span>

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

**Item 2**

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

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

**Item 3**

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

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

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

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

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

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

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

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

<code>true</code> — No constraints added by this property rule.

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

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

<a id="dt-956ef9ab0eae8b9763ce"></a>

### <code>&#94;lpc&#45;ctrl&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

<a id="dt-6e4808880cde1bfdf050"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-21a44c6bd88ce949ea5b">
<p style="white-space: pre-wrap">The LPC Host Interface Controller manages functions exposed to the host such as
LPC firmware hub cycles, configuration of the LPC-to-AHB mapping, UART management
and bus snoop configuration.</p>
</div>

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

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

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

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

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-7a3a50af172f9298f062"></a> <span id="dt-838826067b9fe1a96cb5"><code>&#34;aspeed&#44;ast2400&#45;lpc&#45;ctrl&#34;</code></span>, <span id="dt-685713da41d51884257b"><code>&#34;aspeed&#44;ast2500&#45;lpc&#45;ctrl&#34;</code></span>, <span id="dt-b60da8b3029bbed0d819"><code>&#34;aspeed&#44;ast2600&#45;lpc&#45;ctrl&#34;</code></span>

<a id="dt-279ed9649a41461711f8"></a>

**<code>reg</code> — not listed as required here**

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

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

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

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

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

**<code>memory&#45;region</code> — not listed as required here**

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

<div id="dt-b0b4985e1a0180839592">
<p style="white-space: pre-wrap">handle to memory reservation for the LPC to AHB mapping region</p>
</div>

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

**<code>flash</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-48e51c35c7d717877e12">[<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-9ecafc98fdfbf8cf0c51">
<p style="white-space: pre-wrap">The SPI flash controller containing the flash to be exposed over the LPC to AHB mapping</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-dc27bcc80f317c4d1137"></a> <span id="dt-69ffd8b7c322568606b0"><code>&#34;compatible&#34;</code></span>, <span id="dt-8b96620f89f58ec7593c"><code>&#34;clocks&#34;</code></span>

<a id="dt-43a9439428abe71d06e7"></a>

### <code>&#94;reset&#45;controller&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-dccdaca92dd4fec26995">
<p style="white-space: pre-wrap">The UARTs present in the ASPEED SoC can have their resets tied to the reset state of the LPC bus. Some systems may chose to modify this configuration</p>
</div>

<a id="dt-705709705ec11c20b6ce"></a>

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

<a id="dt-352755a68c472bc27cf2"></a>

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

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

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

<a id="dt-00a886519d4aafbf3e53"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-41d09a784abab7f695c9"></a> <span id="dt-834fb44f7ac486430767"><code>&#34;aspeed&#44;ast2400&#45;lpc&#45;reset&#34;</code></span>, <span id="dt-9ef878ee8ba30b50ec3c"><code>&#34;aspeed&#44;ast2500&#45;lpc&#45;reset&#34;</code></span>, <span id="dt-db4e1f6303e381bd7baa"><code>&#34;aspeed&#44;ast2600&#45;lpc&#45;reset&#34;</code></span>

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

**<code>reg</code> — not listed as required here**

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

<a id="dt-0d997bd6c0df14633a15"></a>

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

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

**Required in this object (<code>required</code>):** <a id="dt-9774df3f0eeccf9ac20b"></a> <span id="dt-9857d8f8a56b8497f7be"><code>&#34;compatible&#34;</code></span>, <span id="dt-b2b44ea61af23de827f5"><code>&#34;&#35;reset&#45;cells&#34;</code></span>

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

### <code>&#94;lpc&#45;snoop&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-3049450140491130e126">
<p style="white-space: pre-wrap">The LPC snoop interface allows the BMC to listen on and record the data bytes written by the Host to the targeted LPC I/O pots.</p>
</div>

<a id="dt-14082f0886348e04869c"></a>

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

<a id="dt-181a14877f462623a50b"></a>

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

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-8e476b8661246e51147f"></a> <span id="dt-16a6345c51265782c363"><code>&#34;aspeed&#44;ast2400&#45;lpc&#45;snoop&#34;</code></span>, <span id="dt-aafbd97397904cb0a222"><code>&#34;aspeed&#44;ast2500&#45;lpc&#45;snoop&#34;</code></span>, <span id="dt-719ed3c535dadf79e5ea"><code>&#34;aspeed&#44;ast2600&#45;lpc&#45;snoop&#34;</code></span>

<a id="dt-89870f11195f2d5de1f3"></a>

**<code>reg</code> — not listed as required here**

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

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

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

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

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

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

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

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

**<code>snoop&#45;ports</code> — required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-63bc1b8af6e65b9c1e63">[<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>

<div id="dt-611bc05b013ce858ca26">
<p style="white-space: pre-wrap">The LPC I/O ports to snoop</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-d1d48a622df98939c64d"></a> <span id="dt-78223efeba40cfb9d658"><code>&#34;compatible&#34;</code></span>, <span id="dt-5005d669b067e625b54c"><code>&#34;interrupts&#34;</code></span>, <span id="dt-71ce268f5f363f670542"><code>&#34;snoop&#45;ports&#34;</code></span>

<a id="dt-859190abe464a26519b0"></a>

### <code>&#94;uart&#45;routing&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b90d344b18a7e6fc8d35">[<code>&#47;schemas&#47;soc&#47;aspeed&#47;uart&#45;routing&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-soc/aspeed/uart-routing.md#dt-root>)</span>

<div id="dt-ec1a0ca398ddf9cf574f">
<p style="white-space: pre-wrap">The UART routing control under LPC register space</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;address&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ranges&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

> **Value type (<code>type</code>):** <span id="dt-3363ef09170715607dca"><code>&#34;object&#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/arm-gic.h&gt;
#include &lt;dt-bindings/clock/ast2600-clock.h&gt;

lpc: lpc@1e789000 {
    compatible = "aspeed,ast2600-lpc-v2", "simple-mfd", "syscon";
    reg = &lt;0x1e789000 0x1000&gt;;

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges = &lt;0x0 0x1e789000 0x1000&gt;;

    lpc_ctrl: lpc-ctrl@80 {
        compatible = "aspeed,ast2600-lpc-ctrl";
        reg = &lt;0x80 0x80&gt;;
        clocks = &lt;&amp;syscon ASPEED_CLK_GATE_LCLK&gt;;
        memory-region = &lt;&amp;flash_memory&gt;;
        flash = &lt;&amp;spi&gt;;
    };

    lpc_reset: reset-controller@98 {
        compatible = "aspeed,ast2600-lpc-reset";
        reg = &lt;0x98 0x4&gt;;
        #reset-cells = &lt;1&gt;;
    };

    lpc_snoop: lpc-snoop@90 {
        compatible = "aspeed,ast2600-lpc-snoop";
        reg = &lt;0x90 0x8&gt;;
        interrupts = &lt;GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH&gt;;
        snoop-ports = &lt;0x80&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 2:</strong> <span> # Copyright (c) 2021 Aspeed Technology Inc.</span></p>

</details>
