Re: [RFC V2 1/2] ASoC: img: Add binding document for Pistachio audio card

From: Damien Horsley
Date: Wed Jan 27 2016 - 10:18:30 EST


On 27/01/16 14:57, Mark Brown wrote:
> On Tue, Jan 26, 2016 at 02:34:26PM +0000, Damien Horsley wrote:
>
>> + - clock-names : Includes the following entries:
>> + "audio_pll" The audio PLL
>> + "i2s_mclk" The i2s reference clock
>> + Also connected to i2s_out_0_mclk output
>> + "dac_mclk" Dac reference clock. Connected to i2s_dac_clk output
>
> Why are these (especially the dac_mclk and i2s_mclk) properties of the
> card and not of the drivers for the respective devices?
>

Due to the shared nature of these clocks. Individual components cannot
be responsible for controlling these as this could break configurations
for other components that are sharing the clocks. Only the card driver
has visibility of all of the components and their requirements.

audio_pll is used by spdif out, parallel out, i2s out, and i2s in if
there are codecs on the i2s in path that make use of i2s_mclk and
dac_mclk (derived from audio_pll)

i2s_mclk and dac_mclk can be used by both the i2s in and i2s out paths
on some boards

>> + - img,mute-gpio : phandle of the mute gpio
>> +
>> + - img,hp-det-gpio : phandle of the headphone detect gpio
>
> The DT maintainers would prefer those to be named -gpios.
>

Ok