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

net: dt-bindings: Document the new Meson8b and GXBB DWMAC bindings

This patch adds the documentation for the DWMAC ethernet controller
found in Amlogic Meson 8b (S805) and GXBB (S905) SoCs.
The main difference between the Meson6 glue is that different registers
(with different layout) are used.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>

authored by

Martin Blumenstingl and committed by
Kevin Hilman
6aee1597 ad855eae

+37 -8
+37 -8
Documentation/devicetree/bindings/net/meson-dwmac.txt
··· 1 1 * Amlogic Meson DWMAC Ethernet controller 2 2 3 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 - and any applicable more detailed version number 10 - described in net/stmmac.txt 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. 11 16 12 - - reg: should contain a register range for the dwmac controller and 13 - another one for the Amlogic specific configuration 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) 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 31 ethmac: ethernet@c9410000 { 18 32 compatible = "amlogic,meson6-dwmac", "snps,dwmac"; ··· 37 23 clocks = <&clk81>; 38 24 clock-names = "stmmaceth"; 39 25 } 26 + 27 + Example for GXBB: 28 + ethmac: ethernet@c9410000 { 29 + compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac"; 30 + reg = <0x0 0xc9410000 0x0 0x10000>, 31 + <0x0 0xc8834540 0x0 0x8>; 32 + interrupts = <0 8 1>; 33 + interrupt-names = "macirq"; 34 + clocks = <&clkc CLKID_ETH>, 35 + <&clkc CLKID_FCLK_DIV2>, 36 + <&clkc CLKID_MPLL2>; 37 + clock-names = "stmmaceth", "clkin0", "clkin1"; 38 + phy-mode = "rgmii"; 39 + status = "disabled"; 40 + };