All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] Add clock support for SpacemiT K3 SoC
@ 2025-12-11  1:19 ` Yixun Lan
  0 siblings, 0 replies; 20+ messages in thread
From: Yixun Lan @ 2025-12-11  1:19 UTC (permalink / raw)
  To: Stephen Boyd, Michael Turquette, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Haylen Chu, Inochi Amaoto, linux-clk, devicetree, linux-riscv,
	spacemit, linux-kernel, Yixun Lan

I'm marking this series as RFC for now, as the driver is based on vendor code,
and only tested on FPGA, the production SoC chip isn't ready yet.

The SpacemiT K3 SoC's CCU (clock control unit) is similar to old K1 generation,
the clock and reset functionalities are distributed across several IP blocks,
therefore, we model them as several clock tree accordingly.

The PLL clocks has changed register setting layout, so introduce a PLLA type.
Some gate clocks has inverted enable/disable logic which writing 1 to disable,
while writing 0 to enable.

Signed-off-by: Yixun Lan <dlan@gentoo.org>
---
Yixun Lan (4):
      dt-bindings: soc: spacemit: add k3 syscon compatible
      clk: spacemit: ccu_mix: add inverted enable gate clock
      clk: spacemit: ccu_pll: add plla type clock
      clk: spacemit: k3: add the clock tree

 .../devicetree/bindings/clock/spacemit,k1-pll.yaml |    9 +-
 .../bindings/soc/spacemit/spacemit,k1-syscon.yaml  |   13 +-
 drivers/clk/spacemit/Kconfig                       |    6 +
 drivers/clk/spacemit/Makefile                      |   11 +-
 drivers/clk/spacemit/ccu-k3.c                      | 1641 ++++++++++++++++++++
 drivers/clk/spacemit/ccu_common.h                  |    1 +
 drivers/clk/spacemit/ccu_mix.c                     |   12 +-
 drivers/clk/spacemit/ccu_mix.h                     |   12 +
 drivers/clk/spacemit/ccu_pll.c                     |  117 ++
 drivers/clk/spacemit/ccu_pll.h                     |   57 +-
 include/dt-bindings/clock/spacemit,k3-clocks.h     |  390 +++++
 include/soc/spacemit/ccu.h                         |   18 +
 include/soc/spacemit/k1-syscon.h                   |   12 +-
 include/soc/spacemit/k3-syscon.h                   |  273 ++++
 14 files changed, 2539 insertions(+), 33 deletions(-)
---
base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449
change-id: 20251204-k3-clk-db2018389ae3

Best regards,
-- 
Yixun Lan


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

end of thread, other threads:[~2025-12-18  7:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-11  1:19 [PATCH RFC 0/4] Add clock support for SpacemiT K3 SoC Yixun Lan
2025-12-11  1:19 ` Yixun Lan
2025-12-11  1:19 ` [PATCH RFC 1/4] dt-bindings: soc: spacemit: add k3 syscon compatible Yixun Lan
2025-12-11  1:19   ` Yixun Lan
2025-12-15 16:37   ` Rob Herring (Arm)
2025-12-15 16:37     ` Rob Herring (Arm)
2025-12-11  1:19 ` [PATCH RFC 2/4] clk: spacemit: ccu_mix: add inverted enable gate clock Yixun Lan
2025-12-11  1:19   ` Yixun Lan
2025-12-11  3:26   ` Yao Zi
2025-12-11  3:26     ` Yao Zi
2025-12-11  1:19 ` [PATCH RFC 3/4] clk: spacemit: ccu_pll: add plla type clock Yixun Lan
2025-12-11  1:19   ` Yixun Lan
2025-12-11  1:19 ` [PATCH RFC 4/4] clk: spacemit: k3: add the clock tree Yixun Lan
2025-12-11  1:19   ` Yixun Lan
2025-12-11  3:38   ` Yao Zi
2025-12-11  3:38     ` Yao Zi
2025-12-18  7:41     ` Yixun Lan
2025-12-18  7:41       ` Yixun Lan
2025-12-12 14:21   ` kernel test robot
2025-12-12 22:19   ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.