drivers/clk/spacemit

SpacemiT K1 and K3 RISC-V SoC clock controllers

Manages the on-chip clock generators (PLLs, dividers, and gates) inside SpacemiT's K1 and K3 RISC-V application processors, which power recent single-board computers such as the Banana Pi BPI-F3 aimed at industrial control, NAS, and edge-computing use.

keep conf=0.93 deploy=low replacement=none subsystem=clk category=platform-vendor
93%

recommendation

It should stay because this is brand-new code (merged in 2025) that is actively maintained, with a fresh batch of fixes landing in the clk tree as recently as October 2025. The hardware it supports — SpacemiT's K1 and K3 RISC-V SoCs used in boards like the Banana Pi BPI-F3 — is still being sold new, and there is no generic substitute for these vendor-specific clock trees.

repository signals

12 files
3,820 source lines
24 commits, 5y
+4,219 / −363 lines added / removed, 5y
11 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 24 total · active in 10/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 0 commits · +0 −0 2021-06: 0 commits · +0 −0 2021-07: 0 commits · +0 −0 2021-08: 0 commits · +0 −0 2021-09: 0 commits · +0 −0 2021-10: 0 commits · +0 −0 2021-11: 0 commits · +0 −0 2021-12: 0 commits · +0 −0 2022-01: 0 commits · +0 −0 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 0 commits · +0 −0 2022-05: 0 commits · +0 −0 2022-06: 0 commits · +0 −0 2022-07: 0 commits · +0 −0 2022-08: 0 commits · +0 −0 2022-09: 0 commits · +0 −0 2022-10: 0 commits · +0 −0 2022-11: 0 commits · +0 −0 2022-12: 0 commits · +0 −0 2023-01: 0 commits · +0 −0 2023-02: 0 commits · +0 −0 2023-03: 0 commits · +0 −0 2023-04: 0 commits · +0 −0 2023-05: 0 commits · +0 −0 2023-06: 0 commits · +0 −0 2023-07: 0 commits · +0 −0 2023-08: 0 commits · +0 −0 2023-09: 0 commits · +0 −0 2023-10: 0 commits · +0 −0 2023-11: 0 commits · +0 −0 2023-12: 0 commits · +0 −0 2024-01: 0 commits · +0 −0 2024-02: 0 commits · +0 −0 2024-03: 0 commits · +0 −0 2024-04: 0 commits · +0 −0 2024-05: 0 commits · +0 −0 2024-06: 0 commits · +0 −0 2024-07: 0 commits · +0 −0 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 0 commits · +0 −0 2024-11: 0 commits · +0 −0 2024-12: 0 commits · +0 −0 2025-01: 0 commits · +0 −0 2025-02: 0 commits · +0 −0 2025-03: 0 commits · +0 −0 2025-04: 2 commits · +2,095 −0 2025-05: 0 commits · +0 −0 2025-06: 1 commit · +10 −4 2025-07: 4 commits · +121 −121 2025-08: 4 commits · +45 −17 2025-09: 2 commits · +38 −12 2025-10: 2 commits · +186 −14 2025-11: 3 commits · +1,499 −3 2025-12: 3 commits · +217 −184 2026-01: 1 commit · +6 −6 2026-02: 2 commits · +2 −2 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. git.zx2c4.com

    Kernel clock tree activity includes a 2025-10-06 merge of branch 'clk-spacemit' into clk-next, carrying multiple SpacemiT clock fixes and cleanups, which is strong evidence of active upstream maintenance rather than removal.

  2. wiki.banana-pi.org

    Banana Pi documents the BPI-F3 as an industrial-grade board built on the SpacemiT K1 SoC and describes current application areas such as SBC, NAS, industrial control, and edge computing.

  3. bpi-shop.com

    A retail listing shows the SpacemiT K1-based Banana Pi BPI-F3 offered for sale, indicating the platform is still sold new.

codex reasoning notes (technical)

Local shell inspection of drivers/clk/spacemit/Kconfig shows this is real driver code for SpacemiT K1 and K3 CCUs. `lei` was unavailable in shell, so lore-first evidence was approximated via web-opened kernel cgit/log pages: the zx2c4 kernel log was obtained by web search and shows a 2025-10-06 'clk-spacemit' merge with ongoing fixes, and no removal discussion was found. Deployment evidence came from web search/open of Banana Pi wiki and BPI shop pages showing current K1 boards and retail availability. Because the driver was added in 2025, has recent upstream fixes, and serves shipping SoCs with no generic substitute, the correct recommendation is keep; deployments are low because these are still niche RISC-V/industrial boards, not mass legacy hardware.