# Intel IXP4xx Network Processing Engine

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

> Device-tree binding reference for Intel IXP4xx Network Processing Engine.

<!-- 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;firmware&#47;intel&#44;ixp4xx&#45;network&#45;processing&#45;engine&#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;Linus Walleij &#60;linusw&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">On the IXP4xx SoCs, the Network Processing Engine (NPE) is a small
processor that can load a firmware to perform offloading of networking
and crypto tasks. It also manages the MDIO bus to the ethernet PHYs
on the IXP4xx platform. All IXP4xx platforms have three NPEs at
consecutive memory locations. They are all included in the same
device node since they are not independent of each other.</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**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-5deec2612224d8d915da"><code>&#34;intel&#44;ixp4xx&#45;network&#45;processing&#45;engine&#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">NPE0 (NPE-A) register range</p>
> </div>

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

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">NPE1 (NPE-B) register range</p>
> </div>

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

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">NPE2 (NPE-C) register range</p>
> </div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-771e027f493e022ea643">[<code>&#47;schemas&#47;crypto&#47;intel&#44;ixp4xx&#45;crypto&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-crypto/intel-ixp4xx-crypto.md#dt-root>)</span>

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

<div id="dt-533ba0620c0d71ce6fa4">
<p style="white-space: pre-wrap">Optional node for the embedded crypto engine, the node should be named with the instance number of the NPE engine used for the crypto engine.</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>1</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>0</code></span>

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

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

<a id="dt-07b60642fcccef250adf"></a>

### <code>hss&#64;&#91;0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b0fb0b897eabf98230b2">[<code>&#47;schemas&#47;net&#47;intel&#44;ixp4xx&#45;hss&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-net/intel-ixp4xx-hss.md#dt-root>)</span>

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

<div id="dt-bb13564587e9a9ec296a">
<p style="white-space: pre-wrap">Optional node for the High Speed Serial link (HSS), the node should be named with the instance number of the NPE engine used for the HSS.</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>

<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/gpio/gpio.h&gt;

npe: npe@c8006000 {
    compatible = "intel,ixp4xx-network-processing-engine";
    reg = &lt;0xc8006000 0x1000&gt;, &lt;0xc8007000 0x1000&gt;, &lt;0xc8008000 0x1000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    hss@0 {
        compatible = "intel,ixp4xx-hss";
        reg = &lt;0&gt;;
        intel,npe-handle = &lt;&amp;npe 0&gt;;
        intel,queue-chl-rxtrig = &lt;&amp;qmgr 12&gt;;
        intel,queue-chl-txready = &lt;&amp;qmgr 34&gt;;
        intel,queue-pkt-rx = &lt;&amp;qmgr 13&gt;;
        intel,queue-pkt-tx = &lt;&amp;qmgr 14&gt;, &lt;&amp;qmgr 15&gt;, &lt;&amp;qmgr 16&gt;, &lt;&amp;qmgr 17&gt;;
        intel,queue-pkt-rxfree = &lt;&amp;qmgr 18&gt;, &lt;&amp;qmgr 19&gt;, &lt;&amp;qmgr 20&gt;, &lt;&amp;qmgr 21&gt;;
        intel,queue-pkt-txdone = &lt;&amp;qmgr 22&gt;;
        cts-gpios = &lt;&amp;gpio0 10 GPIO_ACTIVE_LOW&gt;;
        rts-gpios = &lt;&amp;gpio0 14 GPIO_ACTIVE_LOW&gt;;
        dcd-gpios = &lt;&amp;gpio0 6 GPIO_ACTIVE_LOW&gt;;
        dtr-gpios = &lt;&amp;gpio_74 2 GPIO_ACTIVE_LOW&gt;;
        clk-internal-gpios = &lt;&amp;gpio_74 0 GPIO_ACTIVE_HIGH&gt;;
    };

    crypto {
        compatible = "intel,ixp4xx-crypto";
        intel,npe-handle = &lt;&amp;npe 2&gt;;
        queue-rx = &lt;&amp;qmgr 30&gt;;
        queue-txready = &lt;&amp;qmgr 29&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright 2019 Linaro Ltd.</span></p>

</details>
