# Hirschmann Hellcreek TSN Switch

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

> Device-tree binding reference for Hirschmann Hellcreek TSN 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;hirschmann&#44;hellcreek&#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>

<a id="dt-935ee547587f3e75de61"></a>

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>dsa&#46;yaml&#35;&#47;&#36;defs&#47;ethernet&#45;ports</code>](</kernel/hardware/devicetree-bindings/dt-net/dsa/dsa.md#dt-902a57891fd19db703ff>)</span>

**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>, <span id="dt-3a197c22bf020420f520"><code>&#34;Kurt Kanzenbach &#60;kurt&#64;linutronix&#46;de&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Hellcreek TSN Switch IP is a 802.1Q Ethernet compliant switch. It supports the Precision Time Protocol, Hardware Timestamping as well the Time Aware Shaper.</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**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;hirschmann&#44;hellcreek&#45;de1soc&#45;r1&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">The physical base address and size of TSN and PTP memory base</p>
</div>

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

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

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;tsn&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;ptp&#34;</code></span>

<a id="dt-85c9b34b55b27f5ea876"></a>

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

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

<a id="dt-8e101aee2c2d852ee01e"></a>

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

<a id="dt-3509700b2691955e89dd"></a>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-0333bacfca886d4674a7"><code>0</code></span>

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

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

<a id="dt-987e535a71fb9cdc1b9c"></a>

**<code>&#94;led&#64;&#91;01&#93;&#36;</code> — name matches this regular expression**

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

<div id="dt-56bddc7d8b310c60b53c">
<p style="white-space: pre-wrap">Hellcreek leds</p>
</div>

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

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

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

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

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

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-ae6e2694a1fadd1e0526"></a> <span id="dt-d4e442ac343c9e19b8f0"><code>0</code></span>, <span id="dt-418859f22b66e7de6d6f"><code>1</code></span>

<div id="dt-4b563eefb7374c207fd7">
<p style="white-space: pre-wrap">Led number</p>
</div>

<a id="dt-33c58822c95224cbf03e"></a>

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

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

<a id="dt-85d1294fca746d03bf28"></a>

**<code>default&#45;state</code> — not listed as required here**

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

**Required in this object (<code>required</code>):** <a id="dt-137f52a844934754fdb5"></a> <span id="dt-538d80e9807848c58616"><code>&#34;reg&#34;</code></span>

<a id="dt-6f413be244ae0cf7a223"></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-d5e1fbe5016684412a7f"></a>

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

<code>false</code>

Not allowed by this rule.

**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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ethernet&#45;ports&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;leds&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">switch0: switch@ff240000 {
    compatible = "hirschmann,hellcreek-de1soc-r1";
    reg = &lt;0xff240000 0x1000&gt;,
          &lt;0xff250000 0x1000&gt;;
    reg-names = "tsn", "ptp";
    dsa,member = &lt;0 0&gt;;

    ethernet-ports {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        port@0 {
            reg = &lt;0&gt;;
            ethernet = &lt;&amp;gmac0&gt;;
            phy-mode = "mii";

            fixed-link {
                speed = &lt;100&gt;;
                full-duplex;
            };
        };

        port@2 {
            reg = &lt;2&gt;;
            label = "lan0";
            phy-handle = &lt;&amp;phy1&gt;;
        };

        port@3 {
            reg = &lt;3&gt;;
            label = "lan1";
            phy-handle = &lt;&amp;phy2&gt;;
        };
    };

    leds {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        led@0 {
            reg = &lt;0&gt;;
            label = "sync_good";
            default-state = "on";
        };

        led@1 {
            reg = &lt;1&gt;;
            label = "is_gm";
            default-state = "off";
        };
    };
};
</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>

</details>
