clk: samsung: Add CPU clocks for Exynos850
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest15 patches 15 repliesApplied
- v215 patches 0 repliesSuperseded
- v116 patches 11 repliesSuperseded
Changes in v3 from the cover letter
- Merged struct exynos850_cpuclk_regs fields into struct exynos_cpuclk_regs ("one-size-fits-all" approach)
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | dt-bindings: clock: exynos850: Add CMU_CPUCLK0 and CMU_CPUCL1Documentation/ include/ | +96 | 1 reply | |
| 2/15 | clk: samsung: Improve clk-cpu.c styledrivers/ | +33 | 1 reply | |
| 3/15 | clk: samsung: Pull struct exynos_cpuclk into clk-cpu.cdrivers/ drivers/ | +35 | 1 reply | |
| 4/15 | clk: samsung: Reduce params count in exynos_register_cpu_clock()drivers/ | +23 | 1 reply | |
| 5/15 | clk: samsung: Use single CPU clock notifier callback for all chipsdrivers/ | +28 | 1 reply | |
| 6/15 | clk: samsung: Group CPU clock functions by chipdrivers/ | +61 | 1 reply | |
| 7/15 | clk: samsung: Pass actual CPU clock registers base to CPU_CLK()drivers/ drivers/ drivers/ +3 more | +40 | 1 reply | |
| 8/15 | clk: samsung: Pass register layout type explicitly to CLK_CPU()drivers/ drivers/ drivers/ +5 more | +29 | 1 reply | |
| 9/15 | clk: samsung: Keep CPU clock chip specific data in a dedicated structdrivers/ | +26 | 1 reply | |
| 10/15 | clk: samsung: Keep register offsets in chip specific structuredrivers/ | +86 | 2 replies | |
| 11/15 | clk: samsung: Pass mask to wait_until_mux_stable()drivers/ | +7 | 1 reply | |
| 12/15 | clk: samsung: Add CPU clock support for Exynos850drivers/ drivers/ | +181 | 1 reply | |
| 13/15 | clk: samsung: Implement manual PLL control for ARM64 SoCsdrivers/ drivers/ | +33 | 2 replies | |
| 14/15 | clk: samsung: exynos850: Add CMU_CPUCL0 and CMU_CPUCL1drivers/ | +439 | 0 replies | |
| 15/15 | arm64: dts: exynos: Add CPU clocks for Exynos850arch/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 00/15] clk: samsung: Add CPU clocks for Exynos850
The series implements CPU clock support for Exynos850, adds CPU CMUs to the clock driver and enables those in dts. This is the first step towards cpufreq implementation.
If possible, all patches should go through Krzysztof's tree. As inter-series dependencies go:
* All driver changes (patch 02..14) must be taken together following the order established in this series
* Patch 15 (dts changes) depends on patch 01 (bindings additions)
* Patch 14 (driver changes) depends on patch 01 (bindings additions)
The series was tested on E850-96 board, via DebugFS with CLOCK_ALLOW_WRITE_DEBUGFS enabled, by setting different CPU clock rates, like this:
# cd /sys/kernel/debug/clk/cluster0_clk/ # cat clk_rate 1053000000 # echo 10000000 > clk_rate # cat clk_rate 130000000
Of course, DVFS/cpufreq is not implemented yet, so the CPU can't be overclocked too much right now, and the cpufreq interface is not available too. As per the TRM, the CPU operates at a voltage level of 0.65 V, 0.75 V, 0.85 V and 1.05 V. When the voltage is 0.85 V, A55 quad-core operates at 1.6 GHz and CoreSight at 200 MHz.
To check the actual frequency, the "perf" tool was used:
# perf stat sleep 1
And to check that on a particular CPU core:
# taskset -c 4 perf stat sleep 1
Some takeaways:
* Max functional frequency right now is 1.586 GHz
* 1.742 GHz or more leads to the system freeze, as it requires more voltage to be operational
* Max possible frequency: 2.210 GHz
* The lowest possible frequency: 130 MHz
* Default boot up frequency: 1.053 GHz
Changes in v3:
- Merged struct exynos850_cpuclk_regs fields into struct exynos_cpuclk_regs ("one-size-fits-all" approach)
Changes in v2:
- Removed confusing "breakup by patch" list from patch #0 commit message
- Dropped the patch for making clk.h a single included header
- Rebased the series on top of the latest linux-next
- See per-patch changes in each patch's changelog
Sam Protsenko (15):
dt-bindings: clock: exynos850: Add CMU_CPUCLK0 and CMU_CPUCL1
clk: samsung: Improve clk-cpu.c style
clk: samsung: Pull struct exynos_cpuclk into clk-cpu.c
clk: samsung: Reduce params count in exynos_register_cpu_clock()
clk: samsung: Use single CPU clock notifier callback for all chips
clk: samsung: Group CPU clock functions by chip
clk: samsung: Pass actual CPU clock registers base to CPU_CLK()
clk: samsung: Pass register layout type explicitly to CLK_CPU()
clk: samsung: Keep CPU clock chip specific data in a dedicated struct
clk: samsung: Keep register offsets in chip specific structure
clk: samsung: Pass mask to wait_until_mux_stable()
clk: samsung: Add CPU clock support for Exynos850
clk: samsung: Implement manual PLL control for ARM64 SoCs
clk: samsung: exynos850: Add CMU_CPUCL0 and CMU_CPUCL1
arm64: dts: exynos: Add CPU clocks for Exynos850
.../clock/samsung,exynos850-clock.yaml | 42 ++ arch/arm64/boot/dts/exynos/exynos850.dtsi | 26 + drivers/clk/samsung/clk-cpu.c | 556 +++++++++++++----- drivers/clk/samsung/clk-cpu.h | 53 +- drivers/clk/samsung/clk-exynos-arm64.c | 44 +- drivers/clk/samsung/clk-exynos3250.c | 2 +- drivers/clk/samsung/clk-exynos4.c | 9 +- drivers/clk/samsung/clk-exynos5250.c | 5 +- drivers/clk/samsung/clk-exynos5420.c | 16 +- drivers/clk/samsung/clk-exynos5433.c | 10 +- drivers/clk/samsung/clk-exynos850.c | 440 +++++++++++++- drivers/clk/samsung/clk.h | 9 +- include/dt-bindings/clock/exynos850.h | 54 ++ 13 files changed, 1034 insertions(+), 232 deletions(-)
Signature · 1 line
2.39.2