Merge remote-tracking branches 'asoc/topic/rockchip', 'asoc/topic/rt5514', 'asoc...
[sfrench/cifs-2.6.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                 Additionally "snps,dwmac" and any applicable more
14                 detailed version number described in net/stmmac.txt
15                 should be used.
16
17 - reg:  The first register range should be the one of the DWMAC
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)
21
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 Optional properties on Meson8b and newer:
29 - amlogic,tx-delay-ns:  The internal RGMII TX clock delay (provided
30                         by this driver) in nanoseconds. Allowed values
31                         are: 0ns, 2ns, 4ns, 6ns.
32                         When phy-mode is set to "rgmii" then the TX
33                         delay should be explicitly configured. When
34                         not configured a fallback of 2ns is used.
35                         When the phy-mode is set to either "rgmii-id"
36                         or "rgmii-txid" the TX clock delay is already
37                         provided by the PHY. In that case this
38                         property should be set to 0ns (which disables
39                         the TX clock delay in the MAC to prevent the
40                         clock from going off because both PHY and MAC
41                         are adding a delay).
42                         Any configuration is ignored when the phy-mode
43                         is set to "rmii".
44
45 Example for Meson6:
46
47         ethmac: ethernet@c9410000 {
48                 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
49                 reg = <0xc9410000 0x10000
50                        0xc1108108 0x4>;
51                 interrupts = <0 8 1>;
52                 interrupt-names = "macirq";
53                 clocks = <&clk81>;
54                 clock-names = "stmmaceth";
55         }
56
57 Example for GXBB:
58         ethmac: ethernet@c9410000 {
59                 compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
60                 reg = <0x0 0xc9410000 0x0 0x10000>,
61                         <0x0 0xc8834540 0x0 0x8>;
62                 interrupts = <0 8 1>;
63                 interrupt-names = "macirq";
64                 clocks = <&clkc CLKID_ETH>,
65                                 <&clkc CLKID_FCLK_DIV2>,
66                                 <&clkc CLKID_MPLL2>;
67                 clock-names = "stmmaceth", "clkin0", "clkin1";
68                 phy-mode = "rgmii";
69                 status = "disabled";
70         };