devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/7] rockchip: clk: improve GATE_LINK support
@ 2023-12-13 18:46 Sebastian Reichel
  2023-12-13 18:46 ` [PATCH v7 1/7] clk: rockchip: rk3588: fix CLK_NR_CLKS usage Sebastian Reichel
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Sebastian Reichel @ 2023-12-13 18:46 UTC (permalink / raw)
  To: Elaine Zhang, Michael Turquette, Stephen Boyd, linux-clk
  Cc: Kever Yang, Heiko Stuebner, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, huangtao, andy.yan, devicetree, linux-rockchip,
	Sebastian Reichel, kernel

Hi,

I've send this as v7 for the series from Elaine [0], since it kinds of is. These
patches are written from scratch, though. There are two parts:

part 1:
Elaine's series used to contain patches for the VO1GRF handling, but they were
dropped at some point because of the CLK_NR_CLKS feedback from the DT
maintainers. I added some code, that should hopefully fix everyones concerns by
figuring out the right number at runtime. I also moved the correct handling of
pclk_vo0grf/pclk_vo1grf before proper handling of GATE_LINK clocks, so that it
can be merged ASAP. These patches are needed for HDMI RX/TX support on RK3588
and should not be blocked by the GATE_LINK discussion.

part 2:
For proper GATE_LINK support I tried implementing the suggestion from Stephen
Boyd to use clk PM operations by creating MFD dynamically. This required some
restructuring, since CLK_OF_DECLARE() is called before devices are available.
All of this can be found in the last patch of this series.

[0] https://lore.kernel.org/linux-clk/20231110020358.12840-1-zhangqing@rock-chips.com/

Greetings,

-- Sebstian

Sebastian Reichel (7):
  clk: rockchip: rk3588: fix CLK_NR_CLKS usage
  dt-bindings: clock: rk3588: drop CLK_NR_CLKS
  dt-bindings: clock: rk3588: add missing PCLK_VO1GRF
  clk: rockchip: rk3588: fix pclk_vo0grf and pclk_vo1grf
  clk: rockchip: rk3588: fix indent
  clk: rockchip: rk3588: use linked clock ID for GATE_LINK
  clk: rockchip: implement proper GATE_LINK support

 drivers/clk/rockchip/clk-rk3588.c             | 163 ++++++++----------
 drivers/clk/rockchip/clk.c                    |  85 ++++++++-
 drivers/clk/rockchip/clk.h                    |  18 ++
 .../dt-bindings/clock/rockchip,rk3588-cru.h   |   3 +-
 4 files changed, 178 insertions(+), 91 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2023-12-14  8:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13 18:46 [PATCH v7 0/7] rockchip: clk: improve GATE_LINK support Sebastian Reichel
2023-12-13 18:46 ` [PATCH v7 1/7] clk: rockchip: rk3588: fix CLK_NR_CLKS usage Sebastian Reichel
2023-12-14  8:42   ` Tao Huang
2023-12-13 18:46 ` [PATCH v7 2/7] dt-bindings: clock: rk3588: drop CLK_NR_CLKS Sebastian Reichel
2023-12-14  8:01   ` Krzysztof Kozlowski
2023-12-13 18:46 ` [PATCH v7 3/7] dt-bindings: clock: rk3588: add missing PCLK_VO1GRF Sebastian Reichel
2023-12-14  8:01   ` Krzysztof Kozlowski
2023-12-13 18:46 ` [PATCH v7 4/7] clk: rockchip: rk3588: fix pclk_vo0grf and pclk_vo1grf Sebastian Reichel
2023-12-13 18:46 ` [PATCH v7 5/7] clk: rockchip: rk3588: fix indent Sebastian Reichel
2023-12-13 18:46 ` [PATCH v7 6/7] clk: rockchip: rk3588: use linked clock ID for GATE_LINK Sebastian Reichel
2023-12-13 18:46 ` [PATCH v7 7/7] clk: rockchip: implement proper GATE_LINK support Sebastian Reichel

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