[PATCH 0/2] clk: spacemit: fix i2s clock

Troy Mitchell posted 2 patches 1 month, 4 weeks ago
There is a newer version of this series
drivers/clk/spacemit/ccu-k1.c                  | 34 ++++++++++++++++---
drivers/clk/spacemit/ccu_common.h              | 13 +++++++
drivers/clk/spacemit/ccu_ddn.c                 | 47 ++++++++++++++++++++++----
drivers/clk/spacemit/ccu_ddn.h                 | 25 ++++++++++++--
drivers/clk/spacemit/ccu_mix.c                 | 47 +++++++++++++++++++-------
drivers/clk/spacemit/ccu_mix.h                 | 26 ++++++++------
include/dt-bindings/clock/spacemit,k1-syscon.h |  3 ++
include/soc/spacemit/k1-syscon.h               |  7 ++--
8 files changed, 164 insertions(+), 38 deletions(-)
[PATCH 0/2] clk: spacemit: fix i2s clock
Posted by Troy Mitchell 1 month, 4 weeks ago
Previously, the driver defined two clocks for the I2S controller:
i2s_bclk and its parent i2s_sysclk.

Both i2s_bclk and i2s_sysclk were treated as fixed-rate clocks,
which clearly does not reflect the practical requirements for I2S operation.

Additionally, the original driver overlooked some upstream clock sources.

To fix the I2S clock, this series also introduces several new clock definition macros.

The I2S clock hierarchy can be found here [1].

Link:
https://developer.spacemit.com/documentation?token=LCrKwWDasiJuROkVNusc2pWTnEb
[1]

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
---
Troy Mitchell (2):
      dt-bindings: clock: spacemit: introduce i2s pre-clock
      clk: spacemit: introduce i2s pre-clock and fix i2s clock

 drivers/clk/spacemit/ccu-k1.c                  | 34 ++++++++++++++++---
 drivers/clk/spacemit/ccu_common.h              | 13 +++++++
 drivers/clk/spacemit/ccu_ddn.c                 | 47 ++++++++++++++++++++++----
 drivers/clk/spacemit/ccu_ddn.h                 | 25 ++++++++++++--
 drivers/clk/spacemit/ccu_mix.c                 | 47 +++++++++++++++++++-------
 drivers/clk/spacemit/ccu_mix.h                 | 26 ++++++++------
 include/dt-bindings/clock/spacemit,k1-syscon.h |  3 ++
 include/soc/spacemit/k1-syscon.h               |  7 ++--
 8 files changed, 164 insertions(+), 38 deletions(-)
---
base-commit: e991acf1bce7a428794514cbbe216973c9c0a3c8
change-id: 20250804-k1-clk-i2s-generation-eee7049ee17a

Best regards,
-- 
Troy Mitchell <troy.mitchell@linux.spacemit.com>