1 * Amlogic Meson DWMAC Ethernet controller
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
7 Required properties on all platforms:
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
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
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
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
42 Any configuration is ignored when the phy-mode
47 ethmac: ethernet@c9410000 {
48 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
49 reg = <0xc9410000 0x10000
52 interrupt-names = "macirq";
54 clock-names = "stmmaceth";
58 ethmac: ethernet@c9410000 {
59 compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
60 reg = <0x0 0xc9410000 0x0 0x10000>,
61 <0x0 0xc8834540 0x0 0x8>;
63 interrupt-names = "macirq";
64 clocks = <&clkc CLKID_ETH>,
65 <&clkc CLKID_FCLK_DIV2>,
67 clock-names = "stmmaceth", "clkin0", "clkin1";