summaryrefslogtreecommitdiff
path: root/doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt
blob: ea4d752389a261ec5c6a18d4cc9db1b20c8b9dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
* Allwinner GMAC ethernet controller

This device is a platform glue layer for stmmac.
Please see stmmac.txt for the other unchanged properties.

Required properties:
 - compatible:  Should be "allwinner,sun7i-a20-gmac"
 - clocks: Should contain the GMAC main clock, and tx clock
   The tx clock type should be "allwinner,sun7i-a20-gmac-clk"
 - clock-names: Should contain the clock names "stmmaceth",
   and "allwinner_gmac_tx"

Optional properties:
- phy-supply: phandle to a regulator if the PHY needs one

Examples:

	gmac: ethernet@01c50000 {
		compatible = "allwinner,sun7i-a20-gmac";
		reg = <0x01c50000 0x10000>,
		      <0x01c20164 0x4>;
		interrupts = <0 85 1>;
		interrupt-names = "macirq";
		clocks = <&ahb_gates 49>, <&gmac_tx>;
		clock-names = "stmmaceth", "allwinner_gmac_tx";
		phy-mode = "mii";
	};