linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/4] clk: qcom: msm8996: add support for the CBF clock
@ 2023-05-12  0:13 Dmitry Baryshkov
  2023-05-12  0:13 ` [PATCH v6 1/4] dt-bindings: interconnect/msm8996-cbf: add defines to be used by CBF Dmitry Baryshkov
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Dmitry Baryshkov @ 2023-05-12  0:13 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Stephen Boyd,
	Michael Turquette, Rob Herring, Krzysztof Kozlowski, Taniya Das,
	Georgi Djakov
  Cc: linux-arm-msm, linux-clk, devicetree, Yassine Oudjana, linux-pm

On MSM8996 two CPU clusters are interconnected using the Core Bus
Fabric (CBF). In order for the CPU clusters to function properly, it
should be clocked following the core's frequencies to provide adequate
bandwidth.

Register CBF as a clock (required for CPU to boot) and add a tiny
interconnect layer on top of it to let cpufreq/opp scale the CBF clock.

Changes since v5:
- Fixed !INTERCONNECT warning (Konrad)
- Fixed the sync_state wrapper for !INTERCONNECT case

Changes since v4:
- Fixed typos in commit messages

Changes since v3:
- Dropped merged patches
- Moved interconnect shim to drivers/interconnect/icc-clk.c

Changes since v2:
- Added interconnect-related bindings
- Switched CPU and CBF clocks to RPM_SMD_XO_A_CLK_SRC

Changes since v1:
- Relicensed schema to GPL-2.0 + BSD-2-Clause (Krzysztof)
- Changed clock driver to use parent_hws (Konrad)
- Fixed indentation in CBF clock driver (Konrad)
- Changed MODULE_LICENSE of CBF clock driver to GPL from GPL-v2
- Switched CBF to use RPM_SMD_XO_CLK_SRC as one of the parents
- Enabled RPM_SMD_XO_CLK_SRC on msm8996 platform and switch to it from
  RPM_SMD_BB_CLK1 clock

Dmitry Baryshkov (4):
  dt-bindings: interconnect/msm8996-cbf: add defines to be used by CBF
  interconnect: add clk-based icc provider support
  clk: qcom: cbf-msm8996: scale CBF clock according to the CPUfreq
  arm64: dts: qcom: msm8996: scale CBF clock according to the CPUfreq

 arch/arm64/boot/dts/qcom/msm8996.dtsi         |  51 ++++++
 drivers/clk/qcom/Kconfig                      |   1 +
 drivers/clk/qcom/clk-cbf-8996.c               |  60 ++++++-
 drivers/interconnect/Kconfig                  |   6 +
 drivers/interconnect/Makefile                 |   2 +
 drivers/interconnect/icc-clk.c                | 168 ++++++++++++++++++
 .../interconnect/qcom,msm8996-cbf.h           |  12 ++
 include/linux/interconnect-clk.h              |  22 +++
 8 files changed, 321 insertions(+), 1 deletion(-)
 create mode 100644 drivers/interconnect/icc-clk.c
 create mode 100644 include/dt-bindings/interconnect/qcom,msm8996-cbf.h
 create mode 100644 include/linux/interconnect-clk.h

-- 
2.39.2


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

end of thread, other threads:[~2023-07-14  5:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-12  0:13 [PATCH v6 0/4] clk: qcom: msm8996: add support for the CBF clock Dmitry Baryshkov
2023-05-12  0:13 ` [PATCH v6 1/4] dt-bindings: interconnect/msm8996-cbf: add defines to be used by CBF Dmitry Baryshkov
2023-05-12  0:13 ` [PATCH v6 2/4] interconnect: add clk-based icc provider support Dmitry Baryshkov
2023-05-13  8:59   ` Konrad Dybcio
2023-05-19 17:30   ` Nick Desaulniers
2023-05-19 17:32     ` Nick Desaulniers
2023-05-19 19:26       ` Dmitry Baryshkov
2023-05-12  0:13 ` [PATCH v6 3/4] clk: qcom: cbf-msm8996: scale CBF clock according to the CPUfreq Dmitry Baryshkov
2023-06-10  0:18   ` Bjorn Andersson
2023-06-10  7:26     ` Georgi Djakov
2023-05-12  0:13 ` [PATCH v6 4/4] arm64: dts: qcom: msm8996: " Dmitry Baryshkov
2023-07-14  5:33   ` (subset) " Bjorn Andersson
2023-07-14  5:33 ` (subset) [PATCH v6 0/4] clk: qcom: msm8996: add support for the CBF clock Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).