Re: omap mcbsp and prcm_fck

Tony Lindgren
2023-01-19T07:41:42Z

Hi,

* Andreas Kemnade <andreas@kemnade.info> [230117 11:08]:
> Hi,
>
> while trying to create a devicetree for a omap4 device, I stumbled upon this:
>
> [ 59.789367] omap-mcbsp 40124000.mcbsp: CLKS: could not clk_get() prcm_fck
>
> But where should prcm_fck come from? The string does not appear in the
> devicetree binding documentation. I have seen it only in the omap_hwmod_* stuff
> used by omap2/3.
>
> So how to make mcbsp happy?

I think all you need to do is add an entry for prcm_fck to point to
mcbsp4_sync_mux_ck in omap44xx_clks[]. Seems this got dropped with commit
349355ce3a05 ("ARM: OMAP2+: Drop legacy platform data for omap4 mcbsp").

Or patch the driver so it tries to use the dt clock so that the standard
assigned-clocks devicetree property works for a board specific
configuration.

Regards,

Tony