1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/net/allwinner,sun8i-a83t-emac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner A83t EMAC Device Tree Bindings
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <maxime.ripard@bootlin.com>
16 - const: allwinner,sun8i-a83t-emac
17 - const: allwinner,sun8i-h3-emac
18 - const: allwinner,sun8i-r40-emac
19 - const: allwinner,sun8i-v3s-emac
20 - const: allwinner,sun50i-a64-emac
22 - const: allwinner,sun50i-h6-emac
23 - const: allwinner,sun50i-a64-emac
41 $ref: /schemas/types.yaml#definitions/phandle
43 Phandle to the device containing the EMAC or GMAC clock
60 - $ref: "snps,dwmac.yaml#"
66 - allwinner,sun8i-a83t-emac
67 - allwinner,sun8i-h3-emac
68 - allwinner,sun8i-v3s-emac
69 - allwinner,sun50i-a64-emac
73 allwinner,tx-delay-ps:
79 External RGMII PHY TX clock delay chain value in ps.
81 allwinner,rx-delay-ps:
87 External RGMII PHY TX clock delay chain value in ps.
94 - allwinner,sun8i-r40-emac
98 allwinner,rx-delay-ps:
104 External RGMII PHY TX clock delay chain value in ps.
111 - allwinner,sun8i-h3-emac
112 - allwinner,sun8i-v3s-emac
116 allwinner,leds-active-low:
117 $ref: /schemas/types.yaml#definitions/flag
119 EPHY LEDs are active low.
126 const: allwinner,sun8i-h3-mdio-mux
129 $ref: /schemas/types.yaml#definitions/phandle
131 Phandle to EMAC MDIO.
135 description: Internal MDIO Bus
145 const: allwinner,sun8i-h3-mdio-internal
151 "^ethernet-phy@[0-9a-f]$":
170 description: External MDIO Bus (H3 only)
190 compatible = "allwinner,sun8i-h3-emac";
192 reg = <0x01c0b000 0x104>;
193 interrupts = <0 82 1>;
194 interrupt-names = "macirq";
196 reset-names = "stmmaceth";
198 clock-names = "stmmaceth";
200 phy-handle = <&int_mii_phy>;
202 allwinner,leds-active-low;
205 #address-cells = <1>;
207 compatible = "snps,dwmac-mdio";
211 compatible = "allwinner,sun8i-h3-mdio-mux";
212 #address-cells = <1>;
215 mdio-parent-bus = <&mdio1>;
217 int_mii_phy: mdio@1 {
218 compatible = "allwinner,sun8i-h3-mdio-internal";
220 #address-cells = <1>;
233 #address-cells = <1>;
241 compatible = "allwinner,sun8i-h3-emac";
243 reg = <0x01c0b000 0x104>;
244 interrupts = <0 82 1>;
245 interrupt-names = "macirq";
247 reset-names = "stmmaceth";
249 clock-names = "stmmaceth";
251 phy-handle = <&ext_rgmii_phy>;
253 allwinner,leds-active-low;
256 #address-cells = <1>;
258 compatible = "snps,dwmac-mdio";
262 compatible = "allwinner,sun8i-h3-mdio-mux";
263 #address-cells = <1>;
265 mdio-parent-bus = <&mdio2>;
268 compatible = "allwinner,sun8i-h3-mdio-internal";
270 #address-cells = <1>;
282 #address-cells = <1>;
285 ext_rgmii_phy: ethernet-phy@1 {
294 compatible = "allwinner,sun8i-a83t-emac";
296 reg = <0x01c0b000 0x104>;
297 interrupts = <0 82 1>;
298 interrupt-names = "macirq";
300 reset-names = "stmmaceth";
302 clock-names = "stmmaceth";
303 phy-handle = <&ext_rgmii_phy1>;
307 compatible = "snps,dwmac-mdio";
308 #address-cells = <1>;
311 ext_rgmii_phy1: ethernet-phy@1 {
317 # FIXME: We should set it, but it would report all the generic
318 # properties as additional properties.
319 # additionalProperties: false