mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/6] ARM: sunxi: Convert A20/A31 GMAC driver to use CCU
@ 2020-04-29 20:46 Priit Laes
  2020-04-29 20:46 ` [PATCH v2 1/6] clk: sunxi-ng: a20: Register regmap for sun7i CCU Priit Laes
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Priit Laes @ 2020-04-29 20:46 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai, Rob Herring, linux-kernel,
	linux-clk, linux-arm-kernel, devicetree, linux-sunxi
  Cc: Priit Laes

This serie converts Allwinner A20 and A31 GMAC driver to CCU
while still retaining compatibility with existing devicetrees.

This patchset touches 3 areas:
- sun7i and sun6i CCUs now set up regmap to allow dwmac-sunxi driver
to properly access the GMAC clock register.
- dwmac-sunxi can now handle syscon-based clock register to handle
clock itself.
- sun7i and sun6i devicetrees are converted to use the new syscon-based
access.

Changes since v1:
* Use CLK_OF_DECLARE_DRIVER to make it possible to probe again and set up
regmap using platform device probe.
* Clarify the meaning of "legacy" in dwmac-sunxi driver.
* Make sure we don't mess with the RX/TX delay settings when updating
clock registers.
* Update devicetree bindings
* Add sun6i-A31 support. (not tested due to lack of hardware)

Priit Laes (6):
  clk: sunxi-ng: a20: Register regmap for sun7i CCU
  clk: sunxi-ng: a31: Register regmap for sun6i CCU
  net: stmmac: dwmac-sunxi: Implement syscon-based clock handling
  dt-bindings: net: sun7i-gmac: Add syscon support
  ARM: dts: sun7i: Use syscon-based implementation for gmac
  ARM: dts: sun6i: Use syscon-based implementation for gmac

 .../net/allwinner,sun7i-a20-gmac.yaml         |  15 +-
 arch/arm/boot/dts/sun6i-a31.dtsi              |  35 +----
 arch/arm/boot/dts/sun7i-a20.dtsi              |  36 +----
 drivers/clk/sunxi-ng/ccu-sun4i-a10.c          |  60 +++++++-
 drivers/clk/sunxi-ng/ccu-sun6i-a31.c          |  60 +++++++-
 .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 130 ++++++++++++++++--
 6 files changed, 258 insertions(+), 78 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2020-04-30 11:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 20:46 [PATCH v2 0/6] ARM: sunxi: Convert A20/A31 GMAC driver to use CCU Priit Laes
2020-04-29 20:46 ` [PATCH v2 1/6] clk: sunxi-ng: a20: Register regmap for sun7i CCU Priit Laes
2020-04-29 20:46 ` [PATCH v2 2/6] clk: sunxi-ng: a31: Register regmap for sun6i CCU Priit Laes
2020-04-30 11:10   ` Priit Laes
2020-04-29 20:46 ` [PATCH v2 3/6] net: stmmac: dwmac-sunxi: Implement syscon-based clock handling Priit Laes
2020-04-29 20:46 ` [PATCH v2 4/6] dt-bindings: net: sun7i-gmac: Add syscon support Priit Laes
2020-04-29 20:46 ` [PATCH v2 5/6] ARM: dts: sun7i: Use syscon-based implementation for gmac Priit Laes
2020-04-29 20:46 ` [PATCH v2 6/6] ARM: dts: sun6i: " Priit Laes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®