phone-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] msm8998 clock-controller cleanup
@ 2021-09-11 12:13 Marijn Suijten
  2021-09-11 12:13 ` [PATCH 1/8] clk: qcom: gcc-msm8998: Move parent names and mapping below GPLLs Marijn Suijten
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Marijn Suijten @ 2021-09-11 12:13 UTC (permalink / raw)
  To: phone-devel
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Konrad Dybcio, Martin Botka, Jami Kettunen, Marijn Suijten,
	Andy Gross, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Rob Herring, Taniya Das, linux-arm-msm, linux-clk, devicetree,
	linux-kernel

Clean up the clock-controllers for msm8998 similar to sdm660 by:
- Using parent_data/hws for internal relations;
- Removing the "xo" fixed-factor clock that only existed for drivers
  that rely on this global name (the DT only provides "xo_board");
- Using ARRAY_SIZE for num_parents instead of hardcoding array length;
- Removing unnecessary fallbacks to global names of parent clocks, these
  are already specified in the DT;
- Updating DT-bindings to reflect the clocks used by gcc.

Note that this should land some time after [1] to give users time to
update their firmware (DT) before updating the kernel.  Additionally [2]
should make it in before DSI PLL nodes are added.

[1]: https://lore.kernel.org/linux-arm-msm/20210911120101.248476-1-marijn.suijten@somainline.org/
[2]: https://lore.kernel.org/linux-arm-msm/20210830182445.167527-2-marijn.suijten@somainline.org/

Marijn Suijten (8):
  clk: qcom: gcc-msm8998: Move parent names and mapping below GPLLs
  clk: qcom: gcc-msm8998: Use parent_data/hws for internal clock
    relations
  clk: qcom: gcc-msm8998: Remove transient global "xo" clock
  clk: qcom: gpucc-msm8998: Use ARRAY_SIZE for num_parents
  clk: qcom: mmcc-msm8998: Use ARRAY_SIZE for num_parents
  dt-bindings: clocks: qcom,gcc-msm8998: Reflect actually referenced
    clks
  clk: qcom: gpucc-msm8998: Remove unnecessary fallbacks to global
    clocks
  clk: qcom: mmcc-msm8998: Remove unnecessary fallbacks to global clocks

 .../bindings/clock/qcom,gcc-msm8998.yaml      |  26 +-
 drivers/clk/qcom/gcc-msm8998.c                | 705 ++++++++++--------
 drivers/clk/qcom/gpucc-msm8998.c              |  13 +-
 drivers/clk/qcom/mmcc-msm8998.c               | 183 +++--
 4 files changed, 475 insertions(+), 452 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2021-09-14 21:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 12:13 [PATCH 0/8] msm8998 clock-controller cleanup Marijn Suijten
2021-09-11 12:13 ` [PATCH 1/8] clk: qcom: gcc-msm8998: Move parent names and mapping below GPLLs Marijn Suijten
2021-09-14 21:41   ` Stephen Boyd
2021-09-11 12:13 ` [PATCH 2/8] clk: qcom: gcc-msm8998: Use parent_data/hws for internal clock relations Marijn Suijten
2021-09-14 21:41   ` Stephen Boyd
2021-09-11 12:13 ` [PATCH 3/8] clk: qcom: gcc-msm8998: Remove transient global "xo" clock Marijn Suijten
2021-09-14 21:42   ` Stephen Boyd
2021-09-11 12:13 ` [PATCH 4/8] clk: qcom: gpucc-msm8998: Use ARRAY_SIZE for num_parents Marijn Suijten
2021-09-14 21:42   ` Stephen Boyd
2021-09-11 12:13 ` [PATCH 5/8] clk: qcom: mmcc-msm8998: " Marijn Suijten
2021-09-14 21:42   ` Stephen Boyd
2021-09-11 12:13 ` [PATCH 6/8] dt-bindings: clocks: qcom,gcc-msm8998: Reflect actually referenced clks Marijn Suijten
2021-09-14 21:42   ` Stephen Boyd
2021-09-11 12:13 ` [PATCH 7/8] clk: qcom: gpucc-msm8998: Remove unnecessary fallbacks to global clocks Marijn Suijten
2021-09-14 21:42   ` Stephen Boyd
2021-09-11 12:13 ` [PATCH 8/8] clk: qcom: mmcc-msm8998: " Marijn Suijten
2021-09-14 21:42   ` Stephen Boyd

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).