Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: meson-dwmac: add support for the Meson8m2 SoC

The Meson8m2 SoC uses a similar (potentially even identical) register
layout for the dwmac glue as Meson8b and GXBB. Unfortunately there is no
documentation available.
Testing shows that both, RMII and RGMII PHYs are working if they are
configured as on Meson8b. Add a new compatible string to the
documentation so differences (if there are any) between Meson8m2 and the
other SoCs can be taken care of within the driver.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Martin Blumenstingl and committed by
David S. Miller
a5af1fb9 c0b6edef

+3 -2
+3 -2
Documentation/devicetree/bindings/net/meson-dwmac.txt
··· 9 9 - compatible: Depending on the platform this should be one of: 10 10 - "amlogic,meson6-dwmac" 11 11 - "amlogic,meson8b-dwmac" 12 + - "amlogic,meson8m2-dwmac" 12 13 - "amlogic,meson-gxbb-dwmac" 13 14 Additionally "snps,dwmac" and any applicable more 14 15 detailed version number described in net/stmmac.txt ··· 20 19 configuration (for example the PRG_ETHERNET register range 21 20 on Meson8b and newer) 22 21 23 - Required properties on Meson8b and newer: 22 + Required properties on Meson8b, Meson8m2, GXBB and newer: 24 23 - clock-names: Should contain the following: 25 24 - "stmmaceth" - see stmmac.txt 26 25 - "clkin0" - first parent clock of the internal mux 27 26 - "clkin1" - second parent clock of the internal mux 28 27 29 - Optional properties on Meson8b and newer: 28 + Optional properties on Meson8b, Meson8m2, GXBB and newer: 30 29 - amlogic,tx-delay-ns: The internal RGMII TX clock delay (provided 31 30 by this driver) in nanoseconds. Allowed values 32 31 are: 0ns, 2ns, 4ns, 6ns.