]> www.infradead.org Git - users/hch/misc.git/commitdiff
dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Thu, 11 Sep 2025 03:34:03 +0000 (11:34 +0800)
committerStephen Boyd <sboyd@kernel.org>
Sat, 20 Sep 2025 05:54:40 +0000 (22:54 -0700)
Previously, the K1 clock driver did not include the parent clocks of
the I2S sysclk.

Introduce pre-clock to fix I2S clock.

Otherwise, the I2S clock may not work as expected.

This patch adds their definitions to allow proper registration
in the driver and usage in the device tree.

Fixes: 1b72c59db0add ("clk: spacemit: Add clock support for SpacemiT K1 SoC")
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
include/dt-bindings/clock/spacemit,k1-syscon.h

index 505205453d7f19ad478b3b741d83f4498fcb8c0d..0f8b59d6753cb9fd4e34942a9737ca5a66e28584 100644 (file)
 #define CLK_I2S_BCLK           30
 #define CLK_APB                        31
 #define CLK_WDT_BUS            32
+#define CLK_I2S_153P6          33
+#define CLK_I2S_153P6_BASE     34
+#define CLK_I2S_SYSCLK_SRC     35
+#define CLK_I2S_BCLK_FACTOR    36
 
 /* MPMU resets */
 #define RESET_WDT              0