core, cpu and gated clocks for mvebu
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 0 repliesNew
- v10 of 7 patches 0 repliesSuperseded
Changes in v2 from the cover letter
Moved some patch hunks into the correct patch
Added armada_ prefix to a number of symbols
renamed clk_gate to gate_clk
renamed *-clock-gating to *-gating-clock
Add gating-clock implementation for Armada 370/XP Add Tested-by from Gregory
Documented required clock property in armada-370-xp-timer.txt
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | clk: mvebu: add mvebu core clocks.Documentation/ drivers/ drivers/ +6 more | +792 | 0 replies | |
| 2/9 | clk: mvebu: add armada-370-xp CPU specific clocksDocumentation/ drivers/ drivers/ +3 more | +212 | 0 replies | |
| 3/9 | clk: armada-370-xp: add support for clock frameworkarch/ arch/ arch/ +1 more | +60 | 0 replies | |
| 4/9 | clocksource: convert time-armada-370-xp to clk frameworkDocumentation/ arch/ arch/ +1 more | +8 | 0 replies | |
| 5/9 | clk: mvebu: add clock gating control provider for DTDocumentation/ drivers/ drivers/ +2 more | +257 | 0 replies | |
| 6/9 | ARM: dove: switch to DT clock providersarch/ arch/ arch/ +1 more | +72 | 0 replies | |
| 7/9 | ARM: Kirkwood: switch to DT clock providersarch/ arch/ arch/ +1 more | +84 | 0 replies | |
| 8/9 | clk: mvebu: armada 370/XP add clock gating control provider for DTDocumentation/ arch/ drivers/ | +105 | 0 replies | |
| 9/9 | arm: mvebu: armada 370/XP adding clock gating support: dt bindingarch/ arch/ | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/9] core, cpu and gated clocks for mvebu
This patchset combines code from Gregory Clement, Sebastian Hesselbarth and myself to implement core clks, cpu clock and gated clocks on Marvel MVEBU SoCs.
The Armada 370/XP core clock code is a refactored version of the already submitted and ACKed code from Gregory. It has been made to fit inside a framework developed by Sebastian which can handle all MVEBU SoCs. The Armada 370/XP SoCs have more core clocks than the older SoCs, and the framework needs to handle this. Rather than specify the clock frequencies in DT, a Sample At Reset register is used, which describes each core clock frequency.
Armada XP is an SMP processor, with each CPU having its own clock. Gregories code for this has been taken as is.
The Armada 370/XP clock source has been converted to the common clock framework.
Dove, Kirkword, and Armada 370/XP have the ability to gate clocks to various blocks. A clk-gate clock is created for each of the gateable clocks on Dove and Kirkwood and Armada 370/XP.
This code has been tested on:
Kirkwood based QNAP TS219
Armada 370 based mirabox
Armada XP based OpenBlocks
Dove based Cubox.
v1 -> v2
Moved some patch hunks into the correct patch
Added armada_ prefix to a number of symbols
renamed clk_gate to gate_clk
renamed *-clock-gating to *-gating-clock
Add gating-clock implementation for Armada 370/XP Add Tested-by from Gregory
Documented required clock property in armada-370-xp-timer.txt
Andrew Lunn (1):
ARM: Kirkwood: switch to DT clock providers
Gregory CLEMENT (5):
clk: mvebu: add armada-370-xp CPU specific clocks
clk: armada-370-xp: add support for clock framework
clocksource: convert time-armada-370-xp to clk framework
clk: mvebu: armada 370/XP add clock gating control provider for DT
arm: mvebu: armada 370/XP adding clock gating support: dt binding
Sebastian Hesselbarth (3):
clk: mvebu: add mvebu core clocks.
clk: mvebu: add clock gating control provider for DT
ARM: dove: switch to DT clock providers
.../bindings/arm/armada-370-xp-timer.txt | 1 + .../devicetree/bindings/clock/mvebu-core-clock.txt | 47 ++ .../devicetree/bindings/clock/mvebu-cpu-clock.txt | 21 + .../bindings/clock/mvebu-gated-clock.txt | 119 ++++ arch/arm/Kconfig | 1 + arch/arm/boot/dts/armada-370-db.dts | 4 - arch/arm/boot/dts/armada-370-xp.dtsi | 1 + arch/arm/boot/dts/armada-370.dtsi | 15 + arch/arm/boot/dts/armada-xp.dtsi | 49 ++ arch/arm/boot/dts/dove.dtsi | 20 + arch/arm/boot/dts/kirkwood.dtsi | 22 + arch/arm/mach-dove/Kconfig | 2 + arch/arm/mach-dove/common.c | 64 +- arch/arm/mach-kirkwood/Kconfig | 2 + arch/arm/mach-kirkwood/board-dt.c | 72 ++- arch/arm/mach-mvebu/Kconfig | 4 + arch/arm/mach-mvebu/armada-370-xp.c | 9 +- arch/arm/plat-orion/include/plat/common.h | 1 + drivers/clk/Kconfig | 2 + drivers/clk/Makefile | 1 + drivers/clk/mvebu/Kconfig | 8 + drivers/clk/mvebu/Makefile | 3 + drivers/clk/mvebu/clk-core.c | 675 ++++++++++++++++++++ drivers/clk/mvebu/clk-core.h | 18 + drivers/clk/mvebu/clk-cpu.c | 155 +++++ drivers/clk/mvebu/clk-cpu.h | 18 + drivers/clk/mvebu/clk-gating-ctrl.c | 238 +++++++ drivers/clk/mvebu/clk.c | 37 ++ drivers/clocksource/time-armada-370-xp.c | 11 +- include/linux/clk/mvebu.h | 23 + 30 files changed, 1605 insertions(+), 38 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/mvebu-core-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/mvebu-cpu-clock.txt create mode 100644 Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt create mode 100644 drivers/clk/mvebu/Kconfig create mode 100644 drivers/clk/mvebu/Makefile create mode 100644 drivers/clk/mvebu/clk-core.c create mode 100644 drivers/clk/mvebu/clk-core.h create mode 100644 drivers/clk/mvebu/clk-cpu.c create mode 100644 drivers/clk/mvebu/clk-cpu.h create mode 100644 drivers/clk/mvebu/clk-gating-ctrl.c create mode 100644 drivers/clk/mvebu/clk.c create mode 100644 include/linux/clk/mvebu.h
Signature · 1 line
1.7.10.4