1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/net/ethernet-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Ethernet PHY Generic Binding
10 - Andrew Lunn <andrew@lunn.ch>
11 - Florian Fainelli <f.fainelli@gmail.com>
12 - Heiner Kallweit <hkallweit1@gmail.com>
14 # The dt-schema tools will generate a select statement first by using
15 # the compatible, and second by using the node name if any. In our
16 # case, the node name is the one we want to match on, while the
17 # compatible is optional.
21 pattern: "^ethernet-phy(@[a-f0-9]+)?$"
28 pattern: "^ethernet-phy(@[a-f0-9]+)?$"
32 - const: ethernet-phy-ieee802.3-c22
33 description: PHYs that implement IEEE802.3 clause 22
34 - const: ethernet-phy-ieee802.3-c45
35 description: PHYs that implement IEEE802.3 clause 45
36 - pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"
38 If the PHY reports an incorrect ID (or none at all) then the
39 compatible list may contain an entry with the correct PHY ID
41 The first group of digits is the 16 bit Phy Identifier 1
42 register, this is the chip vendor OUI bits 3:18. The
43 second group of digits is the Phy Identifier 2 register,
44 this is the chip vendor OUI bits 19:24, followed by 10
45 bits of a vendor specific ID.
47 - pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"
48 - const: ethernet-phy-ieee802.3-c22
50 - pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"
51 - const: ethernet-phy-ieee802.3-c45
57 The ID number for the PHY.
78 Maximum PHY supported speed in Mbits / seconds.
81 $ref: /schemas/types.yaml#/definitions/flag
83 If set, indicates the PHY device does not correctly release
84 the turn around line low at end of the control phase of the
88 $ref: /schemas/types.yaml#/definitions/flag
90 If set, indicates the PHY will swap the TX/RX lanes to
91 compensate for the board being designed with the lanes
95 $ref: /schemas/types.yaml#/definitions/flag
97 Mark the corresponding energy efficient ethernet mode as
98 broken and request the ethernet to stop advertising it.
101 $ref: /schemas/types.yaml#/definitions/flag
103 Mark the corresponding energy efficient ethernet mode as
104 broken and request the ethernet to stop advertising it.
107 $ref: /schemas/types.yaml#/definitions/flag
109 Mark the corresponding energy efficient ethernet mode as
110 broken and request the ethernet to stop advertising it.
113 $ref: /schemas/types.yaml#/definitions/flag
115 Mark the corresponding energy efficient ethernet mode as
116 broken and request the ethernet to stop advertising it.
119 $ref: /schemas/types.yaml#/definitions/flag
121 Mark the corresponding energy efficient ethernet mode as
122 broken and request the ethernet to stop advertising it.
125 $ref: /schemas/types.yaml#/definitions/flag
127 Mark the corresponding energy efficient ethernet mode as
128 broken and request the ethernet to stop advertising it.
131 $ref: /schemas/types.yaml#/definitions/flag
133 If set, indicates that the PHY is integrated into the same
134 physical package as the Ethernet MAC. If needed, muxers
135 should be configured to ensure the integrated PHY is
136 used. The absence of this property indicates the muxers
137 should be configured so that the external PHY is used.
148 The GPIO phandle and specifier for the PHY reset signal.
152 Delay after the reset was asserted in microseconds. If this
153 property is missing the delay will be skipped.
157 Delay after the reset was deasserted in microseconds. If
158 this property is missing the delay will be skipped.
161 $ref: /schemas/types.yaml#/definitions/phandle
163 Specifies a reference to a node representing a SFP cage.
165 rx-internal-delay-ps:
167 RGMII Receive PHY Clock Delay defined in pico seconds. This is used for
168 PHY's that have configurable RX internal delays. If this property is
169 present then the PHY applies the RX delay.
171 tx-internal-delay-ps:
173 RGMII Transmit PHY Clock Delay defined in pico seconds. This is used for
174 PHY's that have configurable TX internal delays. If this property is
175 present then the PHY applies the TX delay.
180 additionalProperties: true
185 #address-cells = <1>;
189 compatible = "ethernet-phy-id0141.0e90", "ethernet-phy-ieee802.3-c45";
190 interrupt-parent = <&PIC>;
196 reset-gpios = <&gpio1 4 1>;
197 reset-assert-us = <1000>;
198 reset-deassert-us = <2000>;