Skip to contentSkip to conversation

clk: spacemit: Add K1 SoC clk driver for v6.16

GIT PULL Yixun Lan 2 participants 2 messages Apr 30, 2025 – May 6, 2025

Subsystems (3)
lore
Share & tools
lore

Yixun Lan

author
#0 lore raw

Hi Stephen, Mike

Here is clock driver added for SpacemiT K1 SoC, please pull for v6.16

Yixun Lan (dlan)

The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8:

Linux 6.15-rc1 (2025-04-06 13:11:33 -0700)

are available in the Git repository at:

https://github.com/spacemit-com/linux tags/spacemit-clk-for-6.16-1

for you to fetch changes up to 49625c6e4d90a9221127c49a11eb8c95732bb690:

clk: spacemit: k1: Add TWSI8 bus and function clocks (2025-04-17 03:22:56 +0800)

----------------------------------------------------------------
RISC-V SpacemiT clock changes for 6.16

- Add clock driver for K1 SoC
- Add TWSI8 clock, workaround the read quirk

----------------------------------------------------------------
Haylen Chu (4):
dt-bindings: soc: spacemit: Add spacemit,k1-syscon
dt-bindings: clock: spacemit: Add spacemit,k1-pll
clk: spacemit: Add clock support for SpacemiT K1 SoC
clk: spacemit: k1: Add TWSI8 bus and function clocks

 .../devicetree/bindings/clock/spacemit,k1-pll.yaml |   50 +
 .../bindings/soc/spacemit/spacemit,k1-syscon.yaml  |   80 ++
 drivers/clk/Kconfig                                |    1 +
 drivers/clk/Makefile                               |    1 +
 drivers/clk/spacemit/Kconfig                       |   18 +
 drivers/clk/spacemit/Makefile                      |    5 +
 drivers/clk/spacemit/ccu-k1.c                      | 1164 ++++++++++++++++++++
 drivers/clk/spacemit/ccu_common.h                  |   48 +
 drivers/clk/spacemit/ccu_ddn.c                     |   83 ++
 drivers/clk/spacemit/ccu_ddn.h                     |   48 +
 drivers/clk/spacemit/ccu_mix.c                     |  268 +++++
 drivers/clk/spacemit/ccu_mix.h                     |  218 ++++
 drivers/clk/spacemit/ccu_pll.c                     |  157 +++
 drivers/clk/spacemit/ccu_pll.h                     |   86 ++
 include/dt-bindings/clock/spacemit,k1-syscon.h     |  247 +++++
 15 files changed, 2474 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/spacemit,k1-pll.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/spacemit/spacemit,k1-syscon.yaml
 create mode 100644 drivers/clk/spacemit/Kconfig
 create mode 100644 drivers/clk/spacemit/Makefile
 create mode 100644 drivers/clk/spacemit/ccu-k1.c
 create mode 100644 drivers/clk/spacemit/ccu_common.h
 create mode 100644 drivers/clk/spacemit/ccu_ddn.c
 create mode 100644 drivers/clk/spacemit/ccu_ddn.h
 create mode 100644 drivers/clk/spacemit/ccu_mix.c
 create mode 100644 drivers/clk/spacemit/ccu_mix.h
 create mode 100644 drivers/clk/spacemit/ccu_pll.c
 create mode 100644 drivers/clk/spacemit/ccu_pll.h
 create mode 100644 include/dt-bindings/clock/spacemit,k1-syscon.h
maintainer
#1 lore raw

Quoting Yixun Lan (2025-04-29 18:29:41)

Quoted 12 lines

Hi Stephen, Mike

Here is clock driver added for SpacemiT K1 SoC, please pull for v6.16

Yixun Lan (dlan)

The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8:

Linux 6.15-rc1 (2025-04-06 13:11:33 -0700)

are available in the Git repository at:

Quoted 7 lines

https://github.com/spacemit-com/linux tags/spacemit-clk-for-6.16-1

for you to fetch changes up to 49625c6e4d90a9221127c49a11eb8c95732bb690:

clk: spacemit: k1: Add TWSI8 bus and function clocks (2025-04-17 03:22:56 +0800)

----------------------------------------------------------------

Thanks. Pulled into clk-next