Re: [PATCH v2 0/2] ASoC: simple-card-utils: support system-clock-id DT property

From: Wang, Sen

Date: Tue Jun 16 2026 - 17:15:36 EST


On 6/7/2026 9:38 AM, Andreas Kemnade wrote:
Hi,

On Fri, 15 May 2026 11:13:56 -0500
Sen Wang <sen@xxxxxx> wrote:

Adding an optional, u32 system-clock-id DT property into the generic machine
driver so clocking topology info can be exposed in DT.

while having this binding would solve some of my problem. I am wondering
whether is the right approach. What about modelling the clocks involved
using the clk framework, so let some more codecs/dais be clock provider.
So things can be configured that way.
E.g. tlv320aic32x4-clk.c

Same for set_div() which is also unavailable in these generic cards.


Hi Andreas, just got back from break, sorry for the delayed message.

I agree with you, in retrospect, this patch is indeed a hasty patch that only covers up the legacy clk-id scheme rather than adapting the modern clk framework.

Modeling individual cpu/codec DAI clocks does seem to be the way to go,
not the one patch fix-all solution I'd hope for, but I still wanted to see if I can reuse the existing CCF patterns for drivers with clk-id/div-id as an alternative.

Best,
Sen Wang