]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: spacemit: define three reset-only CCUs
authorAlex Elder <elder@riscstar.com>
Wed, 2 Jul 2025 11:37:06 +0000 (06:37 -0500)
committerYixun Lan <dlan@gentoo.org>
Thu, 3 Jul 2025 15:24:03 +0000 (23:24 +0800)
Three CCUs on the SpacemiT K1 SoC implement only resets, not clocks.
Define the CCU data for these resets so their auxiliary devices get
created.

Signed-off-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Yixun Lan <dlan@gentoo.org>
Link: https://lore.kernel.org/r/20250702113709.291748-5-elder@riscstar.com
Signed-off-by: Yixun Lan <dlan@gentoo.org>
drivers/clk/spacemit/ccu-k1.c

index 1c9ed434ae93eb231bee12e1cd7168cf0d169af1..f9e2200d1fd04ec7549482bb3b3fef8fd851da3d 100644 (file)
@@ -943,6 +943,18 @@ static const struct spacemit_ccu_data k1_ccu_apmu_data = {
        .num            = ARRAY_SIZE(k1_ccu_apmu_hws),
 };
 
+static const struct spacemit_ccu_data k1_ccu_rcpu_data = {
+       .reset_name     = "rcpu-reset",
+};
+
+static const struct spacemit_ccu_data k1_ccu_rcpu2_data = {
+       .reset_name     = "rcpu2-reset",
+};
+
+static const struct spacemit_ccu_data k1_ccu_apbc2_data = {
+       .reset_name     = "apbc2-reset",
+};
+
 static int spacemit_ccu_register(struct device *dev,
                                 struct regmap *regmap,
                                 struct regmap *lock_regmap,
@@ -1121,6 +1133,18 @@ static const struct of_device_id of_k1_ccu_match[] = {
                .compatible     = "spacemit,k1-syscon-apmu",
                .data           = &k1_ccu_apmu_data,
        },
+       {
+               .compatible     = "spacemit,k1-syscon-rcpu",
+               .data           = &k1_ccu_rcpu_data,
+       },
+       {
+               .compatible     = "spacemit,k1-syscon-rcpu2",
+               .data           = &k1_ccu_rcpu2_data,
+       },
+       {
+               .compatible     = "spacemit,k1-syscon-apbc2",
+               .data           = &k1_ccu_apbc2_data,
+       },
        { }
 };
 MODULE_DEVICE_TABLE(of, of_k1_ccu_match);