16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 26be33864SEmmanuel Vadot# Copyright (C) 2020 Texas Instruments Incorporated 36be33864SEmmanuel Vadot%YAML 1.2 46be33864SEmmanuel Vadot--- 5fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/net/ti,dp83822.yaml# 6fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 76be33864SEmmanuel Vadot 86be33864SEmmanuel Vadottitle: TI DP83822 ethernet PHY 96be33864SEmmanuel Vadot 106be33864SEmmanuel Vadotmaintainers: 11b97ee269SEmmanuel Vadot - Andrew Davis <afd@ti.com> 126be33864SEmmanuel Vadot 136be33864SEmmanuel Vadotdescription: | 146be33864SEmmanuel Vadot The DP83822 is a low-power, single-port, 10/100 Mbps Ethernet PHY. It 156be33864SEmmanuel Vadot provides all of the physical layer functions needed to transmit and receive 166be33864SEmmanuel Vadot data over standard, twisted-pair cables or to connect to an external, 176be33864SEmmanuel Vadot fiber-optic transceiver. Additionally, the DP83822 provides flexibility to 186be33864SEmmanuel Vadot connect to a MAC through a standard MII, RMII, or RGMII interface 196be33864SEmmanuel Vadot 206be33864SEmmanuel Vadot Specifications about the Ethernet PHY can be found at: 216be33864SEmmanuel Vadot http://www.ti.com/lit/ds/symlink/dp83822i.pdf 226be33864SEmmanuel Vadot 236be33864SEmmanuel VadotallOf: 24fac71e4eSEmmanuel Vadot - $ref: ethernet-phy.yaml# 256be33864SEmmanuel Vadot 266be33864SEmmanuel Vadotproperties: 276be33864SEmmanuel Vadot reg: 286be33864SEmmanuel Vadot maxItems: 1 296be33864SEmmanuel Vadot 306be33864SEmmanuel Vadot ti,link-loss-low: 316be33864SEmmanuel Vadot type: boolean 326be33864SEmmanuel Vadot description: | 336be33864SEmmanuel Vadot DP83822 PHY in Fiber mode only. 346be33864SEmmanuel Vadot Sets the DP83822 to detect a link drop condition when the signal goes 356be33864SEmmanuel Vadot high. If not set then link drop will occur when the signal goes low. 366be33864SEmmanuel Vadot This property is only applicable if the fiber mode support is strapped 376be33864SEmmanuel Vadot to on. 386be33864SEmmanuel Vadot 396be33864SEmmanuel Vadot ti,fiber-mode: 406be33864SEmmanuel Vadot type: boolean 416be33864SEmmanuel Vadot description: | 426be33864SEmmanuel Vadot DP83822 PHY only. 436be33864SEmmanuel Vadot If present the DP83822 PHY is configured to operate in fiber mode 446be33864SEmmanuel Vadot Fiber mode support can also be strapped. If the strap pin is not set 456be33864SEmmanuel Vadot correctly or not set at all then this boolean can be used to enable it. 466be33864SEmmanuel Vadot If the fiber mode is not strapped then signal detection for the PHY 476be33864SEmmanuel Vadot is disabled. 486be33864SEmmanuel Vadot In fiber mode, auto-negotiation is disabled and the PHY can only work in 496be33864SEmmanuel Vadot 100base-fx (full and half duplex) modes. 506be33864SEmmanuel Vadot 516be33864SEmmanuel Vadot rx-internal-delay-ps: 526be33864SEmmanuel Vadot description: | 536be33864SEmmanuel Vadot DP83822 PHY only. 546be33864SEmmanuel Vadot Setting this property to a non-zero number sets the RX internal delay 556be33864SEmmanuel Vadot for the PHY. The internal delay for the PHY is fixed to 3.5ns relative 566be33864SEmmanuel Vadot to receive data. 576be33864SEmmanuel Vadot 586be33864SEmmanuel Vadot tx-internal-delay-ps: 596be33864SEmmanuel Vadot description: | 606be33864SEmmanuel Vadot DP83822 PHY only. 616be33864SEmmanuel Vadot Setting this property to a non-zero number sets the TX internal delay 626be33864SEmmanuel Vadot for the PHY. The internal delay for the PHY is fixed to 3.5ns relative 636be33864SEmmanuel Vadot to transmit data. 646be33864SEmmanuel Vadot 65*01950c46SEmmanuel Vadot ti,cfg-dac-minus-one-bp: 66*01950c46SEmmanuel Vadot description: | 67*01950c46SEmmanuel Vadot DP83826 PHY only. 68*01950c46SEmmanuel Vadot Sets the voltage ratio (with respect to the nominal value) 69*01950c46SEmmanuel Vadot of the logical level -1 for the MLT-3 encoded TX data. 70*01950c46SEmmanuel Vadot enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, 71*01950c46SEmmanuel Vadot 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000] 72*01950c46SEmmanuel Vadot default: 10000 73*01950c46SEmmanuel Vadot 74*01950c46SEmmanuel Vadot ti,cfg-dac-plus-one-bp: 75*01950c46SEmmanuel Vadot description: | 76*01950c46SEmmanuel Vadot DP83826 PHY only. 77*01950c46SEmmanuel Vadot Sets the voltage ratio (with respect to the nominal value) 78*01950c46SEmmanuel Vadot of the logical level +1 for the MLT-3 encoded TX data. 79*01950c46SEmmanuel Vadot enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, 80*01950c46SEmmanuel Vadot 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000] 81*01950c46SEmmanuel Vadot default: 10000 82*01950c46SEmmanuel Vadot 83*01950c46SEmmanuel Vadot ti,rmii-mode: 84*01950c46SEmmanuel Vadot description: | 85*01950c46SEmmanuel Vadot If present, select the RMII operation mode. Two modes are 86*01950c46SEmmanuel Vadot available: 87*01950c46SEmmanuel Vadot - RMII master, where the PHY outputs a 50MHz reference clock which can 88*01950c46SEmmanuel Vadot be connected to the MAC. 89*01950c46SEmmanuel Vadot - RMII slave, where the PHY expects a 50MHz reference clock input 90*01950c46SEmmanuel Vadot shared with the MAC. 91*01950c46SEmmanuel Vadot The RMII operation mode can also be configured by its straps. 92*01950c46SEmmanuel Vadot If the strap pin is not set correctly or not set at all, then this can be 93*01950c46SEmmanuel Vadot used to configure it. 94*01950c46SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 95*01950c46SEmmanuel Vadot enum: 96*01950c46SEmmanuel Vadot - master 97*01950c46SEmmanuel Vadot - slave 98*01950c46SEmmanuel Vadot 996be33864SEmmanuel Vadotrequired: 1006be33864SEmmanuel Vadot - reg 1016be33864SEmmanuel Vadot 1026be33864SEmmanuel VadotunevaluatedProperties: false 1036be33864SEmmanuel Vadot 1046be33864SEmmanuel Vadotexamples: 1056be33864SEmmanuel Vadot - | 1066be33864SEmmanuel Vadot mdio0 { 1076be33864SEmmanuel Vadot #address-cells = <1>; 1086be33864SEmmanuel Vadot #size-cells = <0>; 1096be33864SEmmanuel Vadot ethphy0: ethernet-phy@0 { 1106be33864SEmmanuel Vadot reg = <0>; 1116be33864SEmmanuel Vadot rx-internal-delay-ps = <1>; 1126be33864SEmmanuel Vadot tx-internal-delay-ps = <1>; 1136be33864SEmmanuel Vadot }; 1146be33864SEmmanuel Vadot }; 1156be33864SEmmanuel Vadot 1166be33864SEmmanuel Vadot... 117