18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
28c2ecf20Sopenharmony_ci# Copyright (C) 2020 Texas Instruments Incorporated
38c2ecf20Sopenharmony_ci%YAML 1.2
48c2ecf20Sopenharmony_ci---
58c2ecf20Sopenharmony_ci$id: "http://devicetree.org/schemas/net/ti,dp83822.yaml#"
68c2ecf20Sopenharmony_ci$schema: "http://devicetree.org/meta-schemas/core.yaml#"
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_cititle: TI DP83822 ethernet PHY
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_cimaintainers:
118c2ecf20Sopenharmony_ci  - Dan Murphy <dmurphy@ti.com>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cidescription: |
148c2ecf20Sopenharmony_ci  The DP83822 is a low-power, single-port, 10/100 Mbps Ethernet PHY. It
158c2ecf20Sopenharmony_ci  provides all of the physical layer functions needed to transmit and receive
168c2ecf20Sopenharmony_ci  data over standard, twisted-pair cables or to connect to an external,
178c2ecf20Sopenharmony_ci  fiber-optic transceiver. Additionally, the DP83822 provides flexibility to
188c2ecf20Sopenharmony_ci  connect to a MAC through a standard MII, RMII, or RGMII interface
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci  Specifications about the Ethernet PHY can be found at:
218c2ecf20Sopenharmony_ci    http://www.ti.com/lit/ds/symlink/dp83822i.pdf
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciallOf:
248c2ecf20Sopenharmony_ci  - $ref: "ethernet-phy.yaml#"
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciproperties:
278c2ecf20Sopenharmony_ci  reg:
288c2ecf20Sopenharmony_ci    maxItems: 1
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci  ti,link-loss-low:
318c2ecf20Sopenharmony_ci    type: boolean
328c2ecf20Sopenharmony_ci    description: |
338c2ecf20Sopenharmony_ci       DP83822 PHY in Fiber mode only.
348c2ecf20Sopenharmony_ci       Sets the DP83822 to detect a link drop condition when the signal goes
358c2ecf20Sopenharmony_ci       high.  If not set then link drop will occur when the signal goes low.
368c2ecf20Sopenharmony_ci       This property is only applicable if the fiber mode support is strapped
378c2ecf20Sopenharmony_ci       to on.
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci  ti,fiber-mode:
408c2ecf20Sopenharmony_ci    type: boolean
418c2ecf20Sopenharmony_ci    description: |
428c2ecf20Sopenharmony_ci       DP83822 PHY only.
438c2ecf20Sopenharmony_ci       If present the DP83822 PHY is configured to operate in fiber mode
448c2ecf20Sopenharmony_ci       Fiber mode support can also be strapped. If the strap pin is not set
458c2ecf20Sopenharmony_ci       correctly or not set at all then this boolean can be used to enable it.
468c2ecf20Sopenharmony_ci       If the fiber mode is not strapped then signal detection for the PHY
478c2ecf20Sopenharmony_ci       is disabled.
488c2ecf20Sopenharmony_ci       In fiber mode, auto-negotiation is disabled and the PHY can only work in
498c2ecf20Sopenharmony_ci       100base-fx (full and half duplex) modes.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci  rx-internal-delay-ps:
528c2ecf20Sopenharmony_ci    description: |
538c2ecf20Sopenharmony_ci       DP83822 PHY only.
548c2ecf20Sopenharmony_ci       Setting this property to a non-zero number sets the RX internal delay
558c2ecf20Sopenharmony_ci       for the PHY.  The internal delay for the PHY is fixed to 3.5ns relative
568c2ecf20Sopenharmony_ci       to receive data.
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci  tx-internal-delay-ps:
598c2ecf20Sopenharmony_ci    description: |
608c2ecf20Sopenharmony_ci       DP83822 PHY only.
618c2ecf20Sopenharmony_ci       Setting this property to a non-zero number sets the TX internal delay
628c2ecf20Sopenharmony_ci       for the PHY.  The internal delay for the PHY is fixed to 3.5ns relative
638c2ecf20Sopenharmony_ci       to transmit data.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_cirequired:
668c2ecf20Sopenharmony_ci  - reg
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ciunevaluatedProperties: false
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ciexamples:
718c2ecf20Sopenharmony_ci  - |
728c2ecf20Sopenharmony_ci    mdio0 {
738c2ecf20Sopenharmony_ci      #address-cells = <1>;
748c2ecf20Sopenharmony_ci      #size-cells = <0>;
758c2ecf20Sopenharmony_ci      ethphy0: ethernet-phy@0 {
768c2ecf20Sopenharmony_ci        reg = <0>;
778c2ecf20Sopenharmony_ci        rx-internal-delay-ps = <1>;
788c2ecf20Sopenharmony_ci        tx-internal-delay-ps = <1>;
798c2ecf20Sopenharmony_ci      };
808c2ecf20Sopenharmony_ci    };
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci...
83