From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 3/5 v7][RFC] ASoC: simple-card: add Device Tree support Date: Thu, 28 Feb 2013 12:16:05 -0700 Message-ID: <512FACF5.1030608@wwwdotorg.org> References: <87zk11487a.wl%kuninori.morimoto.gx@renesas.com> <20130127035943.GJ4650@opensource.wolfsonmicro.com> <87vcag3hcj.wl%kuninori.morimoto.gx@renesas.com> <20130129014808.GC4748@opensource.wolfsonmicro.com> <87sj5k3f83.wl%kuninori.morimoto.gx@renesas.com> <87obg8z4u4.wl%kuninori.morimoto.gx@renesas.com> <5107FF97.1070601@wwwdotorg.org> <87halz82bm.wl%kuninori.morimoto.gx@renesas.com> <51097F0F.2030501@wwwdotorg.org> <87halw7sij.wl%kuninori.morimoto.gx@renesas.com> <5110349D.3050308@wwwdotorg.org> <87ehgvrs1h.wl%kuninori.morimoto.gx@renesas.com> <87bobzrry6.wl%kuninori.morimoto.gx@renesas.com> <511963F8.5020107@wwwdotorg.org> <87bobqf5yq.wl%kuninori.morimoto.gx@renesas.com> <511C22E2.60701@wwwdotorg.org> <87obfnofsx.wl%kuninori.morimoto.gx@renesas.com> <511C6A1B.9000507@wwwdotorg.org> <874nhfv5mb.wl%kuninori.morimoto.gx@renesas.com> <8738wzuu9g.wl%kuninori.morimoto.gx@renesas.com> <87a9qsg4lp.wl%kuninori.morimoto.gx@renesas.com> <87lia9tg1r.wl%kuninori.morimoto.gx@renes as.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87lia9tg1r.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Kuninori Morimoto Cc: Linux-ALSA , Lars-Peter Clausen , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Mark Brown , Liam Girdwood , Simon , Kuninori Morimoto List-Id: devicetree@vger.kernel.org On 02/27/2013 05:53 PM, Kuninori Morimoto wrote: > > Hi Stephen > > Thank you for your reply > >>> Support for loading the simple-card module via devicetree. >>> It requests cpu/codec information, >>> and .of_xlate_dai_name support on each driver for probing. >> >>> diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt >> >> >>> +Optional properties: >> ... >>> +- simple-audio,bitclock-inversion : bit clock inversion for both CPU/CODEC >>> +- simple-audio,frame-inversion : frame inversion for both CPU/CODEC >> >> I think that Mark pointed out those would be best stored in the CPU and >> CODEC child nodes, since random buffering/inverting on the board might >> make the values at the two DAIs the opposite of each-other. > > Sub node has same properties too, > and this is hybrid result of your/Mark comments. > > If "sound node" has these properties, these will go to both CPU/CODEC, > this means "cpu/codec common properties" > if "cpu/codec sub node" has it, it will go to itself only. > I guess "common property" is useful ? OK, that makes sense. I didn't get that impression from reading the DT binding document though. Perhaps I read it too fast. The document should explicitly mention which nodes those properties can exist in.