All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] clk: meson: g12a: add support for DVFS
@ 2019-07-29 13:16 ` Neil Armstrong
  0 siblings, 0 replies; 27+ messages in thread
From: Neil Armstrong @ 2019-07-29 13:16 UTC (permalink / raw)
  To: sboyd, jbrunet
  Cc: Neil Armstrong, linux-clk, linux-kernel, linux-amlogic, linux-arm-kernel

The G12A/G12B Socs embeds a specific clock tree for each CPU cluster :
cpu_clk / cpub_clk
|   \- cpu_clk_dyn
|      |  \- cpu_clk_premux0
|      |        |- cpu_clk_postmux0
|      |        |    |- cpu_clk_dyn0_div
|      |        |    \- xtal/fclk_div2/fclk_div3
|      |        \- xtal/fclk_div2/fclk_div3
|      \- cpu_clk_premux1
|            |- cpu_clk_postmux1
|            |    |- cpu_clk_dyn1_div
|            |    \- xtal/fclk_div2/fclk_div3
|            \- xtal/fclk_div2/fclk_div3
\ sys_pll / sys1_pll

This patchset adds notifiers on cpu_clk / cpub_clk, cpu_clk_dyn,
cpu_clk_premux0 and sys_pll / sys1_pll to permit change frequency of
the CPU clock in a safe way as recommended by the vendor Documentation
and reference code.

This patchset :
- introduces needed core and meson clk changes
- adds the clock notifiers

Dependencies:
- None

This patchset is split from the v3 RFC/RFC patchset at [3]

Changes from RFT/RFC v3 at [3]:
- Rebased on clk-meson v5.4/drivers tree with Alexandre's patches
- Removed the eeclk setup() callback, moved to a toplevel g12a-data struct

Changes since RFT/RFC v2 at [2]:
- Rebased on clk-meson v5.3/drivers trees
- added Kevin's review tags

Changes since RFT/RFC v1 at [1]:
- Added EXPORT_SYMBOL_GPL() to clk_hw_set_parent
- Added missing static to g12b_cpub_clk_mux0_div_ops and g12a_cpu_clk_mux_nb
- Simplified g12a_cpu_clk_mux_notifier_cb() without switch/case
- Fixed typo in "this the current path" in g12a.c
- Fixed various checkpatch errors

[1] https://patchwork.kernel.org/cover/11006929/
[2] https://patchwork.kernel.org/cover/11017273/
[3] https://patchwork.kernel.org/cover/11025309/

Neil Armstrong (4):
  clk: core: introduce clk_hw_set_parent()
  clk: meson: regmap: export regmap_div ops functions
  clk: meson: g12a: add notifiers to handle cpu clock change
  clk: meson: g12a: expose CPUB clock ID for G12B

 drivers/clk/clk.c                     |   6 +
 drivers/clk/meson/clk-regmap.c        |  10 +-
 drivers/clk/meson/clk-regmap.h        |   5 +
 drivers/clk/meson/g12a.c              | 567 +++++++++++++++++++++++---
 include/dt-bindings/clock/g12a-clkc.h |   1 +
 include/linux/clk-provider.h          |   1 +
 6 files changed, 540 insertions(+), 50 deletions(-)

-- 
2.22.0


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

end of thread, other threads:[~2019-07-30 15:27 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-29 13:16 [PATCH 0/4] clk: meson: g12a: add support for DVFS Neil Armstrong
2019-07-29 13:16 ` Neil Armstrong
2019-07-29 13:16 ` Neil Armstrong
2019-07-29 13:16 ` [PATCH 1/4] clk: core: introduce clk_hw_set_parent() Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-29 13:16 ` [PATCH 2/4] clk: meson: regmap: export regmap_div ops functions Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-30 15:15   ` Neil Armstrong
2019-07-30 15:15     ` Neil Armstrong
2019-07-30 15:15     ` Neil Armstrong
2019-07-29 13:16 ` [PATCH 3/4] clk: meson: g12a: add notifiers to handle cpu clock change Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-30  8:37   ` Jerome Brunet
2019-07-30  8:37     ` Jerome Brunet
2019-07-30  8:37     ` Jerome Brunet
2019-07-30 15:14     ` Neil Armstrong
2019-07-30 15:14       ` Neil Armstrong
2019-07-30 15:14       ` Neil Armstrong
2019-07-29 13:16 ` [PATCH 4/4] clk: meson: g12a: expose CPUB clock ID for G12B Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-29 13:16   ` Neil Armstrong
2019-07-30 15:15   ` Neil Armstrong
2019-07-30 15:15     ` Neil Armstrong
2019-07-30 15:15     ` Neil Armstrong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.