drivers/sh/clk

Legacy SuperH clock framework (CPG)

An older clock and clock-pulse-generator framework used by Renesas SuperH (SH-3, SH-4, SH-4A, and early SH-Mobile) processors. It manages on-chip clocks for SoCs that powered set-top boxes, printers, automotive infotainment, and embedded gear from roughly the early 2000s through the mid-2010s, before Renesas largely shifted these product lines to Arm-based successors.

keep-annotate conf=0.78 last_sold=2015 deploy=low replacement=drivers/clk/renesas (Common Clock Framework) subsystem=sh category=infrastructure
78%

recommendation

Worth keeping but worth flagging as legacy because several arch/sh board files still depend on it, so removing it would break support for existing SuperH systems. The framework predates the modern Common Clock Framework used by drivers/clk/renesas, and upstream activity has dwindled to occasional bug fixes (such as a 2023 patch from Geert Uytterhoeven). Renesas has marked much of the SH-4/SH-4A ecosystem as discontinued or not recommended for new designs, with longevity sales running through about March 2025, so new deployments are rare and the code mostly serves to keep older boards booting.

repository signals

3 files
1,108 source lines
5 commits, 5y
+24 / −17 lines added / removed, 5y
5 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 5 total · active in 4/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: 1 commit · +1 −1 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: 1 commit · +14 −11 2025-04: 0 commits · +0 −0 2025-05: 0 commits · +0 −0 2025-06: 0 commits · +0 −0 2025-07: 0 commits · +0 −0 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 1 commit · +7 −3 2025-11: 0 commits · +0 −0 2025-12: 0 commits · +0 −0 2026-01: 0 commits · +0 −0 2026-02: 2 commits · +2 −2 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    Public lore thread for a real SH clock bug fix in 2023, showing some upstream maintenance rather than complete abandonment.

  2. git.kernel.org

    The in-tree API is explicitly labeled with legacy SH clock/CPG interfaces such as CONFIG_SH_CLK_CPG_LEGACY, indicating this is an older framework.

  3. en.wikipedia.org

    SuperH SH-3/SH-4/SH-4A based SoCs were later replaced by Arm-based generations, while many existing models reportedly remained marketed only through March 2025 under Renesas longevity programs.

  4. renesas.com

    Renesas marks a SuperH SH-4/SH-4A ecosystem product as discontinued and says listed target devices are obsolete or not recommended for new designs, supporting legacy-only market status.

codex reasoning notes (technical)

Obtained local evidence with shell: inspected drivers/sh/clk/{core,cpg}.c and include/linux/sh_clk.h, then used local git log and rg. Local tree shows this code is a legacy SH clock framework still referenced by multiple arch/sh clock files, so it cannot be removed blindly. Local git history showed only sparse recent touches, with one substantive 2023 bug-fix whose lore URL came from `git log`; no removal-thread evidence surfaced in the inspected history. The kernel.org include/linux/sh_clk.h URL is canonical recall to anchor the legacy-framework claim. Wikipedia and the Renesas discontinued SH-4 tool page were obtained via web search and support the market conclusion: SH-3/4-era hardware is largely legacy, with at most tail-end 2025 availability and low current deployments. That combination supports keep-annotate rather than deprecate/remove.