Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752107AbcDZLwR (ORCPT ); Tue, 26 Apr 2016 07:52:17 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37985 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751607AbcDZLwO (ORCPT ); Tue, 26 Apr 2016 07:52:14 -0400 Date: Tue, 26 Apr 2016 12:52:10 +0100 From: Peter Griffin To: Mark Brown Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com, vinod.koul@intel.com, lee.jones@linaro.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, arnd@arndb.de, ludovic.barre@st.com, arnaud.pouliquen@st.com Subject: Re: [PATCH 10/18] ASoC: sti: Update example to include assigned-clocks and mclk-fs Message-ID: <20160426115210.GB5457@griffinp-ThinkPad-X1-Carbon-2nd> References: <1461236675-10176-1-git-send-email-peter.griffin@linaro.org> <1461236675-10176-11-git-send-email-peter.griffin@linaro.org> <20160421154933.GR3217@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160421154933.GR3217@sirena.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1649 Lines: 44 Hi Mark, On Thu, 21 Apr 2016, Mark Brown wrote: > On Thu, Apr 21, 2016 at 12:04:27PM +0100, Peter Griffin wrote: > > > clocks = <&clk_s_d0_flexgen CLK_PCM_2>; > > + assigned-clocks = <&clk_s_d0_flexgen CLK_PCM_2>; > > + assigned-clock-parents = <&clk_s_d0_quadfs 2>; > > + assigned-clock-rates = <50000000>; > > This may be true for the particular system you're looking at but isn't > really relevant to the device. Ok I will drop this from v4 then. > > > @@ -133,6 +139,7 @@ Example of audio card declaration: > > /* DAC */ > > format = "i2s"; > > dai-tdm-slot-width = <32>; > > + mclk-fs = <256>; > > cpu { > > sound-dai = <&sti_uni_player2>; > > }; > > This one is more relevant though I'm still a bit concerned that there's > an expectation that the examples can just be pasted in... I agree with your point in a more general case (e.g. seperate audio codec chip connected via SPI), but the reality of the situation for STi arch is that this device is found in STiH407 family silicon, of which the two supported upstream devices (STiH407/410) are almost identical SoC's. Given the recent announcement of "no new SoC's" for STB market, there is unlikely to be support upstream for new variants and as there is no community board available new board variants upstream are also unlikely (so far only ST reference boards are supported upstreamed). So although I would only consider copying an example as the starting point for getting something working (and indeed it was the case here). On STi arch there *should* be a very high probability that copying the exanple is all that will be required. Peter.