# MDIO Bus Common Properties

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

> Device-tree binding reference for MDIO Bus 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;mdio&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">These are generic properties that can apply to any MDIO bus. Any MDIO bus must have a list of child nodes, one per device on the bus. These should follow the generic ethernet-phy.yaml document, or a device specific binding document.</p>
</div>

<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;mdio&#40;&#45;&#40;bus&#124;external&#41;&#41;&#63;&#40;&#64;&#46;&#43;&#124;&#45;&#40;&#91;0&#45;9&#93;&#43;&#41;&#41;&#63;&#36;&#34;</code></span>

<a id="dt-2efe70314a961a652abe"></a>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</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 phandle and specifier for the GPIO that controls the RESET lines of all devices on that MDIO bus.</p>
</div>

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

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

<div id="dt-2809baea3adcbfc64c87">
<p style="white-space: pre-wrap">RESET pulse width in microseconds. It applies to all MDIO devices and must therefore be appropriately determined based on all devices requirements (maximum value of all per-device RESET pulse widths).</p>
</div>

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

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

<div id="dt-a0ef532558b392ea559c">
<p style="white-space: pre-wrap">Delay after reset deassert in microseconds. It applies to all MDIO devices and it's determined by how fast all devices are ready for communication. This delay happens just before e.g. Ethernet PHY type ID auto detection.</p>
</div>

<a id="dt-0298421e73bc073162cc"></a>

### <code>clock&#45;frequency</code> — not listed as required here

<div id="dt-a8bced0e066c3e53744b">
<p style="white-space: pre-wrap">Desired MDIO bus clock frequency in Hz. Values greater than IEEE 802.3 defined 2.5MHz should only be used when all devices on the bus support the given clock speed.</p>
</div>

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

### <code>suppress&#45;preamble</code> — not listed as required here

<div id="dt-6f6d9c9b24c6bd8ddbe4">
<p style="white-space: pre-wrap">The 32 bit preamble should be suppressed. In order for this to work, all devices on the bus must support suppressed preamble.</p>
</div>

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

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

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

<a id="dt-573587cdb3ff39c5b5e0"></a>

### <code>&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

<a id="dt-2086facb1246423cc914"></a>

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

<a id="dt-11d15fd5bdba07ab85a5"></a>

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

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

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

<div id="dt-97f4c9116970a1f94f97">
<p style="white-space: pre-wrap">The ID number for the device.</p>
</div>

<a id="dt-1108fad0ee20e4cbae9a"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4ab879eef251dd670e59">[<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-86a1d4a70b1a5bf8a719">
<p style="white-space: pre-wrap">If set, indicates the MDIO 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-682fda288caed74136ef"></a>

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

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

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

<a id="dt-3977d035c4a852e19d25"></a>

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

<div id="dt-2b0602be64f7086fcf3f">
<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-e46b2460c9f05bef87f1"></a>

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

<div id="dt-ed03fc8f03ecddd2ae23">
<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>

**Required in this object (<code>required</code>):** <a id="dt-135aee2a2b59e6c53533"></a> <span id="dt-edfb2b957765627279df"><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">davinci_mdio: mdio@5c030000 {
    reg = &lt;0x5c030000 0x1000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    reset-gpios = &lt;&amp;gpio2 5 1&gt;;
    reset-delay-us = &lt;2&gt;;

    ethphy0: ethernet-phy@1 {
        reg = &lt;1&gt;;
    };

    ethphy1: ethernet-phy@3 {
        reg = &lt;3&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</span></p>

</details>
