Skip to content

Add Marvell berlin4ct clk support

Jisheng Zhang linux-arm-kernel linux-clk linux-devicetree lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 14 repliesIn review
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- rebased on v4.4-rc1
- refactor out common code from clk-berlin4ct.c
- s/lock/berlin4ct_gateclk_lock
- drop WARN_ON for an allocation failure
- s/kzalloc/kcalloc
- add necessary handling in error code path, such as free memory, iounmap etc.
- initialize init.flags
- drop vcodiv_berlin[] array

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6clk: berlin: add common pll driverdrivers/clk/berlin/Makefile drivers/clk/berlin/pll.c+134 -01 reply
2/6clk: berlin: add common clk driver for newer SoCsdrivers/clk/berlin/Makefile drivers/clk/berlin/clk.c drivers/clk/berlin/clk.h+237 -11 reply
3/6clk: berlin: add common gateclk driver for newer SoCsdrivers/clk/berlin/Makefile drivers/clk/berlin/clk.h drivers/clk/berlin/gate.c+86 -10 replies
4/6clk: berlin: add clk support for berlin4ctdrivers/clk/berlin/Makefile drivers/clk/berlin/clk-berlin4ct.c+98 -12 replies
5/6dt-bindings: add binding for marvell berlin4ct SoCDocumentation/devicetree/bindings/clock/marvell,berlin4ct.txt include/dt-bindings/clock/berlin4ct.h+94 -01 reply
6/6arm64: dts: berlin4ct: add pll and clock nodesarch/arm64/boot/dts/marvell/berlin4ct.dtsi+38 -09 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/6
2/6
3/6
4/6
5/6A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] Add Marvell berlin4ct clk support

Add berlin4ct clk driver. The berlin4ct SoC contains:

two kinds of PLL: normal PLL and AVPLL. The normal PLL support is done. The AVPLL support is in TODO list.

two kinds of clk: normal clk and gate clk. The normal clk supports changing divider, selecting clock source, disabling/enabling etc. The gate clk only supports disabling/enabling. Both are supported in this series.

Since v1:
- rebased on v4.4-rc1
- refactor out common code from clk-berlin4ct.c
- s/lock/berlin4ct_gateclk_lock
- drop WARN_ON for an allocation failure
- s/kzalloc/kcalloc
- add necessary handling in error code path, such as free memory, iounmap etc.
- initialize init.flags
- drop vcodiv_berlin[] array

Jisheng Zhang (6):
clk: berlin: add common pll driver
clk: berlin: add common clk driver for newer SoCs
clk: berlin: add common gateclk driver for newer SoCs
clk: berlin: add clk support for berlin4ct
dt-bindings: add binding for marvell berlin4ct SoC
arm64: dts: berlin4ct: add pll and clock nodes

 .../bindings/clock/marvell,berlin4ct.txt           |  38 ++++
 arch/arm64/boot/dts/marvell/berlin4ct.dtsi         |  38 ++++
 drivers/clk/berlin/Makefile                        |   1 +
 drivers/clk/berlin/clk-berlin4ct.c                 |  97 ++++++++++
 drivers/clk/berlin/clk.c                           | 203 +++++++++++++++++++++
 drivers/clk/berlin/clk.h                           |  45 +++++
 drivers/clk/berlin/gate.c                          |  73 ++++++++
 drivers/clk/berlin/pll.c                           | 133 ++++++++++++++
 include/dt-bindings/clock/berlin4ct.h              |  56 ++++++
 9 files changed, 684 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/marvell,berlin4ct.txt
 create mode 100644 drivers/clk/berlin/clk-berlin4ct.c
 create mode 100644 drivers/clk/berlin/clk.c
 create mode 100644 drivers/clk/berlin/clk.h
 create mode 100644 drivers/clk/berlin/gate.c
 create mode 100644 drivers/clk/berlin/pll.c
 create mode 100644 include/dt-bindings/clock/berlin4ct.h
Signature · 1 line
2.6.2