# Ethernet Switch

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa_

> Device-tree binding reference for Ethernet Switch.

<!-- 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;net&#47;dsa&#47;dsa&#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 Lunn &#60;andrew&#64;lunn&#46;ch&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Florian Fainelli &#60;f&#46;fainelli&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Vladimir Oltean &#60;olteanv&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This binding represents Ethernet Switches which have a dedicated CPU port. That port is usually connected to an Ethernet Controller of the SoC. Such setups are typical for embedded devices.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>false</code>

Not selected automatically by this rule.

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

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

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

<a id="dt-269ee258d4f0a181ccf8"></a>

### <code>dsa&#44;member</code> — not listed as required here

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

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

<div id="dt-4640d09d891fb2b03552">
<p style="white-space: pre-wrap">A two element list indicates which DSA cluster, and position within the cluster a switch takes. &lt;0 0&gt; is cluster 0, switch 0. &lt;0 1&gt; is cluster 0, switch 1. &lt;1 0&gt; is cluster 1, switch 0. A switch not part of any cluster (single device hanging off a CPU port) must not specify this property</p>
</div>

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

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

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

<code>true</code>

Allowed by this rule.

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

## Reusable definitions (<code>&#36;defs</code>)

<a id="dt-902a57891fd19db703ff"></a>

### <code>ethernet&#45;ports</code>

<div id="dt-733204de7fcf027fdde9">
<p style="white-space: pre-wrap">A DSA switch without any extra port properties</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fc3fce8aa55b97d3b993">[<code>&#35;</code>](<#dt-root>)</span>

<a id="dt-32961bc7bb7e42267cbb"></a>

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

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

**<code>&#94;&#40;ethernet&#45;&#41;&#63;ports&#36;</code> — name matches this regular expression**

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

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

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

**<code>&#94;&#40;ethernet&#45;&#41;&#63;port&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression**

<div id="dt-258aee02968e94da153c">
<p style="white-space: pre-wrap">Ethernet switch ports</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9e1ed683602bb3286ebc">[<code>dsa&#45;port&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-net/dsa/dsa-port.md#dt-root>)</span>

<a id="dt-405da5caaf9211e7bd8d"></a>

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-51356188806d31ca2021"></a>

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

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

### Rule 1

> **Required in this object (<code>required</code>):** <a id="dt-48cc38ffec184df79a62"></a> <span id="dt-bbd3b687ebb435349af2"><code>&#34;ports&#34;</code></span>

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

### Rule 2

> **Required in this object (<code>required</code>):** <a id="dt-686ce4562589647d257c"></a> <span id="dt-8060cb7221f215eec82f"><code>&#34;ethernet&#45;ports&#34;</code></span>

## 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>

</details>
