# APM X-Gene SoC EDAC

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

> Device-tree binding reference for APM X-Gene SoC EDAC.

<!-- 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;edac&#47;apm&#44;xgene&#45;edac&#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;Khuong Dinh &#60;khuong&#64;os&#46;amperecomputing&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">EDAC node is defined to describe on-chip error detection and correction.
The following error types are supported:</p>
<pre><code>  memory controller  - Memory controller
  PMD (L1/L2)        - Processor module unit (PMD) L1/L2 cache
  L3                 - L3 cache controller
  SoC                - SoC IPs such as Ethernet, SATA, etc</code></pre>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;apm&#44;xgene&#45;edac&#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">CPU bus (PCP) resource</p>
> </div>

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

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

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

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

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

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

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

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

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

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Interrupt-specifier for MCU, PMD, L3, or SoC error IRQ(s).</p>
</div>

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">MCU error IRQ</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">PMD error IRQ</p>
> </div>

<a id="dt-6825e597892563d56556"></a>

**Item 3**

> <div id="dt-2c85367ad575dfda8b35">
> <p style="white-space: pre-wrap">L3 error IRQ</p>
> </div>

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

**Item 4**

> <div id="dt-aa4f93a6c04967e709f9">
> <p style="white-space: pre-wrap">SoC error IRQ</p>
> </div>

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

<a id="dt-99815581acea1a606c92"></a>

### <code>regmap&#45;csw</code> — required here

<div id="dt-5b2b0e0ecf28264d9e84">
<p style="white-space: pre-wrap">Regmap of the CPU switch fabric (CSW) resource.</p>
</div>

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

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

### <code>regmap&#45;mcba</code> — required here

<div id="dt-9450b566d2f9636fef13">
<p style="white-space: pre-wrap">Regmap of the MCB-A (memory bridge) resource.</p>
</div>

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

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

### <code>regmap&#45;mcbb</code> — required here

<div id="dt-f2f78a715858b0ddc273">
<p style="white-space: pre-wrap">Regmap of the MCB-B (memory bridge) resource.</p>
</div>

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

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

### <code>regmap&#45;efuse</code> — required here

<div id="dt-0c7ae06f286a8e2d799d">
<p style="white-space: pre-wrap">Regmap of the PMD efuse resource.</p>
</div>

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

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

### <code>regmap&#45;rb</code> — not listed as required here

<div id="dt-7e29bf2bd31c57930110">
<p style="white-space: pre-wrap">Regmap of the register bus resource (optional for compatibility).</p>
</div>

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

**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;regmap&#45;csw&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;regmap&#45;mcba&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;regmap&#45;mcbb&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;regmap&#45;efuse&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;reg&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;interrupts&#34;</code></span>

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

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

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

### <code>&#94;edacmc&#64;</code> — name matches this regular expression

<div id="dt-953868112a18baa65c4e">
<p style="white-space: pre-wrap">Memory controller subnode</p>
</div>

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

<a id="dt-18cfb443b1d4c6396219"></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-969510f49815682b6151"></a>

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

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

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

**Exact value (<code>const</code>):** <span id="dt-d1894d24b3ded5982ae7"><code>&#34;apm&#44;xgene&#45;edac&#45;mc&#34;</code></span>

<a id="dt-86f0e04bf15a4a9ef786"></a>

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

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

<a id="dt-12239ba71a4686abad57"></a>

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

<div id="dt-5ba39204a52cf420243b">
<p style="white-space: pre-wrap">Instance number of the memory controller.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-5028eb8668f2b240433c"><code>3</code></span>

**Required in this object (<code>required</code>):** <a id="dt-c837655a83d0a20c9154"></a> <span id="dt-462983f41bd4c3e4c746"><code>&#34;compatible&#34;</code></span>, <span id="dt-fd1f29bb9a4f63e7e24f"><code>&#34;reg&#34;</code></span>, <span id="dt-47daffea5a516f00cf14"><code>&#34;memory&#45;controller&#34;</code></span>

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

### <code>&#94;edacpmd&#64;</code> — name matches this regular expression

<div id="dt-f201498eb540019f2706">
<p style="white-space: pre-wrap">PMD subnode</p>
</div>

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

<a id="dt-2d95db85ff7fc137b1cf"></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-2f98290c9256322a08fd"></a>

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

<a id="dt-53291ec09bbad52ad436"></a>

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

**Exact value (<code>const</code>):** <span id="dt-9b3f41cfc5074e190fec"><code>&#34;apm&#44;xgene&#45;edac&#45;pmd&#34;</code></span>

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

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

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

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

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

<div id="dt-9bdaac7fe90a0fbd460b">
<p style="white-space: pre-wrap">Instance number of the PMD controller.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-92efad9364d35f86d06e"><code>3</code></span>

**Required in this object (<code>required</code>):** <a id="dt-332fbddbcff47b1517f6"></a> <span id="dt-1136b2e7e254fadf83e5"><code>&#34;compatible&#34;</code></span>, <span id="dt-922927795e0e445eb553"><code>&#34;reg&#34;</code></span>, <span id="dt-bce2aa10f49e8d342492"><code>&#34;pmd&#45;controller&#34;</code></span>

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

### <code>&#94;edacl3&#64;</code> — name matches this regular expression

<div id="dt-3c29d12666f8e401f550">
<p style="white-space: pre-wrap">L3 subnode</p>
</div>

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

<a id="dt-2aa7762edc131df9e858"></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-a06aae1833655bfaf176"></a>

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-2e3535758bfb9eb4cea4"></a> <span id="dt-9bc68576425d503d9106"><code>&#34;apm&#44;xgene&#45;edac&#45;l3&#34;</code></span>, <span id="dt-9f37f038cd97b34038ff"><code>&#34;apm&#44;xgene&#45;edac&#45;l3&#45;v2&#34;</code></span>

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-3794b7d5821c567e4537"></a> <span id="dt-06e38d07e10e57e91f85"><code>&#34;compatible&#34;</code></span>, <span id="dt-d9ef6feb6cc16a377038"><code>&#34;reg&#34;</code></span>

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

### <code>&#94;edacsoc&#64;</code> — name matches this regular expression

<div id="dt-29313e28fd01edf2dd3c">
<p style="white-space: pre-wrap">SoC subnode</p>
</div>

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

<a id="dt-81d9b801681eacc98624"></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-f55d78b77aa5e167caf0"></a>

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-a28db8f127b06105d6df"></a> <span id="dt-ca3ed312aadb62e6b72a"><code>&#34;apm&#44;xgene&#45;edac&#45;soc&#34;</code></span>, <span id="dt-baced352762b12fb68b7"><code>&#34;apm&#44;xgene&#45;edac&#45;soc&#45;v1&#34;</code></span>

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-989818d15dc8f6673a25"></a> <span id="dt-1e55cadbcbb939cd1589"><code>&#34;compatible&#34;</code></span>, <span id="dt-4e09bd4b33b7fe3b22df"><code>&#34;reg&#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">bus {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    edac@78800000 {
        compatible = "apm,xgene-edac";
        reg = &lt;0x0 0x78800000 0x0 0x100&gt;;
        #address-cells = &lt;2&gt;;
        #size-cells = &lt;2&gt;;
        ranges;
        interrupts = &lt;0x0 0x20 0x4&gt;, &lt;0x0 0x21 0x4&gt;, &lt;0x0 0x27 0x4&gt;;

        regmap-csw = &lt;&amp;csw&gt;;
        regmap-mcba = &lt;&amp;mcba&gt;;
        regmap-mcbb = &lt;&amp;mcbb&gt;;
        regmap-efuse = &lt;&amp;efuse&gt;;
        regmap-rb = &lt;&amp;rb&gt;;

        edacmc@7e800000 {
            compatible = "apm,xgene-edac-mc";
            reg = &lt;0x0 0x7e800000 0x0 0x1000&gt;;
            memory-controller = &lt;0&gt;;
        };

        edacpmd@7c000000 {
            compatible = "apm,xgene-edac-pmd";
            reg = &lt;0x0 0x7c000000 0x0 0x200000&gt;;
            pmd-controller = &lt;0&gt;;
        };

        edacl3@7e600000 {
            compatible = "apm,xgene-edac-l3";
            reg = &lt;0x0 0x7e600000 0x0 0x1000&gt;;
        };

        edacsoc@7e930000 {
            compatible = "apm,xgene-edac-soc-v1";
            reg = &lt;0x0 0x7e930000 0x0 0x1000&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 76:</strong> <span> Child-node bindings</span></p>

</details>
