# Marvell Aquantia Ethernet PHY

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

> Device-tree binding reference for Marvell Aquantia Ethernet PHY.

<!-- 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;marvell&#44;aquantia&#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;Christian Marangi &#60;ansuelsmth&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Marvell Aquantia Ethernet PHY require a firmware to be loaded to actually
work.</p>
<pre><code>This can be done and is implemented by OEM in 3 different way:
  - Attached SPI flash directly to the PHY with the firmware. The PHY
    will self load the firmware in the presence of this configuration.
  - Read from a dedicated partition on system NAND declared in an
    NVMEM cell, and loaded to the PHY using its mailbox interface.
  - Manually provided firmware loaded from a file in the filesystem.</code></pre>
</div>

<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-865ef19e891fb9fe7b15"></a>

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

> <a id="dt-54d143fae2406295c883"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-e3400bab629503b08322"></a>
>
> #### <code>compatible</code> — required here
>
> <a id="dt-2ae4f0f9580bb5b2e406"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-ce9b069a8031ff280c23"></a> <span id="dt-e79f31d4eec3cf736314"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b445&#34;</code></span>, <span id="dt-b228f13d1a3291d89dd4"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b460&#34;</code></span>, <span id="dt-cc3d5823015e494170a8"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b4a2&#34;</code></span>, <span id="dt-dcbe8fc5e23061e20c12"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b4d0&#34;</code></span>, <span id="dt-2b76aa372dcff21d79e8"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b4e0&#34;</code></span>, <span id="dt-0434967cb0b9d7e605bd"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b5c2&#34;</code></span>, <span id="dt-7a26ac8bf7c1d12397b0"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b4b0&#34;</code></span>, <span id="dt-7110f94876a84a79b55d"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b662&#34;</code></span>, <span id="dt-4e102f85409957329aa6"><code>&#34;ethernet&#45;phy&#45;id03a1&#46;b712&#34;</code></span>, <span id="dt-0a2d2dfdc364c76dab6a"><code>&#34;ethernet&#45;phy&#45;id31c3&#46;1c12&#34;</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-c7b135d3aebb6d627788"></a> <span id="dt-7b7a89ef483af1198868"><code>&#34;compatible&#34;</code></span>

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

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

<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-b913167a56819d67f1a5"></a>

### <code>firmware&#45;name</code> — not listed as required here

<div id="dt-0b76b2c415d449884d95">
<p style="white-space: pre-wrap">specify the name of PHY firmware to load</p>
</div>

<a id="dt-88d59bb5bbdb4711b01c"></a>

### <code>marvell&#44;mdi&#45;cfg&#45;order</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fd14b466b1dcfd6c3cdd">[<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-487d1989a382cc5b6b42"></a> <span id="dt-a307abe75a0e682ccea6"><code>0</code></span>, <span id="dt-519fe85526379013509c"><code>1</code></span>

<div id="dt-697279c81ce3169501fe">
<p style="white-space: pre-wrap">force normal (0) or reverse (1) order of MDI pairs, overriding MDI_CFG bootstrap pin.</p>
</div>

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

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

<div id="dt-6e22bea212c5f15c1ddb">
<p style="white-space: pre-wrap">phandle to the firmware nvmem cell</p>
</div>

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

<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;firmware&#34;</code></span>

**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-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@0 {
        compatible = "ethernet-phy-id31c3.1c12",
                     "ethernet-phy-ieee802.3-c45";

        reg = &lt;0&gt;;
        firmware-name = "AQR-G4_v5.4.C-AQR_CIG_WF-1945_0x8_ID44776_VER1630.cld";
    };

    ethernet-phy@1 {
        compatible = "ethernet-phy-id31c3.1c12",
                     "ethernet-phy-ieee802.3-c45";

        reg = &lt;1&gt;;
        nvmem-cells = &lt;&amp;aqr_fw&gt;;
        nvmem-cell-names = "firmware";
    };
};

flash {
    compatible = "jedec,spi-nor";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    partitions {
        compatible = "fixed-partitions";
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;

        /* ... */

        partition@650000 {
            compatible = "nvmem-cells";
            label = "0:ethphyfw";
            reg = &lt;0x650000 0x80000&gt;;
            read-only;
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;1&gt;;

            aqr_fw: aqr_fw@0 {
                reg = &lt;0x0 0x5f42a&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>
