linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Add clock support for Loongson 2K0300 SoC
@ 2025-08-05 15:01 Yao Zi
  2025-08-05 15:01 ` [PATCH v3 1/8] dt-bindings: clock: loongson2: Add Loongson 2K0300 compatible Yao Zi
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Yao Zi @ 2025-08-05 15:01 UTC (permalink / raw)
  To: Yinbo Zhu, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Huacai Chen, WANG Xuerui
  Cc: linux-clk, devicetree, linux-kernel, loongarch, Mingcong Bai,
	Kexy Biscuit, Yao Zi

This series adds support for Loongson 2K0300's clock controller.
Loongson 2 clock driver is prepared to support more clock variants and
its flexibility is improved. All clock hardwares except the output one
for GMAC module are then defined.

A clock tree dump could be obtained here[1]. This series depends on v3
of series "Initial support for CTCISZ Forever Pi"[2] to apply.

Krzysztof, sorry I don't fully understand your comments in v2, I've
asked once again later[3] but got no reply, thus sent this new version
with my current understanding. I'm willing to hear from you more on the
binding issue, thanks.

[1]: https://gist.github.com/ziyao233/f7c4edcfbc1d6b325c71117af7233cc2
[2]: https://lore.kernel.org/all/20250523095408.25919-1-ziyao@disroot.org/
[3]: https://lore.kernel.org/all/aHB3Wvu-CVlYzhU7@pie.lan/

Changed from v2:
- Disallow clock-names property for loongson,2k0300-clk's binding, avoid
  overriding content of clock-names property within an allOf block
- Correct clock-controller's MMIO-region size in SoC devicetree
- Link to v2: https://lore.kernel.org/all/20250617162426.12629-1-ziyao@disroot.org/

Changed from v1:
- Fold loongson,ls2k0300-clk.yaml into loongson,ls2k-clk.yaml
- Include the new binding header in MAINTAINERS
- Link to v1: https://lore.kernel.org/all/20250523104552.32742-1-ziyao@disroot.org/

Yao Zi (8):
  dt-bindings: clock: loongson2: Add Loongson 2K0300 compatible
  clk: loongson2: Allow specifying clock flags for gate clock
  clk: loongson2: Support scale clocks with an alternative mode
  clk: loongson2: Allow zero divisors for dividers
  clk: loongson2: Avoid hardcoding firmware name of the reference clock
  clk: loongson2: Add clock definitions for Loongson 2K0300 SoC
  LoongArch: dts: Add clock tree for Loongson 2K0300
  LoongArch: dts: Remove clock-frquency from UART0 of CTCISZ Forever Pi

 .../bindings/clock/loongson,ls2k-clk.yaml     |  21 ++-
 MAINTAINERS                                   |   1 +
 .../dts/loongson-2k0300-ctcisz-forever-pi.dts |   1 -
 arch/loongarch/boot/dts/loongson-2k0300.dtsi  |  16 ++-
 drivers/clk/clk-loongson2.c                   | 124 +++++++++++++++---
 .../dt-bindings/clock/loongson,ls2k0300-clk.h |  54 ++++++++
 6 files changed, 189 insertions(+), 28 deletions(-)
 create mode 100644 include/dt-bindings/clock/loongson,ls2k0300-clk.h

-- 
2.50.1


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

end of thread, other threads:[~2025-08-08 12:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-05 15:01 [PATCH v3 0/8] Add clock support for Loongson 2K0300 SoC Yao Zi
2025-08-05 15:01 ` [PATCH v3 1/8] dt-bindings: clock: loongson2: Add Loongson 2K0300 compatible Yao Zi
2025-08-06  8:01   ` Krzysztof Kozlowski
2025-08-06  8:36   ` Huacai Chen
2025-08-06 12:30     ` Yao Zi
2025-08-07  4:44       ` Huacai Chen
2025-08-07 10:04         ` Yanteng Si
2025-08-05 15:01 ` [PATCH v3 2/8] clk: loongson2: Allow specifying clock flags for gate clock Yao Zi
2025-08-05 15:01 ` [PATCH v3 3/8] clk: loongson2: Support scale clocks with an alternative mode Yao Zi
2025-08-07 11:18   ` Huacai Chen
2025-08-08  3:24     ` Yao Zi
2025-08-08 12:58       ` Huacai Chen
2025-08-05 15:01 ` [PATCH v3 4/8] clk: loongson2: Allow zero divisors for dividers Yao Zi
2025-08-05 15:01 ` [PATCH v3 5/8] clk: loongson2: Avoid hardcoding firmware name of the reference clock Yao Zi
2025-08-05 15:01 ` [PATCH v3 6/8] clk: loongson2: Add clock definitions for Loongson 2K0300 SoC Yao Zi
2025-08-07 11:21   ` Huacai Chen
2025-08-08  3:13     ` Yao Zi
2025-08-05 15:01 ` [PATCH v3 7/8] LoongArch: dts: Add clock tree for Loongson 2K0300 Yao Zi
2025-08-05 15:01 ` [PATCH v3 8/8] LoongArch: dts: Remove clock-frquency from UART0 of CTCISZ Forever Pi Yao Zi

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