diff options
author | Chen-Yu Tsai <wens@csie.org> | 2014-01-17 08:24:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-19 23:02:41 -0500 |
commit | af0bd4e9ba809391f275d0c094ac0bfbfbb3f430 (patch) | |
tree | 883ebd0c4ccd98de59579a8b665ff7e7bbcf58e7 /Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt | |
parent | 022066f50f53000679d31eb407693085f37b3f14 (diff) |
net: stmmac: sunxi platform extensions for GMAC in Allwinner A20 SoC's
The Allwinner A20 has an ethernet controller that seems to be
an early version of Synopsys DesignWare MAC 10/100/1000 Universal,
which is supported by the stmmac driver.
Allwinner's GMAC requires setting additional registers in the SoC's
clock control unit.
The exact version of the DWMAC IP that Allwinner uses is unknown,
thus the exact feature set is unknown.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt')
-rw-r--r-- | Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt b/Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt new file mode 100644 index 000000000000..ea4d752389a2 --- /dev/null +++ b/Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt | |||
@@ -0,0 +1,27 @@ | |||
1 | * Allwinner GMAC ethernet controller | ||
2 | |||
3 | This device is a platform glue layer for stmmac. | ||
4 | Please see stmmac.txt for the other unchanged properties. | ||
5 | |||
6 | Required properties: | ||
7 | - compatible: Should be "allwinner,sun7i-a20-gmac" | ||
8 | - clocks: Should contain the GMAC main clock, and tx clock | ||
9 | The tx clock type should be "allwinner,sun7i-a20-gmac-clk" | ||
10 | - clock-names: Should contain the clock names "stmmaceth", | ||
11 | and "allwinner_gmac_tx" | ||
12 | |||
13 | Optional properties: | ||
14 | - phy-supply: phandle to a regulator if the PHY needs one | ||
15 | |||
16 | Examples: | ||
17 | |||
18 | gmac: ethernet@01c50000 { | ||
19 | compatible = "allwinner,sun7i-a20-gmac"; | ||
20 | reg = <0x01c50000 0x10000>, | ||
21 | <0x01c20164 0x4>; | ||
22 | interrupts = <0 85 1>; | ||
23 | interrupt-names = "macirq"; | ||
24 | clocks = <&ahb_gates 49>, <&gmac_tx>; | ||
25 | clock-names = "stmmaceth", "allwinner_gmac_tx"; | ||
26 | phy-mode = "mii"; | ||
27 | }; | ||