xref: /freebsd/sys/contrib/device-tree/Bindings/net/renesas,ravb.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Renesas Electronics Ethernet AVB
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis file provides information on what the device node for the Ethernet AVB
4*c66ec88fSEmmanuel Vadotinterface contains.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible: Must contain one or more of the following:
8*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7742" for the R8A7742 SoC.
9*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7743" for the R8A7743 SoC.
10*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7744" for the R8A7744 SoC.
11*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7745" for the R8A7745 SoC.
12*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a77470" for the R8A77470 SoC.
13*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7790" for the R8A7790 SoC.
14*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7791" for the R8A7791 SoC.
15*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7792" for the R8A7792 SoC.
16*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7793" for the R8A7793 SoC.
17*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7794" for the R8A7794 SoC.
18*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-rcar-gen2" as a fallback for the above
19*c66ec88fSEmmanuel Vadot		R-Car Gen2 and RZ/G1 devices.
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a774a1" for the R8A774A1 SoC.
22*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a774b1" for the R8A774B1 SoC.
23*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a774c0" for the R8A774C0 SoC.
24*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a774e1" for the R8A774E1 SoC.
25*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7795" for the R8A7795 SoC.
26*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a7796" for the R8A77960 SoC.
27*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a77961" for the R8A77961 SoC.
28*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a77965" for the R8A77965 SoC.
29*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a77970" for the R8A77970 SoC.
30*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a77980" for the R8A77980 SoC.
31*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a77990" for the R8A77990 SoC.
32*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-r8a77995" for the R8A77995 SoC.
33*c66ec88fSEmmanuel Vadot      - "renesas,etheravb-rcar-gen3" as a fallback for the above
34*c66ec88fSEmmanuel Vadot		R-Car Gen3 and RZ/G2 devices.
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	When compatible with the generic version, nodes must list the
37*c66ec88fSEmmanuel Vadot	SoC-specific version corresponding to the platform first followed by
38*c66ec88fSEmmanuel Vadot	the generic version.
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadot- reg: Offset and length of (1) the register block and (2) the stream buffer.
41*c66ec88fSEmmanuel Vadot       The region for the register block is mandatory.
42*c66ec88fSEmmanuel Vadot       The region for the stream buffer is optional, as it is only present on
43*c66ec88fSEmmanuel Vadot       R-Car Gen2 and RZ/G1 SoCs, and on R-Car H3 (R8A7795), M3-W (R8A77960),
44*c66ec88fSEmmanuel Vadot       M3-W+ (R8A77961), and M3-N (R8A77965).
45*c66ec88fSEmmanuel Vadot- interrupts: A list of interrupt-specifiers, one for each entry in
46*c66ec88fSEmmanuel Vadot	      interrupt-names.
47*c66ec88fSEmmanuel Vadot	      If interrupt-names is not present, an interrupt specifier
48*c66ec88fSEmmanuel Vadot	      for a single muxed interrupt.
49*c66ec88fSEmmanuel Vadot- phy-mode: see ethernet.txt file in the same directory.
50*c66ec88fSEmmanuel Vadot- phy-handle: see ethernet.txt file in the same directory.
51*c66ec88fSEmmanuel Vadot- #address-cells: number of address cells for the MDIO bus, must be equal to 1.
52*c66ec88fSEmmanuel Vadot- #size-cells: number of size cells on the MDIO bus, must be equal to 0.
53*c66ec88fSEmmanuel Vadot- clocks: clock phandle and specifier pair.
54*c66ec88fSEmmanuel Vadot- pinctrl-0: phandle, referring to a default pin configuration node.
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel VadotOptional properties:
57*c66ec88fSEmmanuel Vadot- interrupt-names: A list of interrupt names.
58*c66ec88fSEmmanuel Vadot		   For the R-Car Gen 3 SoCs this property is mandatory;
59*c66ec88fSEmmanuel Vadot		   it should include one entry per channel, named "ch%u",
60*c66ec88fSEmmanuel Vadot		   where %u is the channel number ranging from 0 to 24.
61*c66ec88fSEmmanuel Vadot		   For other SoCs this property is optional; if present
62*c66ec88fSEmmanuel Vadot		   it should contain "mux" for a single muxed interrupt.
63*c66ec88fSEmmanuel Vadot- pinctrl-names: pin configuration state name ("default").
64*c66ec88fSEmmanuel Vadot- renesas,no-ether-link: boolean, specify when a board does not provide a proper
65*c66ec88fSEmmanuel Vadot			 AVB_LINK signal.
66*c66ec88fSEmmanuel Vadot- renesas,ether-link-active-low: boolean, specify when the AVB_LINK signal is
67*c66ec88fSEmmanuel Vadot				 active-low instead of normal active-high.
68*c66ec88fSEmmanuel Vadot
69*c66ec88fSEmmanuel VadotExample:
70*c66ec88fSEmmanuel Vadot
71*c66ec88fSEmmanuel Vadot	ethernet@e6800000 {
72*c66ec88fSEmmanuel Vadot		compatible = "renesas,etheravb-r8a7795", "renesas,etheravb-rcar-gen3";
73*c66ec88fSEmmanuel Vadot		reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
74*c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
75*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
76*c66ec88fSEmmanuel Vadot			     <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
77*c66ec88fSEmmanuel Vadot			     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
78*c66ec88fSEmmanuel Vadot			     <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
79*c66ec88fSEmmanuel Vadot			     <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
80*c66ec88fSEmmanuel Vadot			     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
81*c66ec88fSEmmanuel Vadot			     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
82*c66ec88fSEmmanuel Vadot			     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
83*c66ec88fSEmmanuel Vadot			     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
84*c66ec88fSEmmanuel Vadot			     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
85*c66ec88fSEmmanuel Vadot			     <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
86*c66ec88fSEmmanuel Vadot			     <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
87*c66ec88fSEmmanuel Vadot			     <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
88*c66ec88fSEmmanuel Vadot			     <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
89*c66ec88fSEmmanuel Vadot			     <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
90*c66ec88fSEmmanuel Vadot			     <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
91*c66ec88fSEmmanuel Vadot			     <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
92*c66ec88fSEmmanuel Vadot			     <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
93*c66ec88fSEmmanuel Vadot			     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
94*c66ec88fSEmmanuel Vadot			     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
95*c66ec88fSEmmanuel Vadot			     <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
96*c66ec88fSEmmanuel Vadot			     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
97*c66ec88fSEmmanuel Vadot			     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
98*c66ec88fSEmmanuel Vadot			     <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
99*c66ec88fSEmmanuel Vadot			     <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
100*c66ec88fSEmmanuel Vadot		interrupt-names = "ch0", "ch1", "ch2", "ch3",
101*c66ec88fSEmmanuel Vadot				  "ch4", "ch5", "ch6", "ch7",
102*c66ec88fSEmmanuel Vadot				  "ch8", "ch9", "ch10", "ch11",
103*c66ec88fSEmmanuel Vadot				  "ch12", "ch13", "ch14", "ch15",
104*c66ec88fSEmmanuel Vadot				  "ch16", "ch17", "ch18", "ch19",
105*c66ec88fSEmmanuel Vadot				  "ch20", "ch21", "ch22", "ch23",
106*c66ec88fSEmmanuel Vadot				  "ch24";
107*c66ec88fSEmmanuel Vadot		clocks = <&cpg CPG_MOD 812>;
108*c66ec88fSEmmanuel Vadot		power-domains = <&cpg>;
109*c66ec88fSEmmanuel Vadot		phy-mode = "rgmii-id";
110*c66ec88fSEmmanuel Vadot		phy-handle = <&phy0>;
111*c66ec88fSEmmanuel Vadot
112*c66ec88fSEmmanuel Vadot		pinctrl-0 = <&ether_pins>;
113*c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
114*c66ec88fSEmmanuel Vadot		renesas,no-ether-link;
115*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
116*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
117*c66ec88fSEmmanuel Vadot
118*c66ec88fSEmmanuel Vadot		phy0: ethernet-phy@0 {
119*c66ec88fSEmmanuel Vadot			rxc-skew-ps = <900>;
120*c66ec88fSEmmanuel Vadot			rxdv-skew-ps = <0>;
121*c66ec88fSEmmanuel Vadot			rxd0-skew-ps = <0>;
122*c66ec88fSEmmanuel Vadot			rxd1-skew-ps = <0>;
123*c66ec88fSEmmanuel Vadot			rxd2-skew-ps = <0>;
124*c66ec88fSEmmanuel Vadot			rxd3-skew-ps = <0>;
125*c66ec88fSEmmanuel Vadot			txc-skew-ps = <900>;
126*c66ec88fSEmmanuel Vadot			txen-skew-ps = <0>;
127*c66ec88fSEmmanuel Vadot			txd0-skew-ps = <0>;
128*c66ec88fSEmmanuel Vadot			txd1-skew-ps = <0>;
129*c66ec88fSEmmanuel Vadot			txd2-skew-ps = <0>;
130*c66ec88fSEmmanuel Vadot			txd3-skew-ps = <0>;
131*c66ec88fSEmmanuel Vadot			reg = <0>;
132*c66ec88fSEmmanuel Vadot			interrupt-parent = <&gpio2>;
133*c66ec88fSEmmanuel Vadot			interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
134*c66ec88fSEmmanuel Vadot		};
135*c66ec88fSEmmanuel Vadot	};
136