# Freescale Frame Manager MDIO Device

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

> Device-tree binding reference for Freescale Frame Manager MDIO Device.

<!-- 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;fsl&#44;fman&#45;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;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">FMan MDIO Node. The MDIO is a bus to which the PHY devices are connected.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;fsl&#44;fman&#45;mdio&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;fsl&#44;fman&#45;xmdio&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;fsl&#44;fman&#45;memac&#45;mdio&#34;</code></span>

<div id="dt-e84064a2d568e9bcb9c3">
<p style="white-space: pre-wrap">Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2. Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2. Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from FMan v3.</p>
</div>

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

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

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

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

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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">A reference to the input clock of the controller from which the MDC frequency is derived.</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-c447ca6038945842b5cb"></a>

### <code>fsl&#44;fman&#45;internal&#45;mdio</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-327462c4dd1e98887d7e">[<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-f5cd2ebcdb749bf0adf6">
<p style="white-space: pre-wrap">Fman has internal MDIO for internal PCS(Physical Coding Sublayer) PHYs and external MDIO for external PHYs. The settings and programming routines for internal/external MDIO are different. Must be included for internal MDIO.</p>
</div>

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

### <code>fsl&#44;erratum&#45;a009885</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b967938667115bf5e12e">[<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-9adc0007ee298a5b5911">
<p style="white-space: pre-wrap">Indicates the presence of the A009885 erratum describing that the contents of MDIO_DATA may become corrupt unless it is read within 16 MDC cycles of MDIO_CFG[BSY] being cleared, when performing an MDIO read operation.</p>
</div>

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

### <code>fsl&#44;erratum&#45;a011043</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-17bc039aa4f170302768">[<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-ac495d43b65420e86821">
<p style="white-space: pre-wrap">Indicates the presence of the A011043 erratum describing that the MDIO_CFG[MDIO_RD_ER] bit may be falsely set when reading internal PCS registers. MDIO reads to internal PCS registers may result in having the MDIO_CFG[MDIO_RD_ER] bit set, even when there is no error and read data (MDIO_DATA[MDIO_DATA]) is correct. Software may get false read error when reading internal PCS registers through MDIO. As a workaround, all internal MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit.
For internal PHY device on internal mdio bus, a PHY node should be created. See the definition of the PHY node in booting-without-of.txt for an example of how to define a PHY (Internal PHY has no interrupt line). - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY. - For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY. The PCS PHY address should correspond to the value of the appropriate MDEV_PORT.</p>
</div>

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

### <code>little&#45;endian</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-584f28dfc426624143c1">[<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-9666ce8a1ec52638c9b5">
<p style="white-space: pre-wrap">IP block is little-endian mode. The default endian mode is big-endian.</p>
</div>

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

<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>mdio&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-net/mdio.md#dt-root>)</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">mdio@f1000 {
    compatible = "fsl,fman-xmdio";
    reg = &lt;0xf1000 0x1000&gt;;
    interrupts = &lt;101 2 0 0&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">mdio@e3120 {
    compatible = "fsl,fman-mdio";
    reg = &lt;0xe3120 0xee0&gt;;
    fsl,fman-internal-mdio;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    tbi-phy@8 {
        reg = &lt;0x8&gt;;
        device_type = "tbi-phy";
    };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">mdio@f1000 {
    compatible = "fsl,fman-memac-mdio";
    reg = &lt;0xf1000 0x1000&gt;;
    fsl,fman-internal-mdio;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    pcsphy6: ethernet-phy@0 {
        reg = &lt;0x0&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>

</details>
