# TI DP83822 ethernet PHY

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

> Device-tree binding reference for TI DP83822 ethernet PHY.

<!-- SPDX-License-Identifier: (GPL-2.0+ 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;ti&#44;dp83822&#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 Davis &#60;afd&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The DP83822 is a low-power, single-port, 10/100 Mbps Ethernet PHY. It
provides all of the physical layer functions needed to transmit and receive
data over standard, twisted-pair cables or to connect to an external,
fiber-optic transceiver. Additionally, the DP83822 provides flexibility to
connect to a MAC through a standard MII, RMII, or RGMII interface</p>
<pre><code>Specifications about the Ethernet PHY can be found at:
  http://www.ti.com/lit/ds/symlink/dp83822i.pdf</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-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-46232ab79a730dc11398"></a>

### <code>ti&#44;link&#45;loss&#45;low</code> — not listed as required here

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

<div id="dt-4dd39836907a640e9078">
<p style="white-space: pre-wrap">DP83822 PHY in Fiber mode only.
Sets the DP83822 to detect a link drop condition when the signal goes
high.  If not set then link drop will occur when the signal goes low.
This property is only applicable if the fiber mode support is strapped
to on.</p>
</div>

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

### <code>ti&#44;fiber&#45;mode</code> — not listed as required here

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

<div id="dt-b14aa3bd9099407b1255">
<p style="white-space: pre-wrap">DP83822 PHY only.
If present the DP83822 PHY is configured to operate in fiber mode
Fiber mode support can also be strapped. If the strap pin is not set
correctly or not set at all then this boolean can be used to enable it.
If the fiber mode is not strapped then signal detection for the PHY
is disabled.
In fiber mode, auto-negotiation is disabled and the PHY can only work in
100base-fx (full and half duplex) modes.
This property is deprecated, for details please refer to
Documentation/devicetree/bindings/net/ethernet-connector.yaml</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-a2a1aa8cf93bc2650dce"><code>true</code></span>

<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">DP83822 PHY only.
Setting this property to a non-zero number sets the RX internal delay
for the PHY.  The internal delay for the PHY is fixed to 3.5ns relative
to receive data.</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">DP83822 PHY only.
Setting this property to a non-zero number sets the TX internal delay
for the PHY.  The internal delay for the PHY is fixed to 3.5ns relative
to transmit data.</p>
</div>

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

### <code>ti&#44;cfg&#45;dac&#45;minus&#45;one&#45;bp</code> — not listed as required here

<div id="dt-8875045c8b71724affa5">
<p style="white-space: pre-wrap">DP83826 PHY only.
Sets the voltage ratio (with respect to the nominal value)
of the logical level -1 for the MLT-3 encoded TX data.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-1bca98caf56ec1f76687"></a> <span id="dt-6f1cdc33de4cae353bdd"><code>5000</code></span>, <span id="dt-5617d7e4f52e33535d8e"><code>5625</code></span>, <span id="dt-7055d789e2089d7f1a18"><code>6250</code></span>, <span id="dt-cdb852a75735d1bbd9b7"><code>6875</code></span>, <span id="dt-ca30b11d27775e8246f0"><code>7500</code></span>, <span id="dt-e3e67e21375b96ce4300"><code>8125</code></span>, <span id="dt-4223a1d5a594c5f62aa7"><code>8750</code></span>, <span id="dt-c1a7795122e3a6a6432f"><code>9375</code></span>, <span id="dt-5ff914bb586df4fb5a6c"><code>10000</code></span>, <span id="dt-e87eeb112829de9428cc"><code>10625</code></span>, <span id="dt-0fe713a62f0d89584b8d"><code>11250</code></span>, <span id="dt-032378861e307c20acf6"><code>11875</code></span>, <span id="dt-3f80b0d155f312b5fa49"><code>12500</code></span>, <span id="dt-cf3475f2c7c6ec984daa"><code>13125</code></span>, <span id="dt-667fe483e7200d148dfa"><code>13750</code></span>, <span id="dt-c012500eb37c9828d5e9"><code>14375</code></span>, <span id="dt-09edafa4804017f56592"><code>15000</code></span>

**Default value (<code>default</code>):** <span id="dt-17bd0be68b1b8eccb1e4"><code>10000</code></span>

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

### <code>ti&#44;cfg&#45;dac&#45;plus&#45;one&#45;bp</code> — not listed as required here

<div id="dt-a146743610e008178b1f">
<p style="white-space: pre-wrap">DP83826 PHY only.
Sets the voltage ratio (with respect to the nominal value)
of the logical level +1 for the MLT-3 encoded TX data.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-48c928aa4aa90c6aa2b5"></a> <span id="dt-77e898a77bbccfd4859e"><code>5000</code></span>, <span id="dt-1f5918f0a2eae8b95edb"><code>5625</code></span>, <span id="dt-f62aa30cf84b6b0737f3"><code>6250</code></span>, <span id="dt-6d894c1da7e9af176958"><code>6875</code></span>, <span id="dt-b0f519e2eee089b0192e"><code>7500</code></span>, <span id="dt-56fcb708a300c9ab110b"><code>8125</code></span>, <span id="dt-e3d82f9fba032368d546"><code>8750</code></span>, <span id="dt-1a8510e9d581467f49da"><code>9375</code></span>, <span id="dt-d51899571f8c8f04c8d5"><code>10000</code></span>, <span id="dt-e91389ef954a09b782c6"><code>10625</code></span>, <span id="dt-474cf29fa3cce7399e6f"><code>11250</code></span>, <span id="dt-79db565b08e5b0743faa"><code>11875</code></span>, <span id="dt-c4b62c06cd82fd37a1bb"><code>12500</code></span>, <span id="dt-d96382a18bbb4c36954e"><code>13125</code></span>, <span id="dt-800e273ccbcf7d7367f9"><code>13750</code></span>, <span id="dt-dce4de9326b58a8d3ec7"><code>14375</code></span>, <span id="dt-de5dc796ea0d0463e02a"><code>15000</code></span>

**Default value (<code>default</code>):** <span id="dt-462851c0c098057b78c5"><code>10000</code></span>

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

### <code>ti&#44;rmii&#45;mode</code> — not listed as required here

<div id="dt-25c1579550289d423b5b">
<pre><code>If present, select the RMII operation mode. Two modes are
available:
  - RMII master, where the PHY outputs a 50MHz reference clock which can
  be connected to the MAC.
  - RMII slave, where the PHY expects a 50MHz reference clock input
  shared with the MAC.
The RMII operation mode can also be configured by its straps.
If the strap pin is not set correctly or not set at all, then this can be
used to configure it.</code></pre>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bc6c553a1984e426adde">[<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-2fe42d25258129e2398e"></a> <span id="dt-f6d467d406bef9a0e573"><code>&#34;master&#34;</code></span>, <span id="dt-da2c8bd17430e96fd78b"><code>&#34;slave&#34;</code></span>

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

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

<div id="dt-09815b9ca601ed422707">
<p style="white-space: pre-wrap">DP83822 PHY only.
The GPIO2 pin on the DP83822 can be configured as clock output. When
omitted, the PHY's default will be left as is.</p>
<pre><code>- 'mac-if': In MII mode the clock frequency is 25-MHz, in RMII Mode the
  clock frequency is 50-MHz and in RGMII Mode the clock frequency is
  25-MHz.
- 'xi': XI clock(pass-through clock from XI pin).
- 'int-ref': Internal reference clock 25-MHz.
- 'rmii-master-mode-ref': RMII master mode reference clock 50-MHz. RMII
  master mode reference clock is identical to MAC IF clock in RMII master
  mode.
- 'free-running': Free running clock 125-MHz.
- 'recovered': Recovered clock is a 125-MHz recovered clock from a
  connected link partner.</code></pre>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e0329d86820789c9d839">[<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-00a6ae89bbc0077f361a"></a> <span id="dt-78a44a5bebbbbdfe3cd7"><code>&#34;mac&#45;if&#34;</code></span>, <span id="dt-f50fe36fc1bd2b7ae064"><code>&#34;xi&#34;</code></span>, <span id="dt-f58894691eaf560bd6ce"><code>&#34;int&#45;ref&#34;</code></span>, <span id="dt-de1a07ed256ea8a95843"><code>&#34;rmii&#45;master&#45;mode&#45;ref&#34;</code></span>, <span id="dt-973bd686a86d6cc46726"><code>&#34;free&#45;running&#34;</code></span>, <span id="dt-89fecbc6f9a883d50621"><code>&#34;recovered&#34;</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-6778c63afb42d41d306b"></a> <span id="dt-b822a41a2721bd6c4d51"><code>43</code></span>, <span id="dt-30b94623e19590219e50"><code>44</code></span>, <span id="dt-f8c80e02934b22e75721"><code>46</code></span>, <span id="dt-69ba037944be9fcad4cb"><code>48</code></span>, <span id="dt-ac16f949344ccabc37a3"><code>50</code></span>, <span id="dt-4d41c7fb05491cb6c330"><code>53</code></span>, <span id="dt-5d65f7b79aa9a7b494d6"><code>55</code></span>, <span id="dt-df89cb22aaa7c371f279"><code>58</code></span>, <span id="dt-2895194d18d796cb745e"><code>61</code></span>, <span id="dt-763ccc80b87cd2878ae7"><code>65</code></span>, <span id="dt-e0b1758c4c06e820261e"><code>69</code></span>, <span id="dt-2e6724c751eb1ca70397"><code>73</code></span>, <span id="dt-34a02f9cec3abbe9bace"><code>78</code></span>, <span id="dt-cab8c7fba02323c82766"><code>84</code></span>, <span id="dt-d11783607de41563f47e"><code>91</code></span>, <span id="dt-3741ca0f358ffa0eb6d7"><code>99</code></span>

**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-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">mdio0 {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  ethphy0: ethernet-phy@0 {
    reg = &lt;0&gt;;
    rx-internal-delay-ps = &lt;1&gt;;
    tx-internal-delay-ps = &lt;1&gt;;
    ti,gpio2-clk-out = "xi";
    mac-termination-ohms = &lt;43&gt;;
    mdi {
      connector-0 {
        media = "BaseF";
      };
    };
  };
};
</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+ OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) 2020 Texas Instruments Incorporated</span></p>

</details>
