diff options
-rw-r--r-- | Documentation/devicetree/bindings/net/meson-dwmac.txt | 45 |
1 files changed, 37 insertions, 8 deletions
diff --git a/Documentation/devicetree/bindings/net/meson-dwmac.txt b/Documentation/devicetree/bindings/net/meson-dwmac.txt index ec633d74a8a8..89e62ddc69ca 100644 --- a/Documentation/devicetree/bindings/net/meson-dwmac.txt +++ b/Documentation/devicetree/bindings/net/meson-dwmac.txt | |||
@@ -1,18 +1,32 @@ | |||
1 | * Amlogic Meson DWMAC Ethernet controller | 1 | * Amlogic Meson DWMAC Ethernet controller |
2 | 2 | ||
3 | The device inherits all the properties of the dwmac/stmmac devices | 3 | The device inherits all the properties of the dwmac/stmmac devices |
4 | described in the file net/stmmac.txt with the following changes. | 4 | described in the file stmmac.txt in the current directory with the |
5 | following changes. | ||
5 | 6 | ||
6 | Required properties: | 7 | Required properties on all platforms: |
7 | 8 | ||
8 | - compatible: should be "amlogic,meson6-dwmac" along with "snps,dwmac" | 9 | - compatible: Depending on the platform this should be one of: |
9 | and any applicable more detailed version number | 10 | - "amlogic,meson6-dwmac" |
10 | described in net/stmmac.txt | 11 | - "amlogic,meson8b-dwmac" |
12 | - "amlogic,meson-gxbb-dwmac" | ||
13 | Additionally "snps,dwmac" and any applicable more | ||
14 | detailed version number described in net/stmmac.txt | ||
15 | should be used. | ||
11 | 16 | ||
12 | - reg: should contain a register range for the dwmac controller and | 17 | - reg: The first register range should be the one of the DWMAC |
13 | another one for the Amlogic specific configuration | 18 | controller. The second range is is for the Amlogic specific |
19 | configuration (for example the PRG_ETHERNET register range | ||
20 | on Meson8b and newer) | ||
14 | 21 | ||
15 | Example: | 22 | Required properties on Meson8b and newer: |
23 | - clock-names: Should contain the following: | ||
24 | - "stmmaceth" - see stmmac.txt | ||
25 | - "clkin0" - first parent clock of the internal mux | ||
26 | - "clkin1" - second parent clock of the internal mux | ||
27 | |||
28 | |||
29 | Example for Meson6: | ||
16 | 30 | ||
17 | ethmac: ethernet@c9410000 { | 31 | ethmac: ethernet@c9410000 { |
18 | compatible = "amlogic,meson6-dwmac", "snps,dwmac"; | 32 | compatible = "amlogic,meson6-dwmac", "snps,dwmac"; |
@@ -23,3 +37,18 @@ Example: | |||
23 | clocks = <&clk81>; | 37 | clocks = <&clk81>; |
24 | clock-names = "stmmaceth"; | 38 | clock-names = "stmmaceth"; |
25 | } | 39 | } |
40 | |||
41 | Example for GXBB: | ||
42 | ethmac: ethernet@c9410000 { | ||
43 | compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac"; | ||
44 | reg = <0x0 0xc9410000 0x0 0x10000>, | ||
45 | <0x0 0xc8834540 0x0 0x8>; | ||
46 | interrupts = <0 8 1>; | ||
47 | interrupt-names = "macirq"; | ||
48 | clocks = <&clkc CLKID_ETH>, | ||
49 | <&clkc CLKID_FCLK_DIV2>, | ||
50 | <&clkc CLKID_MPLL2>; | ||
51 | clock-names = "stmmaceth", "clkin0", "clkin1"; | ||
52 | phy-mode = "rgmii"; | ||
53 | status = "disabled"; | ||
54 | }; | ||