xref: /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Allwinner GMAC ethernet controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis device is a platform glue layer for stmmac.
4*4882a593SmuzhiyunPlease see stmmac.txt for the other unchanged properties.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun - compatible:  Should be "allwinner,sun7i-a20-gmac"
8*4882a593Smuzhiyun - clocks: Should contain the GMAC main clock, and tx clock
9*4882a593Smuzhiyun   The tx clock type should be "allwinner,sun7i-a20-gmac-clk"
10*4882a593Smuzhiyun - clock-names: Should contain the clock names "stmmaceth",
11*4882a593Smuzhiyun   and "allwinner_gmac_tx"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties:
14*4882a593Smuzhiyun- phy-supply: phandle to a regulator if the PHY needs one
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunExamples:
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun	gmac: ethernet@01c50000 {
19*4882a593Smuzhiyun		compatible = "allwinner,sun7i-a20-gmac";
20*4882a593Smuzhiyun		reg = <0x01c50000 0x10000>,
21*4882a593Smuzhiyun		      <0x01c20164 0x4>;
22*4882a593Smuzhiyun		interrupts = <0 85 1>;
23*4882a593Smuzhiyun		interrupt-names = "macirq";
24*4882a593Smuzhiyun		clocks = <&ahb_gates 49>, <&gmac_tx>;
25*4882a593Smuzhiyun		clock-names = "stmmaceth", "allwinner_gmac_tx";
26*4882a593Smuzhiyun		phy-mode = "mii";
27*4882a593Smuzhiyun	};
28