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