Re: [PATCH 2/6] clk: spacemit: k1: Keep pll1_aud_245p7 enabled

From: Frédéric Mahé

Date: Wed Nov 18 2026 - 12:16:36 EST


Hi Yixun,

Thanks for forwarding it to SpacemiT.

On Wed, Nov 18, 2026 at 11:15:28AM +0000, Yixun Lan wrote:
> Access which register? is the PWM register in RCPU2?

No, the hang comes before any PWM register access. The PWM probe
first deasserts the reset and enables the clock, both in
RCPU2_PWM2_CLK_RST (0xc0888008, in the syscon_rcpu2 range), and that
access hangs. The PWM registers (0xc0888300) are never reached. I
have not tested each register on its own (every hang needs a power
cycle), but I can do it if that helps.

> It just happen to fix the issue, but doesn't sound like a correct fix,
> usually, it can be fixed with correct clock topology

Agreed. The vendor kernel never gates this clock either
(CLK_IGNORE_UNUSED in ccu-spacemit-k1x.c). If pll1_aud_245p7 is the
bus clock of the RCPU2 block, it could become a clock of the
syscon_rcpu2 node, and the CCU driver would enable it before its
first register access. I will wait for SpacemiT's answer before v2.

> maybe just "Assisted-by: LLM"

That tag was removed (1e035297ffda), so in v2 I will move the note
to the cover letter, as Yao Zi suggests.

Frédéric