linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] net: stmmac: Add sun7i GMAC glue layer
@ 2013-12-06 17:29 Chen-Yu Tsai
  2013-12-06 17:29 ` [PATCH 01/10] net: stmmac: Enable stmmac main clock when probing hardware Chen-Yu Tsai
                   ` (10 more replies)
  0 siblings, 11 replies; 63+ messages in thread
From: Chen-Yu Tsai @ 2013-12-06 17:29 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This patch series adds Allwinner sun7i support to stmmac.
The Allwinner sun7i SoC A20 integrates an early version of
dwmac IP from Synopsys. On top of that is a hardware glue
layer. This layer needs to be configured before the dwmac
can be used.

The glue layer is implemented with existing callbacks in
stmmac platform data. Hardware feature flags are also passed
to the driver through platform data. As suggested by Maxime,
the platform data is tied to our compatible string.
Minimal modifications to stmmac core are made.

This version of dwmac IP requires store and forward DMA mode.
The relevant device tree property was documented, but not
implemented. The second patch adds this to stmmac platform
driver.

During testing, with stmmac built as a module, loading the
driver fails during the hardware probe phase. The main clock
is not enabled, and the hardware returns bogus results.
The first patch addresses this.

Comments?

Thanks,

wens


Chen-Yu Tsai (10):
  net: stmmac: Enable stmmac main clock when probing hardware
  net: stmmac: Honor DT parameter to force DMA store and forward mode
  net: stmmac: Use platform data tied with compatible strings
  net: stmmac: sunxi platfrom extensions for GMAC in Allwinner A20 SoC's
  ARM: dts: sun7i: Add GMAC controller node to sun7i DTSI
  ARM: dts: sun7i: Add pin muxing options for the GMAC
  ARM: dts: sun7i: cubietruck: Enable the GMAC
  ARM: dts: sun7i: cubieboard2: Enable GMAC instead of EMAC
  ARM: dts: sun7i: olinuxino-micro: Enable GMAC instead of EMAC
  ARM: dts: sun7i: Add ethernet alias for GMAC

 .../bindings/net/allwinner,sun7i-gmac.txt          | 22 +++++++
 arch/arm/boot/dts/sun7i-a20-cubieboard2.dts        | 23 +++----
 arch/arm/boot/dts/sun7i-a20-cubietruck.dts         |  8 +++
 arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts    | 23 +++----
 arch/arm/boot/dts/sun7i-a20.dtsi                   | 40 ++++++++++++
 drivers/net/ethernet/stmicro/stmmac/Kconfig        | 12 ++++
 drivers/net/ethernet/stmicro/stmmac/Makefile       |  1 +
 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c  | 76 ++++++++++++++++++++++
 drivers/net/ethernet/stmicro/stmmac/stmmac.h       |  3 +
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 24 ++++---
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 33 +++++++---
 11 files changed, 215 insertions(+), 50 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun7i-gmac.txt
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c

-- 
1.8.5.1

^ permalink raw reply	[flat|nested] 63+ messages in thread

end of thread, other threads:[~2014-01-07 10:24 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06 17:29 [PATCH 00/10] net: stmmac: Add sun7i GMAC glue layer Chen-Yu Tsai
2013-12-06 17:29 ` [PATCH 01/10] net: stmmac: Enable stmmac main clock when probing hardware Chen-Yu Tsai
2013-12-07 10:33   ` Maxime Ripard
2013-12-09  2:43     ` Chen-Yu Tsai
2013-12-09 10:09       ` [linux-sunxi] " Hans de Goede
2013-12-10 20:05       ` Maxime Ripard
2013-12-12  4:31         ` Chen-Yu Tsai
2013-12-09  7:14   ` Giuseppe CAVALLARO
2013-12-09  7:26     ` Chen-Yu Tsai
2013-12-06 17:29 ` [PATCH 02/10] net: stmmac: Honor DT parameter to force DMA store and forward mode Chen-Yu Tsai
2013-12-06 21:26   ` David Miller
2013-12-07  1:23     ` Chen-Yu Tsai
2013-12-07 10:07       ` maxime.ripard
2013-12-07 11:06         ` Tomasz Figa
2013-12-09  2:59           ` [linux-sunxi] " Chen-Yu Tsai
2013-12-10 20:10             ` maxime.ripard
2013-12-06 17:29 ` [PATCH 03/10] net: stmmac: Use platform data tied with compatible strings Chen-Yu Tsai
2013-12-06 21:26   ` David Miller
2013-12-07  2:13     ` Chen-Yu Tsai
2013-12-06 17:29 ` [PATCH 04/10] net: stmmac: sunxi platfrom extensions for GMAC in Allwinner A20 SoC's Chen-Yu Tsai
2013-12-07 10:27   ` Maxime Ripard
2013-12-07 11:12     ` Tomasz Figa
2013-12-07 11:46       ` Maxime Ripard
2013-12-07 12:50         ` Tomasz Figa
2013-12-07 13:34           ` [linux-sunxi] " Emilio López
2013-12-09 11:10   ` srinivas kandagatla
2013-12-09 16:16     ` [linux-sunxi] " Hans de Goede
2013-12-09 17:56       ` Chen-Yu Tsai
2013-12-09 19:04         ` Hans de Goede
2013-12-10 20:14           ` Maxime Ripard
2013-12-09 17:34     ` Chen-Yu Tsai
2013-12-10 14:59       ` srinivas kandagatla
2013-12-10 20:23         ` Maxime Ripard
2013-12-11 12:17         ` Chen-Yu Tsai
2013-12-11 14:45           ` srinivas kandagatla
2013-12-12  7:27             ` Chen-Yu Tsai
2013-12-12  9:04             ` Maxime Ripard
2013-12-12 10:31               ` Chen-Yu Tsai
2013-12-13 10:38                 ` Maxime Ripard
2013-12-24  3:27                   ` [linux-sunxi] " Chen-Yu Tsai
2014-01-02 13:11                     ` srinivas kandagatla
2014-01-07 10:24                       ` Chen-Yu Tsai
2013-12-09 11:21   ` srinivas kandagatla
2013-12-09 13:44     ` Sergei Shtylyov
2013-12-09 15:45       ` [linux-sunxi] " Chen-Yu Tsai
2013-12-06 17:29 ` [PATCH 05/10] ARM: dts: sun7i: Add GMAC controller node to sun7i DTSI Chen-Yu Tsai
2013-12-06 17:29 ` [PATCH 06/10] ARM: dts: sun7i: Add pin muxing options for the GMAC Chen-Yu Tsai
2013-12-06 17:29 ` [PATCH 07/10] ARM: dts: sun7i: cubietruck: Enable " Chen-Yu Tsai
2013-12-06 21:09   ` Florian Fainelli
2013-12-07  1:35     ` Chen-Yu Tsai
2013-12-07  1:57       ` Florian Fainelli
2013-12-09  2:55         ` Chen-Yu Tsai
2013-12-09 17:48           ` Florian Fainelli
2013-12-10  4:11             ` Chen-Yu Tsai
2013-12-10 17:23               ` Florian Fainelli
2013-12-13 10:21         ` Giuseppe CAVALLARO
2013-12-06 17:29 ` [PATCH 08/10] ARM: dts: sun7i: cubieboard2: Enable GMAC instead of EMAC Chen-Yu Tsai
2013-12-06 21:10   ` Florian Fainelli
2013-12-06 17:29 ` [PATCH 09/10] ARM: dts: sun7i: olinuxino-micro: " Chen-Yu Tsai
2013-12-06 17:29 ` [PATCH 10/10] ARM: dts: sun7i: Add ethernet alias for GMAC Chen-Yu Tsai
2013-12-07 10:15   ` Maxime Ripard
2013-12-07 16:20     ` Chen-Yu Tsai
2013-12-06 20:52 ` [linux-sunxi] [PATCH 00/10] net: stmmac: Add sun7i GMAC glue layer Michal Suchanek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).