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