# Xilinx SDFEC(16nm) IP

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

> Device-tree binding reference for Xilinx SDFEC(16nm) IP.

<!-- 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;misc&#47;xlnx&#44;sd&#45;fec&#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;Cvetic&#44; Dragan &#60;dragan&#46;cvetic&#64;amd&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Erim&#44; Salih &#60;salih&#46;erim&#64;amd&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Soft Decision Forward Error Correction (SDFEC) Engine is a Hard IP block which provides high-throughput LDPC and Turbo Code implementations. The LDPC decode &amp; encode functionality is capable of covering a range of customer specified Quasi-cyclic (QC) codes. The Turbo decode functionality principally covers codes used by LTE. The FEC Engine offers significant power and area savings versus implementations done in the FPGA fabric.</p>
</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;xlnx&#44;sd&#45;fec&#45;1&#46;1&#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-4e9a371963ac013ad39d"></a>

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

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

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

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

#### Array items beyond the listed positions (<code>additionalItems</code>)

<code>true</code>

Allowed by this rule.

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">Main processing clock for processing core</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">AXI4-Lite memory-mapped slave interface clock</p>
> </div>

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

**Item 3**

> <div id="dt-98e44cf6c35fb1f8c6f9">
> <p style="white-space: pre-wrap">Control input AXI4-Stream Slave interface clock</p>
> </div>

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

**Item 4**

> <div id="dt-dea0dc8762ea31ff72ac">
> <p style="white-space: pre-wrap">DIN AXI4-Stream Slave interface clock</p>
> </div>

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

**Item 5**

> <div id="dt-d67f1ffe8dbde75faf78">
> <p style="white-space: pre-wrap">Status output AXI4-Stream Master interface clock</p>
> </div>

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

**Item 6**

> <div id="dt-33432f859e093c0b33d4">
> <p style="white-space: pre-wrap">DOUT AXI4-Stream Master interface clock</p>
> </div>

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

**Item 7**

> <div id="dt-ea8da08d635fbec17c67">
> <p style="white-space: pre-wrap">DIN_WORDS AXI4-Stream Slave interface clock</p>
> </div>

<a id="dt-54c68f408b9de8f89b61"></a>

**Item 8**

> <div id="dt-4f5bf39a48469220a049">
> <p style="white-space: pre-wrap">DOUT_WORDS AXI4-Stream Master interface clock</p>
> </div>

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

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

<a id="dt-3291621b1c8138208c40"></a>

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

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

**Rule 1**

> **Minimum number of items (<code>minItems</code>):** <span id="dt-d381321630829a1f0209"><code>2</code></span>
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-35c894616c8c3e21986b"><code>8</code></span>
>
> <a id="dt-8aaa35bb5ef6aad4cc6c"></a>
>
> **Array items beyond the listed positions (<code>additionalItems</code>)**
>
> <code>true</code>
>
> Allowed by this rule.
>
> <a id="dt-75034d585a59ed87983c"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4e13b26ebabd2f2b55a5"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-a3f7b0fcec4c9eb8ed82"><code>&#34;core&#95;clk&#34;</code></span>
>
> <a id="dt-480a39582ebea8045c13"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-5039399d17424e392781"><code>&#34;s&#95;axi&#95;aclk&#34;</code></span>

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

**Rule 2**

> <a id="dt-8dca7be49eaadbb73b27"></a>
>
> **Array item rules (<code>items</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-6bf64707076a690f2a16"></a> <span id="dt-dce8cccba27ef8f5cf3f"><code>&#34;core&#95;clk&#34;</code></span>, <span id="dt-a57a6a1792b29e0a6641"><code>&#34;s&#95;axi&#95;aclk&#34;</code></span>, <span id="dt-47d679e2209d323d4021"><code>&#34;s&#95;axis&#95;ctrl&#95;aclk&#34;</code></span>, <span id="dt-e737a15335dc547130bf"><code>&#34;s&#95;axis&#95;din&#95;aclk&#34;</code></span>, <span id="dt-d26611d6ff6713b46758"><code>&#34;m&#95;axis&#95;status&#95;aclk&#34;</code></span>, <span id="dt-b1ae9529d7b04956ddf4"><code>&#34;m&#95;axis&#95;dout&#95;aclk&#34;</code></span>, <span id="dt-0f0c538704dc9b76b102"><code>&#34;s&#95;axis&#95;din&#95;words&#95;aclk&#34;</code></span>, <span id="dt-1b1b25ff1f4b7942ad70"><code>&#34;m&#95;axis&#95;dout&#95;words&#95;aclk&#34;</code></span>

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

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

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

<a id="dt-8795cd2c78bc311d829d"></a>

### <code>xlnx&#44;sdfec&#45;code</code> — required here

<div id="dt-04ed5f85ca472c53adfa">
<p style="white-space: pre-wrap">The SD-FEC integrated block supports Low Density Parity Check (LDPC) decoding and encoding and Turbo code decoding. The LDPC codes used are highly configurable, and the specific code used can be specified on a codeword-by-codeword basis. The Turbo code decoding is required by LTE standard.</p>
</div>

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

<a id="dt-41015b4705f5920e1697"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-7ef4f34a72f1d23665eb"></a> <span id="dt-997e9f2e5f5dbf0fbb85"><code>&#34;ldpc&#34;</code></span>, <span id="dt-f52b49163d563abad2f3"><code>&#34;turbo&#34;</code></span>

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

### <code>xlnx&#44;sdfec&#45;din&#45;width</code> — required here

<div id="dt-aa6c56acdb6845276d57">
<p style="white-space: pre-wrap">Configures the DIN AXI stream where a value of 1 configures a width of "1x128b", 2 a width of "2x128b" and 4 configures a width of "4x128b".</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-a514c39d4cb30b2ec402"></a> <span id="dt-d56ec3fec4b4cf5c8037"><code>1</code></span>, <span id="dt-303efbf7025148cf8ac8"><code>2</code></span>, <span id="dt-3ee39b60b8d06768fa11"><code>4</code></span>

<a id="dt-30860b77e7df2b8e3b9c"></a>

### <code>xlnx&#44;sdfec&#45;din&#45;words</code> — required here

<div id="dt-abc679854a39cef5e53e">
<p style="white-space: pre-wrap">A value 0 indicates that the DIN_WORDS interface is driven with a fixed value and is not present on the device, a value of 1 configures the DIN_WORDS to be block based, while a value of 2 configures the DIN_WORDS input to be supplied for each AXI transaction.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-245a05bd947823d5f434"></a> <span id="dt-b0c7348711b320fecfae"><code>0</code></span>, <span id="dt-d1735a653a02eeea099f"><code>1</code></span>, <span id="dt-f9d4687810b928513ca6"><code>2</code></span>

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

### <code>xlnx&#44;sdfec&#45;dout&#45;width</code> — required here

<div id="dt-e802876345da07487939">
<p style="white-space: pre-wrap">Configures the DOUT AXI stream where a value of 1 configures a width of "1x128b", 2 a width of "2x128b" and 4 configures a width of "4x128b".</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-4e612ebb86ed1893f6ab"></a> <span id="dt-75649541253a2fc1def2"><code>1</code></span>, <span id="dt-c928852aa4f493ae16b6"><code>2</code></span>, <span id="dt-cbb013b17f4d16a09a3f"><code>4</code></span>

<a id="dt-70f68ed05ae3ff7bb17f"></a>

### <code>xlnx&#44;sdfec&#45;dout&#45;words</code> — required here

<div id="dt-c6abd56fff2195af605e">
<p style="white-space: pre-wrap">A value 0 indicates that the DOUT_WORDS interface is driven with a fixed value and is not present on the device, a value of 1 configures the DOUT_WORDS to be block based, while a value of 2 configures the DOUT_WORDS input to be supplied for each AXI transaction.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-f9cb59c4a281d7bb73be"></a> <span id="dt-291d2cf1a4f930a24f14"><code>0</code></span>, <span id="dt-c5bc3e06e33762c9a193"><code>1</code></span>, <span id="dt-b88c72d9d833bc194960"><code>2</code></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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;xlnx&#44;sdfec&#45;code&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;xlnx&#44;sdfec&#45;din&#45;width&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;xlnx&#44;sdfec&#45;din&#45;words&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;xlnx&#44;sdfec&#45;dout&#45;width&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;xlnx&#44;sdfec&#45;dout&#45;words&#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/interrupt-controller/irq.h&gt;

sd-fec@a0040000 {
    compatible = "xlnx,sd-fec-1.1";
    reg = &lt;0xa0040000 0x40000&gt;;
    clocks = &lt;&amp;misc_clk_2&gt;, &lt;&amp;misc_clk_0&gt;, &lt;&amp;misc_clk_1&gt;, &lt;&amp;misc_clk_1&gt;,
             &lt;&amp;misc_clk_1&gt;, &lt;&amp;misc_clk_1&gt;;
    clock-names = "core_clk", "s_axi_aclk", "s_axis_ctrl_aclk",
                  "s_axis_din_aclk", "m_axis_status_aclk",
                  "m_axis_dout_aclk";
    interrupts = &lt;1 IRQ_TYPE_LEVEL_HIGH&gt;;
    xlnx,sdfec-code = "ldpc";
    xlnx,sdfec-din-width = &lt;2&gt;;
    xlnx,sdfec-din-words = &lt;0&gt;;
    xlnx,sdfec-dout-width = &lt;1&gt;;
    xlnx,sdfec-dout-words = &lt;0&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>
