linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/11] ARM: berlin: refactor the clock
@ 2015-03-06 15:12 Antoine Tenart
  2015-03-06 15:12 ` [PATCH v2 01/11] clk: convert clock mux to accept regmap Antoine Tenart
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: Antoine Tenart @ 2015-03-06 15:12 UTC (permalink / raw)
  To: linux-arm-kernel

Marvell Berlin SoCs have a chip control register set providing several
individual registers dealing with various controllers (pinctrl, reset,
clk). This chip controller is described by a single DT node since the
individual registers are spread among the chip control register bank.

Marvell Berlin also have a system control register set providing several
individual registers for pinctrl or adc.

A series was sent[1] to correctly handle these two nodes, by using
simple-mfd. The series converted the existing pin-controller and reset
drivers to take the changes into account.

Because the Berlin clock driver was still working with the above
modification, Berlin clock reworks were not included into the previous
series. Also the clock reworks change some of the clock framework
functions, so having a dedicated series helps.

This series aims to convert the Berlin clock driver to use the proper
way of dealing with the chip and system controller on Berlin SoCs. To do
this changes were done in the clk-mux and clk-gate helpers so they can
handle regmaps alongside iomem addresses.

This series has been tested on the Marvell Berlin BG2Q DMP.

This series is based on v4.0-rc1 and [1].

Thanks!

Antoine

[1] https://lkml.org/lkml/2015/3/6/511

Changes since v1:
	- Rebased of top of the new version of [1].
	- Removed now useless chip and system ctrl compatibles.

Antoine Tenart (11):
  clk: convert clock mux to accept regmap
  clk: convert clock gate to accept regmap
  clk: berlin: use regmap
  Documentation: bindings: move the Berlin clock documentation
  ARM: berlin: rework the clock node for BG2
  ARM: berlin: rework the clock node for BG2CD
  ARM: berlin: rework the clock node for BG2Q
  Documentation: bindings: update the berlin chip and system ctrl doc
  ARM: berlin: remove useless chip and system ctrl compatibles in BG2
  ARM: berlin: remove useless chip and system ctrl compatibles in BG2CD
  ARM: berlin: remove useless chip and system ctrl compatibles in BG2Q

 .../devicetree/bindings/arm/marvell,berlin.txt     |  43 ++------
 .../devicetree/bindings/clock/marvell,berlin.txt   |  31 ++++++
 arch/arm/boot/dts/berlin2.dtsi                     |  47 +++++----
 arch/arm/boot/dts/berlin2cd.dtsi                   |  43 ++++----
 arch/arm/boot/dts/berlin2q.dtsi                    |  57 ++++++-----
 drivers/clk/berlin/berlin2-avpll.c                 |  72 +++++++------
 drivers/clk/berlin/berlin2-avpll.h                 |  13 ++-
 drivers/clk/berlin/berlin2-div.c                   |  82 +++++----------
 drivers/clk/berlin/berlin2-div.h                   |   4 +-
 drivers/clk/berlin/berlin2-pll.c                   |  16 +--
 drivers/clk/berlin/berlin2-pll.h                   |   7 +-
 drivers/clk/berlin/bg2.c                           | 112 +++++++++++----------
 drivers/clk/berlin/bg2q.c                          |  64 +++++++-----
 drivers/clk/clk-gate.c                             |  94 +++++++++++++----
 drivers/clk/clk-mux.c                              |  72 +++++++++++--
 include/linux/clk-provider.h                       |  51 ++++++++--
 16 files changed, 481 insertions(+), 327 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/marvell,berlin.txt

-- 
2.3.1

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

end of thread, other threads:[~2015-03-11 22:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 15:12 [PATCH v2 00/11] ARM: berlin: refactor the clock Antoine Tenart
2015-03-06 15:12 ` [PATCH v2 01/11] clk: convert clock mux to accept regmap Antoine Tenart
2015-03-11 22:36   ` Stephen Boyd
2015-03-06 15:12 ` [PATCH v2 02/11] clk: convert clock gate " Antoine Tenart
2015-03-06 15:12 ` [PATCH v2 03/11] clk: berlin: use regmap Antoine Tenart
2015-03-06 15:12 ` [PATCH v2 04/11] Documentation: bindings: move the Berlin clock documentation Antoine Tenart
2015-03-06 15:12 ` [PATCH v2 05/11] ARM: berlin: rework the clock node for BG2 Antoine Tenart
2015-03-06 15:12 ` [PATCH v2 06/11] ARM: berlin: rework the clock node for BG2CD Antoine Tenart
2015-03-06 15:13 ` [PATCH v2 07/11] ARM: berlin: rework the clock node for BG2Q Antoine Tenart
2015-03-06 15:13 ` [PATCH v2 08/11] Documentation: bindings: update the berlin chip and system ctrl doc Antoine Tenart
2015-03-06 15:13 ` [PATCH v2 09/11] ARM: berlin: remove useless chip and system ctrl compatibles in BG2 Antoine Tenart
2015-03-06 15:13 ` [PATCH v2 10/11] ARM: berlin: remove useless chip and system ctrl compatibles in BG2CD Antoine Tenart
2015-03-06 15:13 ` [PATCH v2 11/11] ARM: berlin: remove useless chip and system ctrl compatibles in BG2Q Antoine Tenart

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).