[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250807-k1-clk-i2s-generation-v1-0-7dc25eb4e4d3@linux.spacemit.com>
Date: Thu, 07 Aug 2025 09:30:09 +0800
From: Troy Mitchell <troy.mitchell@...ux.spacemit.com>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Yixun Lan <dlan@...too.org>,
Alex Elder <elder@...cstar.com>, Haylen Chu <heylenay@....org>,
Inochi Amaoto <inochiama@...look.com>
Cc: linux-clk@...r.kernel.org, devicetree@...r.kernel.org,
linux-riscv@...ts.infradead.org, spacemit@...ts.linux.dev,
linux-kernel@...r.kernel.org, Jinmei Wei <weijinmei@...ux.spacemit.com>,
Troy Mitchell <troy.mitchell@...ux.spacemit.com>
Subject: [PATCH 0/2] clk: spacemit: fix i2s clock
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@...ux.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@...ux.spacemit.com>
Powered by blists - more mailing lists