# Ethernet Controller Common Properties

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

> Device-tree binding reference for Ethernet Controller Common Properties.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;ethernet&#45;controller&#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;David S&#46; Miller &#60;davem&#64;davemloft&#46;net&#62;&#34;</code></span>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;ethernet&#40;&#64;&#46;&#42;&#41;&#63;&#36;&#34;</code></span>

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

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">Human readable label on a port of a box.</p>
</div>

<a id="dt-7773c1aabffc7772c5a0"></a>

### <code>max&#45;speed</code> — not listed as required here

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

<div id="dt-dfa08af6b6b99430a5e9">
<p style="white-space: pre-wrap">Specifies maximum speed in Mbit/s supported by the device.</p>
</div>

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

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

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

<div id="dt-6e22bea212c5f15c1ddb">
<p style="white-space: pre-wrap">Reference to an nvmem node for the MAC address</p>
</div>

<a id="dt-28ee7fd676493bbd8d08"></a>

### <code>nvmem&#45;cell&#45;names</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-0f49487ae6227b3e484e"><code>&#34;mac&#45;address&#34;</code></span>

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

### <code>phy&#45;connection&#45;type</code> — not listed as required here

<div id="dt-115f23fecca0d79d8559">
<p style="white-space: pre-wrap">Specifies interface type between the Ethernet device and a physical layer (PHY) device.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-bd2f6d79d8882e54da80"></a> <span id="dt-6286d37059a189400d98"><code>&#34;internal&#34;</code></span>, <span id="dt-63914d8fcc7d6ab6da7e"><code>&#34;mii&#34;</code></span>, <span id="dt-18e3b13bae84a590e927"><code>&#34;mii&#45;lite&#34;</code></span>, <span id="dt-644e74612eb9d0f1ee37"><code>&#34;gmii&#34;</code></span>, <span id="dt-fbce14ceb0e80fc03a39"><code>&#34;sgmii&#34;</code></span>, <span id="dt-256b02697dc6a021980e"><code>&#34;psgmii&#34;</code></span>, <span id="dt-708def6e69b79dadb416"><code>&#34;qsgmii&#34;</code></span>, <span id="dt-c24926e6da9ecc0b51dd"><code>&#34;qusgmii&#34;</code></span>, <span id="dt-3305c06c1303f74a4b70"><code>&#34;tbi&#34;</code></span>, <span id="dt-11efeb2d821dcbd5ad79"><code>&#34;rev&#45;mii&#34;</code></span>, <span id="dt-af0667cf96be8de160b8"><code>&#34;rmii&#34;</code></span>, <span id="dt-b16a31773f2fba5db81a"><code>&#34;rev&#45;rmii&#34;</code></span>, <span id="dt-c1ab77bff659c6485107"><code>&#34;moca&#34;</code></span>, <span id="dt-809c678ec75fb0259c4b"><code>&#34;rgmii&#34;</code></span>, <span id="dt-60bff0f8180fa4d61266"><code>&#34;rgmii&#45;id&#34;</code></span>, <span id="dt-b892dd30a32921eca279"><code>&#34;rgmii&#45;rxid&#34;</code></span>, <span id="dt-5c3a39380f9758b00dce"><code>&#34;rgmii&#45;txid&#34;</code></span>, <span id="dt-2a3a5de4f52905e758fb"><code>&#34;rtbi&#34;</code></span>, <span id="dt-b49b06e4ea8e0b1a510d"><code>&#34;smii&#34;</code></span>, <span id="dt-6fe193da4dc1ebe3cb98"><code>&#34;xgmii&#34;</code></span>, <span id="dt-c08c99dafac6258ba693"><code>&#34;trgmii&#34;</code></span>, <span id="dt-d0ca22db19485288b628"><code>&#34;1000base&#45;x&#34;</code></span>, <span id="dt-bf605de6fd4b03e060bf"><code>&#34;2500base&#45;x&#34;</code></span>, <span id="dt-2e746d26103ec6543dc3"><code>&#34;5gbase&#45;r&#34;</code></span>, <span id="dt-0f4dbe26282ff42e14df"><code>&#34;rxaui&#34;</code></span>, <span id="dt-e6b2d3ecdebc5eaa566b"><code>&#34;xaui&#34;</code></span>, <span id="dt-25d916e046c5c07962b2"><code>&#34;10gbase&#45;kr&#34;</code></span>, <span id="dt-ef9abbda1b082f2dafa9"><code>&#34;usxgmii&#34;</code></span>, <span id="dt-c45c955a08c34b040062"><code>&#34;10gbase&#45;r&#34;</code></span>, <span id="dt-0d762cc2e3c20167ff8d"><code>&#34;25gbase&#45;r&#34;</code></span>, <span id="dt-f029143b8c4c1d008c73"><code>&#34;10g&#45;qxgmii&#34;</code></span>

<a id="dt-74df141c96ce385e8e45"></a>

### <code>phy&#45;mode</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3a680e5ee7545d3c7d95">[<code>&#35;&#47;properties&#47;phy&#45;connection&#45;type</code>](<#dt-9a577e1dbff60c3e0bf4>)</span>

<a id="dt-4e1e414e570ea236e55f"></a>

### <code>pcs&#45;handle</code> — not listed as required here

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

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

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

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

<div id="dt-ec03ac997014e57c7b04">
<p style="white-space: pre-wrap">Specifies a reference to a node representing a PCS PHY device on a MDIO bus to link with an external PHY (phy-handle) if exists.</p>
</div>

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

### <code>pcs&#45;handle&#45;names</code> — not listed as required here

<div id="dt-1efa5d68428b50ed8d6f">
<p style="white-space: pre-wrap">The name of each PCS in pcs-handle.</p>
</div>

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

### <code>phy&#45;handle</code> — not listed as required here

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

<div id="dt-c11483eda2ea199d7cc0">
<p style="white-space: pre-wrap">Specifies a reference to a node representing a PHY device.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cfbc60ab422b83e682c4">[<code>&#35;&#47;properties&#47;phy&#45;handle</code>](<#dt-8cacb3b9eb745acd995d>)</span>

**Deprecated (<code>deprecated</code>):** <span id="dt-9a9f0493ad8973f254d3"><code>true</code></span>

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

### <code>phy&#45;device</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d682663e38171202c04e">[<code>&#35;&#47;properties&#47;phy&#45;handle</code>](<#dt-8cacb3b9eb745acd995d>)</span>

**Deprecated (<code>deprecated</code>):** <span id="dt-ca5891b78c5d9decc1a8"><code>true</code></span>

<a id="dt-37536f6266925c9b4f07"></a>

### <code>ptp&#45;timer</code> — not listed as required here

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

<div id="dt-511bcb5d8916e791ce40">
<p style="white-space: pre-wrap">Specifies a reference to a node representing an IEEE 1588 PTP device.</p>
</div>

<a id="dt-21f06d74a526f9b7fd66"></a>

### <code>rx&#45;fifo&#45;depth</code> — not listed as required here

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

<div id="dt-d06a5ab3603fa520ed22">
<p style="white-space: pre-wrap">The size of the controller\'s receive fifo in bytes. This is used for components that can have configurable receive fifo sizes, and is useful for determining certain configuration settings such as flow control thresholds.</p>
</div>

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

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

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

<div id="dt-1f7b768224e95e37b930">
<p style="white-space: pre-wrap">Specifies a reference to a node representing a SFP cage.</p>
</div>

<a id="dt-32fb0597a0aa6823f10f"></a>

### <code>tx&#45;fifo&#45;depth</code> — not listed as required here

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

<div id="dt-74b9796b86169d212ff4">
<p style="white-space: pre-wrap">The size of the controller\'s transmit fifo in bytes. This is used for components that can have configurable fifo sizes.</p>
</div>

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

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

<div id="dt-9bbdca8d1f6808fa8539">
<p style="white-space: pre-wrap">Specifies the PHY management type. If auto is set and fixed-link is not specified, it uses MDIO for management.</p>
</div>

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

**Default value (<code>default</code>):** <span id="dt-632c39b542c9cdd76cbc"><code>&#34;auto&#34;</code></span>

**Allowed values (<code>enum</code>):** <a id="dt-4655354ffa0be4b9a0c1"></a> <span id="dt-c46275dbcf40b42eaaf4"><code>&#34;auto&#34;</code></span>, <span id="dt-1d6eaa4b4badb7b59ace"><code>&#34;in&#45;band&#45;status&#34;</code></span>

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

### <code>fixed&#45;link</code> — not listed as required here

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

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

<a id="dt-87e864002571d06a10bb"></a>

**Rule 1**

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ff49fa8a9f3cb047ef95">[<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>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-a4e209d80370fd8d6aff"><code>true</code></span>
>
> <a id="dt-b0bb5fe551c6994e86ef"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4b28195a11f053f98736"></a>
>
> **Item 1**
>
> > **Minimum value (<code>minimum</code>):** <span id="dt-949f0b24d3f18dd9da3c"><code>0</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-a448cc29310cff2530da"><code>31</code></span>
> >
> > <div id="dt-aebd14218888390b363f">
> > <p style="white-space: pre-wrap">Emulated PHY ID, choose any but unique to the all specified fixed-links</p>
> > </div>
>
> <a id="dt-9122e09be1dcdce1247d"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-6e6d7f578b4ca2b3dd61"></a> <span id="dt-75ce4ae0beddab4b6117"><code>0</code></span>, <span id="dt-54f97bd2da7836ca3043"><code>1</code></span>
> >
> > <div id="dt-6a6a2e63cd8ce2407dd1">
> > <p style="white-space: pre-wrap">Duplex configuration. 0 for half duplex or 1 for full duplex</p>
> > </div>
>
> <a id="dt-7314afa3c1cb1b1af75a"></a>
>
> **Item 3**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-e621301827f4074524af"></a> <span id="dt-c0d6c9ec87344b2c603c"><code>10</code></span>, <span id="dt-583222307a21c2ebfa45"><code>100</code></span>, <span id="dt-a3ab780aa3e0e4bd0e44"><code>1000</code></span>, <span id="dt-1015c12d7b521ed792a8"><code>2500</code></span>, <span id="dt-e4ca03ff0b6074c6baa2"><code>10000</code></span>
> >
> > <div id="dt-803a7e5141552e322427">
> > <p style="white-space: pre-wrap">Link speed in Mbits/sec.</p>
> > </div>
>
> <a id="dt-bbece43535f41cc0d49a"></a>
>
> **Item 4**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-ceda0855324f30c5ddda"></a> <span id="dt-3e666a196862bbba7137"><code>0</code></span>, <span id="dt-006fcf01f5489ee460c2"><code>1</code></span>
> >
> > <div id="dt-63cd0d479fdae26dd7aa">
> > <p style="white-space: pre-wrap">Pause configuration. 0 for no pause, 1 for pause</p>
> > </div>
>
> <a id="dt-5719ad1ba437fe582b91"></a>
>
> **Item 5**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-d68c5f20c0abd3a15f88"></a> <span id="dt-5a094c1e659ac199ef51"><code>0</code></span>, <span id="dt-703ecfefe0f3650ff522"><code>1</code></span>
> >
> > <div id="dt-85436082b4ec34f6ab6e">
> > <p style="white-space: pre-wrap">Asymmetric pause configuration. 0 for no asymmetric pause, 1 for asymmetric pause</p>
> > </div>

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

**Rule 2**

> **Value type (<code>type</code>):** <span id="dt-9e7415cb7b69c87b28c0"><code>&#34;object&#34;</code></span>
>
> <a id="dt-5aae8c4103bfbc6244ed"></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-70e8565199fa22108a96"></a>
>
> **Properties and child nodes (<code>properties</code>)**
>
> <a id="dt-1e4709abbf28e75cd747"></a>
>
> **<code>speed</code> — required here**
>
> <div id="dt-47108888de147b19063e">
> <p style="white-space: pre-wrap">Link speed.</p>
> </div>
>
> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7b72d26fe49ba232ffa6">[<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-533fa8f02e00f8a2b173"></a> <span id="dt-156c9705965acd44bbf4"><code>10</code></span>, <span id="dt-28b87db7764ec3f7fdd6"><code>100</code></span>, <span id="dt-82991267015c13c02434"><code>1000</code></span>, <span id="dt-b5324281154db86d3460"><code>2500</code></span>, <span id="dt-aa91fe00d243808770c5"><code>5000</code></span>, <span id="dt-0e3cfeac403e4b297f9e"><code>10000</code></span>
>
> <a id="dt-0959fe21bc8b4cb1b196"></a>
>
> **<code>full&#45;duplex</code> — not listed as required here**
>
> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-23bad1cee67e644c0caf">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>
>
> <div id="dt-cf15767517ed34edd83b">
> <p style="white-space: pre-wrap">Indicates that full-duplex is used. When absent, half duplex is assumed.</p>
> </div>
>
> <a id="dt-9879ec28e715d8ccddcd"></a>
>
> **<code>pause</code> — not listed as required here**
>
> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8850a8857426290dc3a3">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>
>
> <div id="dt-2826c732b37c67a7967d">
> <p style="white-space: pre-wrap">Indicates that pause should be enabled.</p>
> </div>
>
> <a id="dt-3c3c66abbe36a0c8c063"></a>
>
> **<code>asym&#45;pause</code> — not listed as required here**
>
> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-955717b4d5c83000968d">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>
>
> <div id="dt-1969ec77b04312b8d373">
> <p style="white-space: pre-wrap">Indicates that asym_pause should be enabled.</p>
> </div>
>
> <a id="dt-599ec7729bf65303e1e1"></a>
>
> **<code>link&#45;gpios</code> — not listed as required here**
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-da0f3875647fa260edf3"><code>1</code></span>
>
> <div id="dt-85d7b9e3f8538af62249">
> <p style="white-space: pre-wrap">GPIO to determine if the link is up</p>
> </div>
>
> **Required in this object (<code>required</code>):** <a id="dt-0044dc932b6da6f60c79"></a> <span id="dt-761a2de856268f83d29a"><code>&#34;speed&#34;</code></span>

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

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

<div id="dt-7937e84fbfad904a3119">
<p style="white-space: pre-wrap">Describes the LEDs associated by Ethernet Controller. These LEDs are not integrated in the PHY and PHY doesn't have any control on them. Ethernet Controller regs are used to control these defined LEDs.</p>
</div>

**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-26de7587381de8b22a6a"></a>

**<code>&#94;led&#64;&#91;a&#45;f0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression**

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

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

<a id="dt-981b3bb2b6cbf1db6a62"></a>

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

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

<div id="dt-40359962846b62434d1a">
<p style="white-space: pre-wrap">This defines the LED index in the PHY or the MAC. It's really driver dependent and required for ports that define multiple LED for the same port.</p>
</div>

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

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</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.

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

## Property dependencies (<code>dependencies</code>)

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

### <code>pcs&#45;handle&#45;names</code> — applies when this property is present

Also requires: <span id="dt-31a47fdf7afa6752ccde"><code>&#34;pcs&#45;handle&#34;</code></span>

<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>&#47;schemas&#47;net&#47;network&#45;class&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-net/network-class.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-14f7c7cad9dd4e2e07c2"></a>
> >
> > **<code>phy&#45;mode</code> — not listed as required here**
> >
> > <a id="dt-e3978190a47ccd8f1c05"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-b94267c2de0a93373571"></a> <span id="dt-e8ef493fd5753b1fac5e"><code>&#34;rgmii&#34;</code></span>, <span id="dt-6acc0b1de470c2f83dec"><code>&#34;rgmii&#45;rxid&#34;</code></span>, <span id="dt-f90c4bd4b32bf6df217e"><code>&#34;rgmii&#45;txid&#34;</code></span>, <span id="dt-d6174988d7b54a415ac1"><code>&#34;rgmii&#45;id&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-389570baa9d54f24157c"></a>
> >
> > **<code>rx&#45;internal&#45;delay&#45;ps</code> — not listed as required here**
> >
> > <div id="dt-ebc99f1089434935a0c9">
> > <p style="white-space: pre-wrap">RGMII Receive Clock Delay defined in pico seconds. This is used for controllers that have configurable RX internal delays. If this property is present then the MAC applies the RX delay.</p>
> > </div>
> >
> > <a id="dt-5a8467be6be184c5254c"></a>
> >
> > **<code>tx&#45;internal&#45;delay&#45;ps</code> — not listed as required here**
> >
> > <div id="dt-c42c82056584d4278f35">
> > <p style="white-space: pre-wrap">RGMII Transmit Clock Delay defined in pico seconds. This is used for controllers that have configurable TX internal delays. If this property is present then the MAC applies the TX delay.</p>
> > </div>

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

## 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</span></p>

<p id="dt-comment-1"><strong>Line 37:</strong> <span> There is not a standard bus between the MAC and the PHY,</span></p>

<p id="dt-comment-2"><strong>Line 38:</strong> <span> something proprietary is being used to embed the PHY in the</span></p>

<p id="dt-comment-3"><strong>Line 39:</strong> <span> MAC.</span></p>

<p id="dt-comment-4"><strong>Line 54:</strong> <span> RX and TX delays are provided by the PCB. See below</span></p>

<p id="dt-comment-5"><strong>Line 57:</strong> <span> RX and TX delays are not provided by the PCB. This is the most</span></p>

<p id="dt-comment-6"><strong>Line 58:</strong> <span> frequent case. See below</span></p>

<p id="dt-comment-7"><strong>Line 61:</strong> <span> TX delay is provided by the PCB. See below</span></p>

<p id="dt-comment-8"><strong>Line 64:</strong> <span> RX delay is provided by the PCB. See below</span></p>

<p id="dt-comment-9"><strong>Line 76:</strong> <span> 10GBASE-KR, XFI, SFI</span></p>

<p id="dt-comment-10"><strong>Line 270:</strong> <span> Informative</span></p>

<p id="dt-comment-11"><strong>Line 271:</strong> <span> ===========</span></p>

<p id="dt-comment-12"><strong>Line 272:</strong> <span></span></p>

<p id="dt-comment-13"><strong>Line 273:</strong> <span> 'phy-modes' &amp; 'phy-connection-type' properties 'rgmii', 'rgmii-id',</span></p>

<p id="dt-comment-14"><strong>Line 274:</strong> <span> 'rgmii-rxid', and 'rgmii-txid' are frequently used wrongly by</span></p>

<p id="dt-comment-15"><strong>Line 275:</strong> <span> developers. This informative section clarifies their usage.</span></p>

<p id="dt-comment-16"><strong>Line 276:</strong> <span></span></p>

<p id="dt-comment-17"><strong>Line 277:</strong> <span> The RGMII specification requires a 2ns delay between the data and</span></p>

<p id="dt-comment-18"><strong>Line 278:</strong> <span> clock signals on the RGMII bus. How this delay is implemented is not</span></p>

<p id="dt-comment-19"><strong>Line 279:</strong> <span> specified.</span></p>

<p id="dt-comment-20"><strong>Line 280:</strong> <span></span></p>

<p id="dt-comment-21"><strong>Line 281:</strong> <span> One option is to make the clock traces on the PCB longer than the</span></p>

<p id="dt-comment-22"><strong>Line 282:</strong> <span> data traces. A sufficient difference in length can provide the 2ns</span></p>

<p id="dt-comment-23"><strong>Line 283:</strong> <span> delay. If both the RX and TX delays are implemented in this manner,</span></p>

<p id="dt-comment-24"><strong>Line 284:</strong> <span> 'rgmii' should be used, so indicating the PCB adds the delays.</span></p>

<p id="dt-comment-25"><strong>Line 285:</strong> <span></span></p>

<p id="dt-comment-26"><strong>Line 286:</strong> <span> If the PCB does not add these delays via extra long traces,</span></p>

<p id="dt-comment-27"><strong>Line 287:</strong> <span> 'rgmii-id' should be used. Here, 'id' refers to 'internal delay',</span></p>

<p id="dt-comment-28"><strong>Line 288:</strong> <span> where either the MAC or PHY adds the delay.</span></p>

<p id="dt-comment-29"><strong>Line 289:</strong> <span></span></p>

<p id="dt-comment-30"><strong>Line 290:</strong> <span> If only one of the two delays are implemented via extra long clock</span></p>

<p id="dt-comment-31"><strong>Line 291:</strong> <span> lines, either 'rgmii-rxid' or 'rgmii-txid' should be used,</span></p>

<p id="dt-comment-32"><strong>Line 292:</strong> <span> indicating the MAC or PHY should implement one of the delays</span></p>

<p id="dt-comment-33"><strong>Line 293:</strong> <span> internally, while the PCB implements the other delay.</span></p>

<p id="dt-comment-34"><strong>Line 294:</strong> <span></span></p>

<p id="dt-comment-35"><strong>Line 295:</strong> <span> Device Tree describes hardware, and in this case, it describes the</span></p>

<p id="dt-comment-36"><strong>Line 296:</strong> <span> PCB between the MAC and the PHY, if the PCB implements delays or</span></p>

<p id="dt-comment-37"><strong>Line 297:</strong> <span> not.</span></p>

<p id="dt-comment-38"><strong>Line 298:</strong> <span></span></p>

<p id="dt-comment-39"><strong>Line 299:</strong> <span> In practice, very few PCBs make use of extra long clock lines. Hence</span></p>

<p id="dt-comment-40"><strong>Line 300:</strong> <span> any RGMII phy mode other than 'rgmii-id' is probably wrong, and is</span></p>

<p id="dt-comment-41"><strong>Line 301:</strong> <span> unlikely to be accepted during review without details provided in</span></p>

<p id="dt-comment-42"><strong>Line 302:</strong> <span> the commit description and comments in the .dts file.</span></p>

<p id="dt-comment-43"><strong>Line 303:</strong> <span></span></p>

<p id="dt-comment-44"><strong>Line 304:</strong> <span> When the PCB does not implement the delays, the MAC or PHY must.  As</span></p>

<p id="dt-comment-45"><strong>Line 305:</strong> <span> such, this is software configuration, and so not described in Device</span></p>

<p id="dt-comment-46"><strong>Line 306:</strong> <span> Tree.</span></p>

<p id="dt-comment-47"><strong>Line 307:</strong> <span></span></p>

<p id="dt-comment-48"><strong>Line 308:</strong> <span> The following describes how Linux implements the configuration of</span></p>

<p id="dt-comment-49"><strong>Line 309:</strong> <span> the MAC and PHY to add these delays when the PCB does not. As stated</span></p>

<p id="dt-comment-50"><strong>Line 310:</strong> <span> above, developers often get this wrong, and the aim of this section</span></p>

<p id="dt-comment-51"><strong>Line 311:</strong> <span> is reduce the frequency of these errors by Linux developers. Other</span></p>

<p id="dt-comment-52"><strong>Line 312:</strong> <span> users of the Device Tree may implement it differently, and still be</span></p>

<p id="dt-comment-53"><strong>Line 313:</strong> <span> consistent with both the normative and informative description</span></p>

<p id="dt-comment-54"><strong>Line 314:</strong> <span> above.</span></p>

<p id="dt-comment-55"><strong>Line 315:</strong> <span></span></p>

<p id="dt-comment-56"><strong>Line 316:</strong> <span> By default in Linux, when using phylib/phylink, the MAC is expected</span></p>

<p id="dt-comment-57"><strong>Line 317:</strong> <span> to read the 'phy-mode' from Device Tree, not implement any delays,</span></p>

<p id="dt-comment-58"><strong>Line 318:</strong> <span> and pass the value to the PHY. The PHY will then implement delays as</span></p>

<p id="dt-comment-59"><strong>Line 319:</strong> <span> specified by the 'phy-mode'. The PHY should always be reconfigured</span></p>

<p id="dt-comment-60"><strong>Line 320:</strong> <span> to implement the needed delays, replacing any setting performed by</span></p>

<p id="dt-comment-61"><strong>Line 321:</strong> <span> strapping or the bootloader, etc.</span></p>

<p id="dt-comment-62"><strong>Line 322:</strong> <span></span></p>

<p id="dt-comment-63"><strong>Line 323:</strong> <span> Experience to date is that all PHYs which implement RGMII also</span></p>

<p id="dt-comment-64"><strong>Line 324:</strong> <span> implement the ability to add or not add the needed delays. Hence</span></p>

<p id="dt-comment-65"><strong>Line 325:</strong> <span> this default is expected to work in all cases. Ignoring this default</span></p>

<p id="dt-comment-66"><strong>Line 326:</strong> <span> is likely to be questioned by Reviews, and require a strong argument</span></p>

<p id="dt-comment-67"><strong>Line 327:</strong> <span> to be accepted.</span></p>

<p id="dt-comment-68"><strong>Line 328:</strong> <span></span></p>

<p id="dt-comment-69"><strong>Line 329:</strong> <span> There are a small number of cases where the MAC has hard coded</span></p>

<p id="dt-comment-70"><strong>Line 330:</strong> <span> delays which cannot be disabled. The 'phy-mode' only describes the</span></p>

<p id="dt-comment-71"><strong>Line 331:</strong> <span> PCB.  The inability to disable the delays in the MAC does not change</span></p>

<p id="dt-comment-72"><strong>Line 332:</strong> <span> the meaning of 'phy-mode'. It does however mean that a 'phy-mode' of</span></p>

<p id="dt-comment-73"><strong>Line 333:</strong> <span> 'rgmii' is now invalid, it cannot be supported, since both the PCB</span></p>

<p id="dt-comment-74"><strong>Line 334:</strong> <span> and the MAC and PHY adding delays cannot result in a functional</span></p>

<p id="dt-comment-75"><strong>Line 335:</strong> <span> link. Thus the MAC should report a fatal error for any modes which</span></p>

<p id="dt-comment-76"><strong>Line 336:</strong> <span> cannot be supported. When the MAC implements the delay, it must</span></p>

<p id="dt-comment-77"><strong>Line 337:</strong> <span> ensure that the PHY does not also implement the same delay. So it</span></p>

<p id="dt-comment-78"><strong>Line 338:</strong> <span> must modify the phy-mode it passes to the PHY, removing the delay it</span></p>

<p id="dt-comment-79"><strong>Line 339:</strong> <span> has added. Failure to remove the delay will result in a</span></p>

<p id="dt-comment-80"><strong>Line 340:</strong> <span> non-functioning link.</span></p>

<p id="dt-comment-81"><strong>Line 341:</strong> <span></span></p>

<p id="dt-comment-82"><strong>Line 342:</strong> <span> Sometimes there is a need to fine tune the delays. Often the MAC or</span></p>

<p id="dt-comment-83"><strong>Line 343:</strong> <span> PHY can perform this fine tuning. In the MAC node, the Device Tree</span></p>

<p id="dt-comment-84"><strong>Line 344:</strong> <span> properties 'rx-internal-delay-ps' and 'tx-internal-delay-ps' should</span></p>

<p id="dt-comment-85"><strong>Line 345:</strong> <span> be used to indicate fine tuning performed by the MAC. The values</span></p>

<p id="dt-comment-86"><strong>Line 346:</strong> <span> expected here are small. A value of 2000ps, i.e 2ns, and a phy-mode</span></p>

<p id="dt-comment-87"><strong>Line 347:</strong> <span> of 'rgmii' will not be accepted by Reviewers.</span></p>

<p id="dt-comment-88"><strong>Line 348:</strong> <span></span></p>

<p id="dt-comment-89"><strong>Line 349:</strong> <span> If the PHY is to perform fine tuning, the properties</span></p>

<p id="dt-comment-90"><strong>Line 350:</strong> <span> 'rx-internal-delay-ps' and 'tx-internal-delay-ps' in the PHY node</span></p>

<p id="dt-comment-91"><strong>Line 351:</strong> <span> should be used. When the PHY is implementing delays, e.g. 'rgmii-id'</span></p>

<p id="dt-comment-92"><strong>Line 352:</strong> <span> these properties should have a value near to 2000ps. If the PCB is</span></p>

<p id="dt-comment-93"><strong>Line 353:</strong> <span> implementing delays, e.g. 'rgmii', a small value can be used to fine</span></p>

<p id="dt-comment-94"><strong>Line 354:</strong> <span> tune the delay added by the PCB.</span></p>

</details>
