# Ethernet PHY Common Properties

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

> Device-tree binding reference for Ethernet PHY 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;phy&#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;Heiner Kallweit &#60;hkallweit1&#64;gmail&#46;com&#62;&#34;</code></span>

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

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

> <a id="dt-54d143fae2406295c883"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-4e63e5fdf074541a204d"></a>
>
> #### <code>&#36;nodename</code> — required here
>
> **String pattern (<code>pattern</code>):** <span id="dt-755ffd331139549c663c"><code>&#34;&#94;ethernet&#45;phy&#40;&#64;&#91;a&#45;f0&#45;9&#93;&#43;&#41;&#63;&#36;&#34;</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-c7b135d3aebb6d627788"></a> <span id="dt-7b7a89ef483af1198868"><code>&#34;&#36;nodename&#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&#45;phy&#40;&#64;&#91;a&#45;f0&#45;9&#93;&#43;&#41;&#63;&#36;&#34;</code></span>

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

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

<a id="dt-39566f01414e34c67b85"></a>

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

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;ethernet&#45;phy&#45;ieee802&#46;3&#45;c22&#34;</code></span>
>
> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">PHYs that implement IEEE802.3 clause 22</p>
> </div>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;ethernet&#45;phy&#45;ieee802&#46;3&#45;c45&#34;</code></span>
>
> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">PHYs that implement IEEE802.3 clause 45</p>
> </div>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **String pattern (<code>pattern</code>):** <span id="dt-a7c532ddc65849edfbc1"><code>&#34;&#94;ethernet&#45;phy&#45;id&#91;a&#45;f0&#45;9&#93;&#123;4&#125;&#92;&#92;&#46;&#91;a&#45;f0&#45;9&#93;&#123;4&#125;&#36;&#34;</code></span>
>
> <div id="dt-34ebc3371373135d1528">
> <p style="white-space: pre-wrap">PHYs contain identification registers. These will be read to identify the PHY. If the PHY reports an incorrect ID, or the PHY requires a specific initialization sequence (like a particular order of clocks, resets, power supplies), in order to be able to read the ID registers, then the compatible list must contain an entry with the correct PHY ID in the above form. The first group of digits is the 16 bit Phy Identifier 1 register, this is the chip vendor OUI bits 3:18. The second group of digits is the Phy Identifier 2 register, this is the chip vendor OUI bits 19:24, followed by 10 bits of a vendor specific ID.</p>
> </div>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-8e9ae1ccb79d2b33bcde"><code>&#34;&#94;ethernet&#45;phy&#45;id&#91;a&#45;f0&#45;9&#93;&#123;4&#125;&#92;&#92;&#46;&#91;a&#45;f0&#45;9&#93;&#123;4&#125;&#36;&#34;</code></span>
>
> <a id="dt-c99d921c49bf15e79633"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9e0f2ef968dd632f09b7"><code>&#34;ethernet&#45;phy&#45;ieee802&#46;3&#45;c22&#34;</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> <a id="dt-196210d7e8a5e94e1226"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4b7c967de45ba4ead27f"></a>
>
> **Item 1**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-fd6ec683cb5358d1e605"><code>&#34;&#94;ethernet&#45;phy&#45;id&#91;a&#45;f0&#45;9&#93;&#123;4&#125;&#92;&#92;&#46;&#91;a&#45;f0&#45;9&#93;&#123;4&#125;&#36;&#34;</code></span>
>
> <a id="dt-caf6ce7d7f34e1e8d173"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-4a97b7e5e83d59103118"><code>&#34;ethernet&#45;phy&#45;ieee802&#46;3&#45;c45&#34;</code></span>

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

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-3f0a45b6ec86a13e631b"><code>31</code></span>

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">The ID number for the PHY.</p>
</div>

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

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-a9e113afd3cf874daae5"></a> <span id="dt-084a200a603a22536d28"><code>10</code></span>, <span id="dt-44c9debb397835574142"><code>100</code></span>, <span id="dt-ddc778861100072ee171"><code>1000</code></span>, <span id="dt-0464ec6f34a35ae88b41"><code>2500</code></span>, <span id="dt-1fd8882db7276cb55bb1"><code>5000</code></span>, <span id="dt-e6cf7bcd39f980479d81"><code>10000</code></span>, <span id="dt-49213c16e823e1e92b4d"><code>20000</code></span>, <span id="dt-e25029d8ab706630fcd4"><code>25000</code></span>, <span id="dt-51789a46705e0004599d"><code>40000</code></span>, <span id="dt-adbb63d082d6c6f1549d"><code>50000</code></span>, <span id="dt-66038d9bc6e65e4b28af"><code>56000</code></span>, <span id="dt-d8ed20eab2f7760f22a8"><code>100000</code></span>, <span id="dt-ad195205e15b0bafde40"><code>200000</code></span>

<div id="dt-dfa08af6b6b99430a5e9">
<p style="white-space: pre-wrap">Maximum PHY supported speed in Mbits / seconds.</p>
</div>

<a id="dt-2776994cac1150437969"></a>

### <code>phy&#45;10base&#45;t1l&#45;2&#46;4vpp</code> — not listed as required here

<div id="dt-8f9e69364b3f5fb415c5">
<p style="white-space: pre-wrap">tristate, request/disable 2.4 Vpp operating mode. The values are:
0: Disable 2.4 Vpp operating mode.
1: Request 2.4 Vpp operating mode from link partner.
Absence of this property will leave configuration to default values.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-aa09a4fc122613c0b8c7">[<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-46ffe13a5c5b910ee764"></a> <span id="dt-3db45003c9608ea23932"><code>0</code></span>, <span id="dt-f64187e21ac088d54856"><code>1</code></span>

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

### <code>broken&#45;turn&#45;around</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8655d221282fe86cdc96">[<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-d5e9fc0bbdbdcc5a5035">
<p style="white-space: pre-wrap">If set, indicates the PHY device does not correctly release the turn around line low at end of the control phase of the MDIO transaction.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bd63c6263a4a918e8941">[<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-cd6af936b1d9073dbd5f">
<p style="white-space: pre-wrap">If set, indicates the network cable interface is an alternative one as defined in the BroadR-Reach link mode specification under 1BR-100 and 1BR-10 names. The PHY must be configured to operate in BroadR-Reach mode by software.</p>
</div>

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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">External clock connected to the PHY. If not specified it is assumed that the PHY uses a fixed crystal or an internal oscillator.</p>
</div>

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

### <code>enet&#45;phy&#45;lane&#45;swap</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9c1e907111548610f192">[<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-1d6b5ad1415a25e2bd19">
<p style="white-space: pre-wrap">If set, indicates the PHY will swap the TX/RX lanes to compensate for the board being designed with the lanes swapped.</p>
</div>

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

### <code>enet&#45;phy&#45;lane&#45;no&#45;swap</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-87ae3bfa443f27c891a2">[<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-9ad11e012352d4fa7f29">
<p style="white-space: pre-wrap">If set, indicates that PHY will disable swap of the TX/RX lanes. This property allows the PHY to work correctly after e.g. wrong bootstrap configuration caused by issues in PCB layout design.</p>
</div>

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

### <code>eee&#45;broken&#45;100tx</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0a743bfe606f4409fadd">[<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-ead8ab4d43390a41a621">
<p style="white-space: pre-wrap">Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.</p>
</div>

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

### <code>eee&#45;broken&#45;1000t</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d3015803fabb5884e8fd">[<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-17b27156aa63408171f6">
<p style="white-space: pre-wrap">Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.</p>
</div>

<a id="dt-467edfbae1fe2f8495d7"></a>

### <code>eee&#45;broken&#45;10gt</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9110ad33c54012be20c8">[<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-3c3f43613f61a08a1a02">
<p style="white-space: pre-wrap">Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.</p>
</div>

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

### <code>eee&#45;broken&#45;1000kx</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c3368ac821441ad9dea5">[<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-e09117557ba702766504">
<p style="white-space: pre-wrap">Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.</p>
</div>

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

### <code>eee&#45;broken&#45;10gkx4</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a3cda4f4eddb418efb38">[<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-ee28cb36f4e792c3049d">
<p style="white-space: pre-wrap">Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.</p>
</div>

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

### <code>eee&#45;broken&#45;10gkr</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a020656e351d44a05e70">[<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-9242ca182d34a557bad9">
<p style="white-space: pre-wrap">Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.</p>
</div>

<a id="dt-271406d1e8a2211360b1"></a>

### <code>timing&#45;role</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-79b4cca5fcf042309c55"></a> <span id="dt-eec6c66cea7f197f9116"><code>&#34;forced&#45;master&#34;</code></span>, <span id="dt-8d94da761e6538de7026"><code>&#34;forced&#45;slave&#34;</code></span>, <span id="dt-8bbea99aa969ab01129a"><code>&#34;preferred&#45;master&#34;</code></span>, <span id="dt-870dd351328342b345f5"><code>&#34;preferred&#45;slave&#34;</code></span>

<div id="dt-639d89d48ee36abbca27">
<p style="white-space: pre-wrap">Specifies the timing role of the PHY in the network link. This property is
required for setups where the role must be explicitly assigned via the
device tree due to limitations in hardware strapping or incorrect strap
configurations.
It is applicable to Single Pair Ethernet (1000/100/10Base-T1) and other
PHY types, including 1000Base-T, where it controls whether the PHY should
be a master (clock source) or a slave (clock receiver).</p>
<p style="white-space: pre-wrap">- 'forced-master': The PHY is forced to operate as a master.
- 'forced-slave': The PHY is forced to operate as a slave.
- 'preferred-master': Prefer the PHY to be master but allow negotiation.
- 'preferred-slave': Prefer the PHY to be slave but allow negotiation.</p>
</div>

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

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

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

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

<div id="dt-5ad66f6f45bf20f6ce11">
<p style="white-space: pre-wrap">Specifies a reference to a node representing a Power Sourcing Equipment.</p>
</div>

<a id="dt-26acf057ad5a3c12234f"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0b2f0d19ab4a81e9ea70">[<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-04ad3a911d7ea8f9ef89">
<p style="white-space: pre-wrap">If set, indicates that the PHY is integrated into the same physical package as the Ethernet MAC. If needed, muxers should be configured to ensure the integrated PHY is used. The absence of this property indicates the muxers should be configured so that the external PHY is used.</p>
</div>

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

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

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

<a id="dt-563c20491090a57ac4c9"></a>

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

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

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

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

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">The GPIO phandle and specifier for the PHY reset signal.</p>
</div>

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

### <code>reset&#45;assert&#45;us</code> — not listed as required here

<div id="dt-a3da07d203819927fff8">
<p style="white-space: pre-wrap">Delay after the reset was asserted in microseconds. If this property is missing the delay will be skipped.</p>
</div>

<a id="dt-65c1a4877106034a6831"></a>

### <code>reset&#45;deassert&#45;us</code> — not listed as required here

<div id="dt-62d074a726955dfc17e3">
<p style="white-space: pre-wrap">Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.</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-28ad24ebe725c77113a9"></a>

### <code>rx&#45;internal&#45;delay&#45;ps</code> — not listed as required here

<div id="dt-5052e20b9a25f01c2684">
<p style="white-space: pre-wrap">RGMII Receive PHY Clock Delay defined in pico seconds.  This is used for
PHY's that have configurable RX internal delays.  If this property is
present then the PHY applies the RX delay.</p>
</div>

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

### <code>tx&#45;internal&#45;delay&#45;ps</code> — not listed as required here

<div id="dt-01c4db4f05a0e0b4fa32">
<p style="white-space: pre-wrap">RGMII Transmit PHY Clock Delay defined in pico seconds.  This is used for
PHY's that have configurable TX internal delays. If this property is
present then the PHY applies the TX delay.</p>
</div>

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

### <code>tx&#45;amplitude&#45;100base&#45;tx&#45;percent</code> — not listed as required here

<div id="dt-b326de9e1c7da5d391c0">
<p style="white-space: pre-wrap">Transmit amplitude gain applied for 100BASE-TX. 100% matches 2V peak-to-peak specified in ANSI X3.263. When omitted, the PHYs default will be left as is.</p>
</div>

<a id="dt-67550c353522d1aeb3c1"></a>

### <code>mac&#45;termination&#45;ohms</code> — not listed as required here

**Maximum value (<code>maximum</code>):** <span id="dt-19259068353cf270bd5d"><code>200</code></span>

<div id="dt-2a4d18bb50299e12c8a1">
<p style="white-space: pre-wrap">The xMII signals need series termination on the driver side to match both the output driver impedance and the line characteristic impedance, to prevent reflections and EMI problems. Select a resistance value which is supported by the builtin resistors of the PHY, otherwise the resistors may have to be placed on board. When omitted, the PHYs default will be left as is.</p>
</div>

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

### <code>leds</code> — not listed as 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-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-701f179423f9d6ab5eb7"></a>

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

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

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

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

<a id="dt-284fac48a2839cb17eb6"></a>

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

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

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

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

<code>false</code>

Not allowed by this rule.

<a id="dt-0ea109e5ccdc71c1b949"></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;reg&#34;</code></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-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/leds/common.h&gt;

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

    ethernet-phy@0 {
        compatible = "ethernet-phy-id0141.0e90", "ethernet-phy-ieee802.3-c45";
        interrupt-parent = &lt;&amp;PIC&gt;;
        interrupts = &lt;35 1&gt;;
        reg = &lt;0&gt;;

        resets = &lt;&amp;rst 8&gt;;
        reset-names = "phy";
        reset-gpios = &lt;&amp;gpio1 4 1&gt;;
        reset-assert-us = &lt;1000&gt;;
        reset-deassert-us = &lt;2000&gt;;

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

            led@0 {
                reg = &lt;0&gt;;
                color = &lt;LED_COLOR_ID_WHITE&gt;;
                function = LED_FUNCTION_LAN;
                default-state = "keep";
            };
        };
        /* Fast Ethernet port, with only 2 pairs wired */
        mdi {
            connector-0 {
                pairs = &lt;2&gt;;
                media = "BaseT";
            };
        };
    };
};
</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</span></p>

<p id="dt-comment-1"><strong>Line 14:</strong> <span> The dt-schema tools will generate a select statement first by using</span></p>

<p id="dt-comment-2"><strong>Line 15:</strong> <span> the compatible, and second by using the node name if any. In our</span></p>

<p id="dt-comment-3"><strong>Line 16:</strong> <span> case, the node name is the one we want to match on, while the</span></p>

<p id="dt-comment-4"><strong>Line 17:</strong> <span> compatible is optional.</span></p>

</details>
