Message ID | 20190731084019.8451-1-narmstrong@baylibre.com (mailing list archive) |
---|---|
Headers | show |
Series | clk: meson: g12a: add support for DVFS | expand |
On Wed 31 Jul 2019 at 10:40, Neil Armstrong <narmstrong@baylibre.com> wrote: > > Neil Armstrong (4): > clk: core: introduce clk_hw_set_parent() > clk: meson: add g12a cpu dynamic divider driver > 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/Kconfig | 5 + > drivers/clk/meson/Makefile | 1 + > drivers/clk/meson/clk-cpu-dyndiv.c | 73 ++++ > drivers/clk/meson/clk-cpu-dyndiv.h | 20 + > drivers/clk/meson/g12a.c | 535 +++++++++++++++++++++++--- > drivers/clk/meson/g12a.h | 1 - > include/dt-bindings/clock/g12a-clkc.h | 1 + > include/linux/clk-provider.h | 1 + > 9 files changed, 588 insertions(+), 55 deletions(-) > create mode 100644 drivers/clk/meson/clk-cpu-dyndiv.c > create mode 100644 drivers/clk/meson/clk-cpu-dyndiv.h Patchset looks good to me. Waiting for Stephen's ack on patch #1 to apply it. > > -- > 2.22.0
Neil Armstrong <narmstrong@baylibre.com> writes: > 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 nit: this doesn't apply to v5.3-rc, but appears to apply on clk-meson/v5.4/drivers, so it appears to be dependent on the cleanups from Alex. Kevin
On Thu 08 Aug 2019 at 14:18, Kevin Hilman <khilman@baylibre.com> wrote: > Neil Armstrong <narmstrong@baylibre.com> writes: > >> 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 > > nit: this doesn't apply to v5.3-rc, but appears to apply on > clk-meson/v5.4/drivers, so it appears to be dependent on the cleanups > from Alex. Indeed, Applied on top of this. > > Kevin
Jerome Brunet <jbrunet@baylibre.com> writes: > On Thu 08 Aug 2019 at 14:18, Kevin Hilman <khilman@baylibre.com> wrote: > >> Neil Armstrong <narmstrong@baylibre.com> writes: >> >>> 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 >> >> nit: this doesn't apply to v5.3-rc, but appears to apply on >> clk-meson/v5.4/drivers, so it appears to be dependent on the cleanups >> from Alex. > > Indeed, Applied on top of this. > Please let me know when you have a stable tag for this. I wont' be able to apply the odroid-n2 DVFS patch until I have this. Kevin