[PATCH RESEND v4 3/3] clk: spacemit: fix i2s clock

Stephen Boyd sboyd at kernel.org
Fri Sep 19 22:55:28 PDT 2025


Quoting Troy Mitchell (2025-09-10 20:34:05)
> Defining i2s_bclk and i2s_sysclk as fixed-rate clocks is insufficient
> for real I2S use cases.
> 
> Moreover, the current I2S clock configuration does not work as expected
> due to missing parent clocks.
> 
> This patch adds the missing parent clocks, defines i2s_sysclk as
> a DDN clock, and i2s_bclk as a DIV clock.
> 
> A special note for i2s_bclk:
> 
> From the register definition, the i2s_bclk divider always implies
> an additional 1/2 factor.
> 
> The following table shows the correspondence between index
> and frequency division coefficients:
> 
> | index |  div  |
> |-------|-------|

Applied to clk-next



More information about the linux-riscv mailing list