From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Blumenstingl Subject: [PATCH v3 0/5] meson: Meson8b and GXBB DWMAC glue driver Date: Sun, 28 Aug 2016 18:16:32 +0200 Message-ID: <20160828161637.9941-1-martin.blumenstingl@googlemail.com> References: <20160820093538.9707-1-martin.blumenstingl@googlemail.com> Cc: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sboyd@codeaurora.org, manabian@gmail.com, arnd@arndb.de, Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org, mturquette@baylibre.com, peppe.cavallaro@st.com, alexandre.torgue@st.com Return-path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:33684 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752567AbcH1QQ4 (ORCPT ); Sun, 28 Aug 2016 12:16:56 -0400 In-Reply-To: <20160820093538.9707-1-martin.blumenstingl@googlemail.com> Sender: netdev-owner@vger.kernel.org List-ID: This adds a DWMAC glue driver for the PRG_ETHERNET registers found in Meson8b and GXBB SoCs. Based on the "old" meson6b-dwmac glue driver the register layout is completely different. Thus I introduced a separate driver. Changes since v2: - fixed unloading the glue driver when built as module. This pulls in a patch from Joachim Eastwood (thanks) to get our private data structure (bsp_priv). Joachim Eastwood (1): stmmac: introduce get_stmmac_bsp_priv() helper Martin Blumenstingl (4): net: dt-bindings: Document the new Meson8b and GXBB DWMAC bindings clk: gxbb: expose MPLL2 clock for use by DT net: stmmac: add a glue driver for the Amlogic Meson 8b / GXBB DWMAC ARM64: dts: meson-gxbb: use the new GXBB DWMAC glue driver .../devicetree/bindings/net/meson-dwmac.txt | 45 ++- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 8 +- drivers/clk/meson/gxbb.h | 2 +- drivers/net/ethernet/stmicro/stmmac/Makefile | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 327 +++++++++++++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_platform.h | 8 + include/dt-bindings/clock/gxbb-clkc.h | 1 + 7 files changed, 380 insertions(+), 13 deletions(-) create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c -- 2.9.3