# Micrel series Gigabit Ethernet PHYs

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

> Device-tree binding reference for Micrel series Gigabit Ethernet PHYs.

<!-- 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;micrel&#44;gigabit&#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;Stefan Eichenberger &#60;eichest&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Some boards require special skew tuning values, particularly when it comes to clock delays. These values can be specified in the device tree using the properties listed here.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1610&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1611&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1620&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1631&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1640&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1650&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1660&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1670&#34;</code></span>

<a id="dt-17d421dc49747f1a7ec9"></a>

### <code>micrel&#44;force&#45;master</code> — not listed as required here

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

<div id="dt-7b4a8b6e41ef001c7062">
<p style="white-space: pre-wrap">Force phy to master mode. Only set this option if the phy reference
clock provided at CLK125_NDO pin is used as MAC reference clock
because the clock jitter in slave mode is too high (errata#2).
Attention: The link partner must be configurable as slave otherwise
no link will be established.</p>
</div>

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

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

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

<div id="dt-9dbf38ee380b10bbb5ae">
<p style="white-space: pre-wrap">If present the given gpio will be deasserted when the PHY is probed.</p>
<p style="white-space: pre-wrap">Some PHYs have a COMA mode input pin which puts the PHY into
isolate and power-down mode. On some boards this input is connected
to a GPIO of the SoC.</p>
</div>

<a id="dt-6d25fe3fdd2bf2629127"></a>

### <code>micrel&#44;led&#45;mode</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e1771881b9029c6bab48">[<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-0a3c1c3b6db300dd7d40">
<p style="white-space: pre-wrap">LED mode value to set for PHYs with configurable LEDs.</p>
<p style="white-space: pre-wrap">Configure the LED mode with single value. The list of PHYs and the
bits that are currently supported:</p>
<p style="white-space: pre-wrap">LAN8814: register EP5.0, bit 6</p>
<p style="white-space: pre-wrap">See the respective PHY datasheet for the mode values.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-feeb62f17b2cc8d05d68"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-fbd92d177bfc6aa68734"><code>1</code></span>

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

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

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

### <code>&#94;&#40;&#91;rt&#93;xc&#41;&#45;skew&#45;psec&#36;</code> — name matches this regular expression

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

<div id="dt-077a102eb7dfa2ec447f">
<p style="white-space: pre-wrap">Skew control of the pad in picoseconds.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-7615eee87f8b5e000566"><code>&#45;700</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-97fcd839c13bb9dd9c65"><code>2400</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-cb5a1b25a0352bf2fd10"><code>100</code></span>

**Default value (<code>default</code>):** <span id="dt-3611c09e26cec1898bb9"><code>0</code></span>

<a id="dt-45a5e26249846c05ee48"></a>

### <code>&#94;&#40;&#91;rt&#93;xd&#91;0&#45;3&#93;&#124;rxdv&#124;txen&#41;&#45;skew&#45;psec&#36;</code> — name matches this regular expression

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

<div id="dt-f91ce6b189816c795e7f">
<p style="white-space: pre-wrap">Skew control of the pad in picoseconds.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-b5ceaa53126b3a6a9af0"><code>&#45;700</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-a781282ecb63f6695017"><code>800</code></span>

**Multiple of (<code>multipleOf</code>):** <span id="dt-9b311ae04b443c60ecf0"><code>100</code></span>

**Default value (<code>default</code>):** <span id="dt-9eb9a00fbd223655bdb0"><code>0</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>ethernet&#45;phy&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-net/ethernet-phy.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-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1610&#34;</code></span>, <span id="dt-97636aa7a2139f7622b5"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1611&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-8b91e530d80f7cc46df3"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-dd557af0de90b477bd3d"></a>
> >
> > **<code>&#94;&#40;&#91;rt&#93;xd&#91;0&#45;3&#93;&#124;&#91;rt&#93;xc&#124;rxdv&#124;txen&#41;&#45;skew&#45;ps&#36;</code> — name matches this regular expression**
> >
> > <div id="dt-70ce7420ff448a25a95d">
> > <p style="white-space: pre-wrap">Skew control of the pad in picoseconds.
> > The actual increment on the chip is 120ps ranging from -840ps to
> > 960ps, this mismatch comes from a documentation error before
> > datasheet revision 1.2 (Feb 2014).</p>
> > <p style="white-space: pre-wrap">The device tree value to delay mapping looks as follows:
> > Device Tree Value   Delay
> > --------------------------
> > 0                   -840ps
> > 200                 -720ps
> > 400                 -600ps
> > 600                 -480ps
> > 800                 -360ps
> > 1000                -240ps
> > 1200                -120ps
> > 1400                   0ps
> > 1600                 120ps
> > 1800                 240ps
> > 2000                 360ps
> > 2200                 480ps
> > 2400                 600ps
> > 2600                 720ps
> > 2800                 840ps
> > 3000                 960ps</p>
> > </div>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-481a5de07d520b9ad61a"><code>0</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-30663974ce0ac036730c"><code>3000</code></span>
> >
> > **Multiple of (<code>multipleOf</code>):** <span id="dt-ed43305ddce1a0dbbb92"><code>200</code></span>
> >
> > **Default value (<code>default</code>):** <span id="dt-ee591e4d1b182707f50e"><code>1400</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8cd5c6ac7cc13c2d9acf"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1620&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-c8fcd31065f7e965d191"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-aa380a5376d7332d11aa"></a>
> >
> > **<code>&#94;&#40;&#91;rt&#93;xc&#41;&#45;skew&#45;ps&#36;</code> — name matches this regular expression**
> >
> > <div id="dt-c624078df49f5a5853b3">
> > <p style="white-space: pre-wrap">Skew control of the pad in picoseconds.</p>
> > <p style="white-space: pre-wrap">The device tree value to delay mapping is as follows:
> > Device Tree Value   Delay
> > --------------------------
> > 0                   -900ps
> > 60                  -840ps
> > 120                 -780ps
> > 180                 -720ps
> > 240                 -660ps
> > 300                 -600ps
> > 360                 -540ps
> > 420                 -480ps
> > 480                 -420ps
> > 540                 -360ps
> > 600                 -300ps
> > 660                 -240ps
> > 720                 -180ps
> > 780                 -120ps
> > 840                  -60ps
> > 900                    0ps
> > 960                   60ps
> > 1020                 120ps
> > 1080                 180ps
> > 1140                 240ps
> > 1200                 300ps
> > 1260                 360ps
> > 1320                 420ps
> > 1380                 480ps
> > 1440                 540ps
> > 1500                 600ps
> > 1560                 660ps
> > 1620                 720ps
> > 1680                 780ps
> > 1740                 840ps
> > 1800                 900ps
> > 1860                 960ps</p>
> > </div>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-7c494f6186ecd2752b48"><code>0</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-b9195bfde675f536c049"><code>1860</code></span>
> >
> > **Multiple of (<code>multipleOf</code>):** <span id="dt-a1232b2a54658d65155b"><code>60</code></span>
> >
> > **Default value (<code>default</code>):** <span id="dt-f9f48ddad682d50da9a6"><code>900</code></span>
> >
> > <a id="dt-cecc9ae00d726eedbd3d"></a>
> >
> > **<code>&#94;&#40;&#91;rt&#93;xd&#91;0&#45;3&#93;&#124;rxdv&#124;txen&#41;&#45;skew&#45;ps&#36;</code> — name matches this regular expression**
> >
> > <div id="dt-b6b688eda2ea743dace9">
> > <p style="white-space: pre-wrap">Skew control of the pad in picoseconds.</p>
> > <p style="white-space: pre-wrap">The device tree value to delay mapping is as follows:
> > Device Tree Value   Delay
> > --------------------------
> > 0                   -420ps
> > 60                  -360ps
> > 120                 -300ps
> > 180                 -240ps
> > 240                 -180ps
> > 300                 -120ps
> > 360                  -60ps
> > 420                    0ps
> > 480                   60ps
> > 540                  120ps
> > 600                  180ps
> > 660                  240ps
> > 720                  300ps
> > 780                  360ps
> > 840                  420ps
> > 900                  480ps</p>
> > </div>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-b0737fb21c29831ab8e9"><code>0</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-2013e39d50b15827bf96"><code>900</code></span>
> >
> > **Multiple of (<code>multipleOf</code>):** <span id="dt-2fbf975ddcf283cd9e57"><code>60</code></span>
> >
> > **Default value (<code>default</code>):** <span id="dt-74bbd451886595c581fa"><code>420</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-ab3c9681fafbc97f4647"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-de54006384b37d597b9e"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-296002be268140b67615"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-1324735c82a7f4eed531"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Allowed values (<code>enum</code>):** <a id="dt-6dc02a99bb47e7f291d3"></a> <span id="dt-ebd3e0b999dba07c38ce"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1640&#34;</code></span>, <span id="dt-67601910bf9567dacd6b"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1650&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-9fff9961ce6722b392f4"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-7c15838d29cf348cfa55"></a>
> >
> > **<code>&#94;&#40;&#91;rt&#93;xd&#91;0&#45;3&#93;&#124;&#91;rt&#93;xc&#124;rxdv&#124;txen&#41;&#45;skew&#45;psec&#36;</code> — name matches this regular expression**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-1c66024c2be5a725f708"></a>

### Rule 5

> <a id="dt-30dd43480a02ff52099e"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-06a32328eeb4e0ad5381"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-94fb1b45a6c263b9d0b2"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-4dfa1d7e952c658b5efb"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-9442ce240d8796db92e3"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-afc73fc7756407e31017"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1620&#34;</code></span>
>
> <a id="dt-b13bdf6bf01ba2db1729"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-61105cb355bf27434ff1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-422610931f14efc9c967"></a>
> >
> > **<code>micrel&#44;force&#45;master</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-51879ae9be030b28e888"></a>

### Rule 6

> <a id="dt-29f1a7d11303016de0fb"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-d421b49339dd015fa095"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-1acee6e9365fa84f5547"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-11f637e7db87a0a9a539"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-d774ca28bcfd952ef549"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-dcec87f0f33b657d4e2a"><code>&#34;ethernet&#45;phy&#45;id0022&#46;1660&#34;</code></span>
>
> <a id="dt-5d3814a6fa606b79b9a6"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-bc42d1cd066384e1f6fa"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d2d159c17cbef7b8692b"></a>
> >
> > **<code>coma&#45;mode&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-081b84318ddc3d3dfe72"></a>
> >
> > **<code>micrel&#44;led&#45;mode</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<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">mdio {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    ethernet-phy@7 {
        compatible = "ethernet-phy-id0022.1610";
        reg = &lt;7&gt;;
        rxc-skew-ps = &lt;3000&gt;;
        rxdv-skew-ps = &lt;0&gt;;
        txc-skew-ps = &lt;3000&gt;;
        txen-skew-ps = &lt;0&gt;;
    };

    ethernet-phy@9 {
        compatible = "ethernet-phy-id0022.1640";
        reg = &lt;9&gt;;
        rxc-skew-psec = &lt;(-100)&gt;;
        txc-skew-psec = &lt;(-100)&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-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 21:</strong> <span> KSZ9021</span></p>

<p id="dt-comment-2"><strong>Line 22:</strong> <span> KSZ9021RLRN</span></p>

<p id="dt-comment-3"><strong>Line 23:</strong> <span> KSZ9031</span></p>

<p id="dt-comment-4"><strong>Line 24:</strong> <span> KSZ9477</span></p>

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

<p id="dt-comment-6"><strong>Line 26:</strong> <span> LAN8841</span></p>

<p id="dt-comment-7"><strong>Line 27:</strong> <span> LAN8814</span></p>

<p id="dt-comment-8"><strong>Line 28:</strong> <span> LAN8804</span></p>

</details>
