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