1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/renesas,etheravb.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas Ethernet AVB
10 - Sergei Shtylyov <sergei.shtylyov@gmail.com>
17 - renesas,etheravb-r8a7742 # RZ/G1H
18 - renesas,etheravb-r8a7743 # RZ/G1M
19 - renesas,etheravb-r8a7744 # RZ/G1N
20 - renesas,etheravb-r8a7745 # RZ/G1E
21 - renesas,etheravb-r8a77470 # RZ/G1C
22 - renesas,etheravb-r8a7790 # R-Car H2
23 - renesas,etheravb-r8a7791 # R-Car M2-W
24 - renesas,etheravb-r8a7792 # R-Car V2H
25 - renesas,etheravb-r8a7793 # R-Car M2-N
26 - renesas,etheravb-r8a7794 # R-Car E2
27 - const: renesas,etheravb-rcar-gen2 # R-Car Gen2 and RZ/G1
31 - renesas,etheravb-r8a774a1 # RZ/G2M
32 - renesas,etheravb-r8a774b1 # RZ/G2N
33 - renesas,etheravb-r8a774c0 # RZ/G2E
34 - renesas,etheravb-r8a774e1 # RZ/G2H
35 - renesas,etheravb-r8a7795 # R-Car H3
36 - renesas,etheravb-r8a7796 # R-Car M3-W
37 - renesas,etheravb-r8a77961 # R-Car M3-W+
38 - renesas,etheravb-r8a77965 # R-Car M3-N
39 - renesas,etheravb-r8a77970 # R-Car V3M
40 - renesas,etheravb-r8a77980 # R-Car V3H
41 - renesas,etheravb-r8a77990 # R-Car E3
42 - renesas,etheravb-r8a77995 # R-Car D3
43 - const: renesas,etheravb-rcar-gen3 # R-Car Gen3 and RZ/G2
47 - renesas,etheravb-r8a779a0 # R-Car V3U
48 - renesas,etheravb-r8a779g0 # R-Car V4H
49 - const: renesas,etheravb-rcar-gen4 # R-Car Gen4
53 - renesas,etheravb-r9a09g011 # RZ/V2M
54 - const: renesas,etheravb-rzv2m # RZ/V2M compatible
58 - renesas,r9a07g043-gbeth # RZ/G2UL
59 - renesas,r9a07g044-gbeth # RZ/G2{L,LC}
60 - renesas,r9a07g054-gbeth # RZ/V2L
61 - const: renesas,rzg2l-gbeth # RZ/{G2L,G2UL,V2L} family
87 description: Number of address cells for the MDIO bus.
91 description: Number of size cells on the MDIO bus.
94 renesas,no-ether-link:
97 Specify when a board does not provide a proper AVB_LINK signal.
99 renesas,ether-link-active-low:
102 Specify when the AVB_LINK signal is active-low instead of normal
105 rx-internal-delay-ps:
108 tx-internal-delay-ps:
112 "^ethernet-phy@[0-9a-f]$":
114 $ref: ethernet-phy.yaml#
129 - $ref: ethernet-controller.yaml#
136 - renesas,etheravb-rcar-gen2
137 - renesas,etheravb-r8a7795
138 - renesas,etheravb-r8a7796
139 - renesas,etheravb-r8a77961
140 - renesas,etheravb-r8a77965
145 - description: MAC register block
146 - description: Stream buffer
151 - description: MAC register block
158 - renesas,etheravb-rcar-gen2
159 - renesas,rzg2l-gbeth
171 rx-internal-delay-ps: false
177 const: renesas,etheravb-rzv2m
185 pattern: '^(ch(1?)[0-9])|ch20|ch21|dia|dib|err_a|err_b|mgmt_a|mgmt_b|line3$'
186 rx-internal-delay-ps: false
196 pattern: '^ch[0-9]+$'
199 - rx-internal-delay-ps
206 - renesas,etheravb-r8a774a1
207 - renesas,etheravb-r8a774b1
208 - renesas,etheravb-r8a774e1
209 - renesas,etheravb-r8a7795
210 - renesas,etheravb-r8a7796
211 - renesas,etheravb-r8a77961
212 - renesas,etheravb-r8a77965
213 - renesas,etheravb-r8a77970
214 - renesas,etheravb-r8a77980
215 - renesas,etheravb-rcar-gen4
218 - tx-internal-delay-ps
221 tx-internal-delay-ps: false
227 const: renesas,etheravb-r8a77995
230 rx-internal-delay-ps:
237 const: renesas,etheravb-r8a77980
240 tx-internal-delay-ps:
247 const: renesas,rzg2l-gbeth
252 - description: Main clock
253 - description: Register access clock
254 - description: Reference clock for RGMII
265 const: renesas,etheravb-rzv2m
270 - description: Main clock
271 - description: Coherent Hub Interface clock
272 - description: gPTP reference clock
283 - description: AVB functional clock
284 - description: Optional TXC reference clock
291 additionalProperties: false
295 #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
296 #include <dt-bindings/interrupt-controller/arm-gic.h>
297 #include <dt-bindings/power/r8a7795-sysc.h>
298 #include <dt-bindings/gpio/gpio.h>
303 avb: ethernet@e6800000 {
304 compatible = "renesas,etheravb-r8a7795",
305 "renesas,etheravb-rcar-gen3";
306 reg = <0xe6800000 0x800>, <0xe6a00000 0x10000>;
307 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
308 <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
309 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
310 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
311 <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
312 <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
313 <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
314 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
315 <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
316 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
317 <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
318 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
319 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
320 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
321 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
322 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
323 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
324 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
325 <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
326 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
327 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
328 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
329 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
331 <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
332 interrupt-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6",
333 "ch7", "ch8", "ch9", "ch10", "ch11", "ch12",
334 "ch13", "ch14", "ch15", "ch16", "ch17", "ch18",
335 "ch19", "ch20", "ch21", "ch22", "ch23", "ch24";
336 clocks = <&cpg CPG_MOD 812>;
338 iommus = <&ipmmu_ds0 16>;
339 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
342 phy-handle = <&phy0>;
343 rx-internal-delay-ps = <0>;
344 tx-internal-delay-ps = <2000>;
345 #address-cells = <1>;
348 phy0: ethernet-phy@0 {
349 compatible = "ethernet-phy-id0022.1622",
350 "ethernet-phy-ieee802.3-c22";
351 rxc-skew-ps = <1500>;
353 interrupt-parent = <&gpio2>;
354 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
355 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;