devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Add Loongson-2k0500 and Loongson-2k2000 clock support
@ 2024-04-11  2:58 Binbin Zhou
  2024-04-11  2:58 ` [PATCH v3 1/6] dt-bindings: clock: Add Loongson-2K expand clock index Binbin Zhou
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Binbin Zhou @ 2024-04-11  2:58 UTC (permalink / raw)
  To: Binbin Zhou, Huacai Chen, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yinbo Zhu
  Cc: Huacai Chen, loongson-kernel, linux-clk, devicetree, Xuerui Wang,
	loongarch, Binbin Zhou

Hi all:

As we know, the Loongson-2K family of SoCs (ls2k0500/ls2k1000/ls2k2000)
have a similar clock structure, and I support them to be configured with
different parameters (e.g., register offsets, etc.).

To make it easier to add support for different SoCs, I refactored the
original driver to make the whole driver as understandable as possible.

Briefly, I have divided all clocks into three categories according to
their properties and their parent clocks: Independent PLLs, clocks based
on frequency scales, and clock dividers.

Thanks.

----
V3:
- Remove the dts-related patches and update dts at once after all relevant
  drivers are complete.
patch(1/6):
 - Drop unsuitable comments.

Link to V2:
https://lore.kernel.org/all/cover.1711504700.git.zhoubinbin@loongson.cn/

V2:
patch(1/8):
 - Drop LOONGSON2_CLK_END, for it is not a binding.
patch(1/8)(3/8)(5/8):
 - Add Acked-by tag from Conor, Thanks.

Link to V1:
https://lore.kernel.org/all/cover.1710926402.git.zhoubinbin@loongson.cn/

Binbin Zhou (6):
  dt-bindings: clock: Add Loongson-2K expand clock index
  clk: clk-loongson2: Refactor driver for adding new platforms
  dt-bindings: clock: loongson2: Add Loongson-2K0500 compatible
  clk: clk-loongson2: Add Loongson-2K0500 clock support
  dt-bindings: clock: loongson2: Add Loongson-2K2000 compatible
  clk: clk-loongson2: Add Loongson-2K2000 clock support

 .../bindings/clock/loongson,ls2k-clk.yaml     |   4 +-
 drivers/clk/clk-loongson2.c                   | 549 ++++++++++--------
 include/dt-bindings/clock/loongson,ls2k-clk.h |  54 +-
 3 files changed, 329 insertions(+), 278 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-04-11  7:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11  2:58 [PATCH v3 0/6] Add Loongson-2k0500 and Loongson-2k2000 clock support Binbin Zhou
2024-04-11  2:58 ` [PATCH v3 1/6] dt-bindings: clock: Add Loongson-2K expand clock index Binbin Zhou
2024-04-11  7:23   ` Stephen Boyd
2024-04-11  2:58 ` [PATCH v3 2/6] clk: clk-loongson2: Refactor driver for adding new platforms Binbin Zhou
2024-04-11  7:28   ` Stephen Boyd
2024-04-11  2:58 ` [PATCH v3 3/6] dt-bindings: clock: loongson2: Add Loongson-2K0500 compatible Binbin Zhou
2024-04-11  7:29   ` Stephen Boyd
2024-04-11  2:58 ` [PATCH v3 4/6] clk: clk-loongson2: Add Loongson-2K0500 clock support Binbin Zhou
2024-04-11  7:29   ` Stephen Boyd
2024-04-11  2:58 ` [PATCH v3 5/6] dt-bindings: clock: loongson2: Add Loongson-2K2000 compatible Binbin Zhou
2024-04-11  7:29   ` Stephen Boyd
2024-04-11  2:58 ` [PATCH v3 6/6] clk: clk-loongson2: Add Loongson-2K2000 clock support Binbin Zhou
2024-04-11  7:29   ` Stephen Boyd
2024-04-11  4:31 ` [PATCH v3 0/6] Add Loongson-2k0500 and Loongson-2k2000 " Huacai Chen

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