[PATCH v4 0/2] sh: sh7305: add TMU0 clock support

From: Artem Novak

Date: Tue Nov 10 2026 - 20:11:25 EST


This series adds Common Clock Framework support for the SH7305.

The existing SH7305 clock implementation is converted to CCF,
including the master clock, CPU, bus and peripheral divider clocks,
and the TMU0 module clock gate.
The legacy CPG clock framework is then excluded for SH7305
to avoid enabling both clock implementations.

The series consists of:

sh: sh7305: add TMU0 clock support
Convert the SH7305 clock implementation to CCF and
provide the TMU0 functional clock through clkdev.

sh: sh7305: exclude from legacy CPG clock framework
Exclude SH7305 from SH_CLK_CPG_LEGACY.

Changes since v3:
- Split the legacy CPG exclusion into a separate second patch.
- Keep the SH7305 CCF clock implementation and TMU0 gate
together in the first patch.

Artem Novak (2):
sh: sh7305: add TMU0 clock support
sh: sh7305: exclude from legacy CPG clock framework

arch/sh/Kconfig | 2 +-
arch/sh/include/asm/clock-sh7305.h | 11 ++
arch/sh/kernel/cpu/sh4a/clock-sh7305.c | 262 +++++++++++++++++--------
3 files changed, 196 insertions(+), 79 deletions(-)
create mode 100644 arch/sh/include/asm/clock-sh7305.h

--
2.56.0