# Qualcomm Atheros AR803x PHY

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

> Device-tree binding reference for Qualcomm Atheros AR803x PHY.

<!-- 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;qca&#44;ar803x&#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">Bindings for Qualcomm Atheros AR803x PHYs</p>
</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-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;id004d&#46;d0c0&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-18ed1f4bd380878274d8"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-27fd77e770b540a0931d"><code>7</code></span>
> >
> > <a id="dt-205788d1fea947f3ac3d"></a>
> >
> > **<code>resets</code> — not listed as required here**
> >
> > <a id="dt-481cb1444e4e4567b824"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-0dbda7705334aea56528"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-176966aef1769b62fb17">
> > > <p style="white-space: pre-wrap">GE PHY MISC reset which triggers a reset across MDC, DSP, RX, and TX lines.</p>
> > > </div>
> >
> > <a id="dt-ab22de021a30d9cd7788"></a>
> >
> > **<code>qcom&#44;dac&#45;preset&#45;short&#45;cable</code> — not listed as required here**
> >
> > <div id="dt-147c9b5f1e63bdd21931">
> > <p style="white-space: pre-wrap">Set if this phy is connected to another phy to adjust the values for MDAC and EDAC to adjust amplitude, bias current settings, and error detection and correction algorithm to accommodate for short cable length. If not set, DAC values are not modified and it is assumed the MDI output pins of this PHY are directly connected to an RJ45 connector.</p>
> > </div>
> >
> > **Value type (<code>type</code>):** <span id="dt-005f533c59b165343160"><code>&#34;boolean&#34;</code></span>

<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;id004d&#46;d0c0&#34;</code></span>

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

### <code>qca&#44;clk&#45;out&#45;frequency</code> — not listed as required here

<div id="dt-29f17186269b7d608855">
<p style="white-space: pre-wrap">Clock output frequency in Hertz.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c439bcab55d707ac848d">[<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-6440c2f050bf42f0755b"></a> <span id="dt-f7166ee68a7c3ab849a3"><code>25000000</code></span>, <span id="dt-c60ece8df21f34c4c70d"><code>50000000</code></span>, <span id="dt-5aadce975dc1a8772bf4"><code>62500000</code></span>, <span id="dt-faa6e00e576bd610c892"><code>125000000</code></span>

<a id="dt-93f95699e95f857a9851"></a>

### <code>qca&#44;clk&#45;out&#45;strength</code> — not listed as required here

<div id="dt-6a7eabf187fb9b9c71a9">
<p style="white-space: pre-wrap">Clock output driver strength.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-014c306fe8d6bff59bc1">[<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-a6a5fa330344a64819bd"></a> <span id="dt-8bb0abc198743931d345"><code>0</code></span>, <span id="dt-a6a2f7d79bd341946dbb"><code>1</code></span>, <span id="dt-a135285f0bbfca39b854"><code>2</code></span>

<a id="dt-500c1109b3eabc062dde"></a>

### <code>qca&#44;disable&#45;smarteee</code> — not listed as required here

<div id="dt-8d5818cdb00f517a2445">
<p style="white-space: pre-wrap">Disable Atheros SmartEEE feature.</p>
</div>

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

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

### <code>qca&#44;keep&#45;pll&#45;enabled</code> — not listed as required here

<div id="dt-e955544b14b7d1bde86d">
<p style="white-space: pre-wrap">If set, keep the PLL enabled even if there is no link. Useful if you
want to use the clock output without an ethernet link.</p>
<p style="white-space: pre-wrap">Only supported on the AR8031.</p>
</div>

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

<a id="dt-32a819137a0f30b3d0e9"></a>

### <code>qca&#44;disable&#45;hibernation&#45;mode</code> — not listed as required here

<div id="dt-713255eb35c3c3009625">
<p style="white-space: pre-wrap">Disable Atheros AR803X PHYs hibernation mode. If present, indicates
that the hardware of PHY will not enter power saving mode when the
cable is disconnected. And the RX_CLK always keeps outputting a
valid clock.</p>
</div>

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

<a id="dt-70d62fac7dc16d4c20a2"></a>

### <code>qca&#44;smarteee&#45;tw&#45;us&#45;100m</code> — not listed as required here

<div id="dt-daed97ed1d50db70e2c1">
<p style="white-space: pre-wrap">EEE Tw parameter for 100M links.</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-9c7b42a6003be1eaa889"><code>1</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-58f5b53d26e7c268b4f9"><code>255</code></span>

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

### <code>qca&#44;smarteee&#45;tw&#45;us&#45;1g</code> — not listed as required here

<div id="dt-cab7f03a78b7323ffd86">
<p style="white-space: pre-wrap">EEE Tw parameter for gigabit links.</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-044b2e020bd1930ec9e3"><code>1</code></span>

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

<a id="dt-78ea9f736d3e6cab7ae5"></a>

### <code>vddio&#45;supply</code> — not listed as required here

<div id="dt-ba263ef99f73e8ce56fb">
<p style="white-space: pre-wrap">RGMII I/O voltage regulator (see regulator/regulator.yaml).</p>
<p style="white-space: pre-wrap">The PHY supports RGMII I/O voltages of 1.5V, 1.8V and 2.5V. You can
either connect this to the vddio-regulator (1.5V / 1.8V) or the
vddh-regulator (2.5V).</p>
<p style="white-space: pre-wrap">Only supported on the AR8031.</p>
</div>

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

### <code>vddio&#45;regulator</code> — not listed as required here

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

<div id="dt-c49ebf17958703892ba2">
<p style="white-space: pre-wrap">Initial data for the VDDIO regulator. Set this to 1.5V or 1.8V.</p>
</div>

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

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

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

<code>false</code>

Not allowed by this rule.

<a id="dt-25577b8959a5f6157185"></a>

### <code>vddh&#45;regulator</code> — not listed as required here

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

<div id="dt-6fea36e00d583f365db0">
<p style="white-space: pre-wrap">Dummy subnode to model the external connection of the PHY VDDH regulator to VDDIO.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1b060891aa3106dbe013">[<code>&#47;schemas&#47;regulator&#47;regulator&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<a id="dt-217b1c076b7325d123b0"></a>

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

<code>false</code>

Not allowed by this 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">#include &lt;dt-bindings/net/qca-ar803x.h&gt;

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

    phy-mode = "rgmii-id";

    ethernet-phy@0 {
        reg = &lt;0&gt;;

        qca,clk-out-frequency = &lt;125000000&gt;;
        qca,clk-out-strength = &lt;AR803X_STRENGTH_FULL&gt;;

        vddio-supply = &lt;&amp;vddio&gt;;

        vddio: vddio-regulator {
            regulator-min-microvolt = &lt;1800000&gt;;
            regulator-max-microvolt = &lt;1800000&gt;;
        };
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/net/qca-ar803x.h&gt;

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

    phy-mode = "rgmii-id";

    ethernet-phy@0 {
        reg = &lt;0&gt;;

        qca,clk-out-frequency = &lt;50000000&gt;;
        qca,keep-pll-enabled;

        vddio-supply = &lt;&amp;vddh&gt;;

        vddh: vddh-regulator {
        };
    };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">#include &lt;dt-bindings/reset/qcom,gcc-ipq5018.h&gt;

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

    ge_phy: ethernet-phy@7 {
        compatible = "ethernet-phy-id004d.d0c0";
        reg = &lt;7&gt;;

        resets = &lt;&amp;gcc GCC_GEPHY_MISC_ARES&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>

<p id="dt-comment-1"><strong>Line 29:</strong> <span> This PHY is always at MDIO address 7 in the IPQ5018 SoC</span></p>

</details>
