From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933673AbcA0PS1 (ORCPT ); Wed, 27 Jan 2016 10:18:27 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:14046 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933215AbcA0PSW (ORCPT ); Wed, 27 Jan 2016 10:18:22 -0500 Subject: Re: [RFC V2 1/2] ASoC: img: Add binding document for Pistachio audio card To: Mark Brown References: <1453818867-16322-1-git-send-email-Damien.Horsley@imgtec.com> <1453818867-16322-2-git-send-email-Damien.Horsley@imgtec.com> <20160127145756.GR6042@sirena.org.uk> CC: , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , , , James Hartley From: Damien Horsley X-Enigmail-Draft-Status: N1110 Message-ID: <56A8DFBC.6070007@imgtec.com> Date: Wed, 27 Jan 2016 15:18:20 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20160127145756.GR6042@sirena.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.167.68] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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