xref: /freebsd/sys/contrib/device-tree/Bindings/net/oxnas-dwmac.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Oxford Semiconductor OXNAS DWMAC Ethernet controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe device inherits all the properties of the dwmac/stmmac devices
4*c66ec88fSEmmanuel Vadotdescribed in the file stmmac.txt in the current directory with the
5*c66ec88fSEmmanuel Vadotfollowing changes.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties on all platforms:
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot- compatible:	For the OX820 SoC, it should be :
10*c66ec88fSEmmanuel Vadot		- "oxsemi,ox820-dwmac" to select glue
11*c66ec88fSEmmanuel Vadot		- "snps,dwmac-3.512" to select IP version.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot- clocks: Should contain phandles to the following clocks
14*c66ec88fSEmmanuel Vadot- clock-names:	Should contain the following:
15*c66ec88fSEmmanuel Vadot		- "stmmaceth" for the host clock - see stmmac.txt
16*c66ec88fSEmmanuel Vadot		- "gmac" for the peripheral gate clock
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot- oxsemi,sys-ctrl: a phandle to the system controller syscon node
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotExample :
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadotetha: ethernet@40400000 {
23*c66ec88fSEmmanuel Vadot	compatible = "oxsemi,ox820-dwmac", "snps,dwmac-3.512";
24*c66ec88fSEmmanuel Vadot	reg = <0x40400000 0x2000>;
25*c66ec88fSEmmanuel Vadot	interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
26*c66ec88fSEmmanuel Vadot		     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
27*c66ec88fSEmmanuel Vadot	interrupt-names = "macirq", "eth_wake_irq";
28*c66ec88fSEmmanuel Vadot	mac-address = [000000000000]; /* Filled in by U-Boot */
29*c66ec88fSEmmanuel Vadot	phy-mode = "rgmii";
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot	clocks = <&stdclk CLK_820_ETHA>, <&gmacclk>;
32*c66ec88fSEmmanuel Vadot	clock-names = "gmac", "stmmaceth";
33*c66ec88fSEmmanuel Vadot	resets = <&reset RESET_MAC>;
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot	/* Regmap for sys registers */
36*c66ec88fSEmmanuel Vadot	oxsemi,sys-ctrl = <&sys>;
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel Vadot};
39