Re: [PATCH v7 3/6] clk: spacemit: Add clock support for SpacemiT K1 SoC
From: Inochi Amaoto
Date: Mon Apr 14 2025 - 21:01:19 EST
On Sat, Apr 12, 2025 at 07:44:21AM +0000, Haylen Chu wrote:
> The clock tree of K1 SoC contains three main types of clock hardware
> (PLL/DDN/MIX) and has control registers split into several multifunction
> devices: APBS (PLLs), MPMU, APBC and APMU.
>
> All register operations are done through regmap to ensure atomiciy
> between concurrent operations of clock driver and reset,
> power-domain driver that will be introduced in the future.
>
> Signed-off-by: Haylen Chu <heylenay@xxxxxxx>
> ---
> drivers/clk/Kconfig | 1 +
> drivers/clk/Makefile | 1 +
> drivers/clk/spacemit/Kconfig | 18 +
> drivers/clk/spacemit/Makefile | 5 +
> drivers/clk/spacemit/ccu-k1.c | 1154 +++++++++++++++++++++++++++++
> drivers/clk/spacemit/ccu_common.h | 48 ++
> drivers/clk/spacemit/ccu_ddn.c | 83 +++
> drivers/clk/spacemit/ccu_ddn.h | 47 ++
> 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 +++
> 12 files changed, 2086 insertions(+)
> 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
>
If possible, split the patch into multiple one by the compatible
so others can review easily. Otherwise, it is LGTM.
Reviewed-by: Inochi Amaoto <inochiama@xxxxxxxxxxx>