[PATCH v4 2/6] dt-bindings: audio-graph-card: Add plls and sysclks properties
Richard Fitzgerald
rf at opensource.cirrus.com
Thu Jan 14 13:31:40 CET 2021
On 14/01/2021 11:14, Mark Brown wrote:
> On Thu, Jan 14, 2021 at 10:31:10AM +0000, Richard Fitzgerald wrote:
>> On 13/01/2021 15:22, Rob Herring wrote:
>
>>> This appears to all be configuration of clocks within the codec, so
>>> these properties belong in the codec or cpu nodes.
>
>> audio-graph-card doesn't have codec or cpu nodes. Those were in
>> simple-card but are replaced in audio-graph-card by a simple phandle
>> array forming a graph.
>
>> I could assume that all clock settings apply to the codec and that there
>> is only ever one codec in an audio-graph-card configuration.
>
> The suggestion here is to put properties in the node for the relevant
> device rather than the card.
>
That's seems bad to me - putting the properties for one driver in the
node of another driver. It's also potentially misleading as an example.
As in something like:
wm5102: wm5102 {
compatible = "wlf,wm5102";
sysclks = <&some_clock>;
plls = <&some_other_clock>;
...
};
To me that seems to imply that these are properties of the wm5102 driver
and it is going to setup its own sysclk and pll settings from those
properties. But actually it's the machine driver that does it, and these
properties are specific to audio-graph-card.
More information about the Alsa-devel
mailing list