All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
To: Timur Tabi <timur.tabi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org,
	kumar.gala-KZfg59tc24xl57MIdRCFDg@public.gmane.org,
	Mark Brown
	<broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>,
	linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
	devicetree-discuss
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
	lrg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org
Subject: Re: [alsa-devel] [PATCH 1/2] powerpc: add platform registration for ALSA SoC drivers
Date: Thu, 29 Apr 2010 10:52:02 +1000	[thread overview]
Message-ID: <1272502322.24542.135.camel@pasglop> (raw)
In-Reply-To: <r2oed82fe3e1004281513k23b54b56v7904a4a34750c90b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Wed, 2010-04-28 at 17:13 -0500, Timur Tabi wrote:
> On Wed, Apr 28, 2010 at 4:58 PM, Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> wrote:
> 
> > The sound0 node needs a compatible value,
> 
> I knew I was forgetting something
> 
> > the sound-device node should
> > probably have one too.
> 
> The aliases, cpus, and memory node don't have a compatible property,
> and I was modeling the design after the aliases node.

aliases is a bad choice, it's very very special and is neither a device
nor a virtual device, like chosen.

cpus is more of a match in your case.

In any case, I agree, you may not really need a compatible prop for the
virtual device. In fact, Grant, do we really need an enclosing node like
that ? In any case, it's no big deal and shouldn't have much impact on
the design.

Cheers,
Ben.

> > The sound0 node should have something board specific like
> > "fsl,mpc8610hpcd-sound" to make it clear that the binding really only
> > applies to this particular board.  It would also be a good idea to
> > prefix all of the property names with 'fsl,' to avoid conflicting with
> > any future common bindings or conventions.  Other boards can use the
> > same binding, but they would get a different compatible value (the
> > driver could bind on both).
> 
> The aliases node doesn't have an fsl, prefix.  I understand the need
> for the prefix, but I wonder why we don't do that for the aliases
> node.
> 
> > I'm not a huge fan of the name "sound-devices" for the parent node.
> > There are other sorts of things that we need 'virtual' device nodes to
> > describe.  It would be nice to have a single place for collecting
> > nodes for stuff like this.  Perhaps this:
> >
> > system {
> >        compatible = "system-devices";
> >        sound0 {
> >                compatible = "fsl,mpc8610hpcd-sound";
> >                fsl,ssi = &ssi0;
> >                fsl,playback-dma = &dma00;
> >                fsl,capture-dma = &dma01;
> >                fsl,codec = &cs4270;
> >        };
> > };
> 
> I like that.
> 

WARNING: multiple messages have this Message-ID (diff)
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Timur Tabi <timur.tabi@gmail.com>
Cc: alsa-devel@alsa-project.org, kumar.gala@freescale.com,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	linuxppc-dev@ozlabs.org,
	devicetree-discuss <devicetree-discuss@lists.ozlabs.org>,
	lrg@slimlogic.co.uk
Subject: Re: [alsa-devel] [PATCH 1/2] powerpc: add platform registration for ALSA SoC drivers
Date: Thu, 29 Apr 2010 10:52:02 +1000	[thread overview]
Message-ID: <1272502322.24542.135.camel@pasglop> (raw)
In-Reply-To: <r2oed82fe3e1004281513k23b54b56v7904a4a34750c90b@mail.gmail.com>

On Wed, 2010-04-28 at 17:13 -0500, Timur Tabi wrote:
> On Wed, Apr 28, 2010 at 4:58 PM, Grant Likely <grant.likely@secretlab.ca> wrote:
> 
> > The sound0 node needs a compatible value,
> 
> I knew I was forgetting something
> 
> > the sound-device node should
> > probably have one too.
> 
> The aliases, cpus, and memory node don't have a compatible property,
> and I was modeling the design after the aliases node.

aliases is a bad choice, it's very very special and is neither a device
nor a virtual device, like chosen.

cpus is more of a match in your case.

In any case, I agree, you may not really need a compatible prop for the
virtual device. In fact, Grant, do we really need an enclosing node like
that ? In any case, it's no big deal and shouldn't have much impact on
the design.

Cheers,
Ben.

> > The sound0 node should have something board specific like
> > "fsl,mpc8610hpcd-sound" to make it clear that the binding really only
> > applies to this particular board.  It would also be a good idea to
> > prefix all of the property names with 'fsl,' to avoid conflicting with
> > any future common bindings or conventions.  Other boards can use the
> > same binding, but they would get a different compatible value (the
> > driver could bind on both).
> 
> The aliases node doesn't have an fsl, prefix.  I understand the need
> for the prefix, but I wonder why we don't do that for the aliases
> node.
> 
> > I'm not a huge fan of the name "sound-devices" for the parent node.
> > There are other sorts of things that we need 'virtual' device nodes to
> > describe.  It would be nice to have a single place for collecting
> > nodes for stuff like this.  Perhaps this:
> >
> > system {
> >        compatible = "system-devices";
> >        sound0 {
> >                compatible = "fsl,mpc8610hpcd-sound";
> >                fsl,ssi = &ssi0;
> >                fsl,playback-dma = &dma00;
> >                fsl,capture-dma = &dma01;
> >                fsl,codec = &cs4270;
> >        };
> > };
> 
> I like that.
> 

  parent reply	other threads:[~2010-04-29  0:52 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 20:49 [PATCH 1/2] powerpc: add platform registration for ALSA SoC drivers Timur Tabi
2010-04-27  6:36 ` Benjamin Herrenschmidt
2010-04-27  6:36   ` Benjamin Herrenschmidt
2010-04-27  8:07   ` Liam Girdwood
2010-04-27  8:07     ` [alsa-devel] " Liam Girdwood
2010-04-27 14:52     ` Timur Tabi
2010-04-27 14:52       ` [alsa-devel] " Timur Tabi
2010-04-27 15:20       ` Liam Girdwood
2010-04-27 15:20         ` [alsa-devel] " Liam Girdwood
2010-04-27 15:28         ` Timur Tabi
2010-04-27 15:28           ` [alsa-devel] " Timur Tabi
2010-04-27 15:56           ` Timur Tabi
2010-04-27 15:56             ` [alsa-devel] " Timur Tabi
2010-04-27 16:41           ` Liam Girdwood
2010-04-27 16:41             ` [alsa-devel] " Liam Girdwood
2010-04-27 18:32             ` Timur Tabi
2010-04-27 18:32               ` [alsa-devel] " Timur Tabi
2010-04-27 19:15               ` Grant Likely
2010-04-27 19:15                 ` [alsa-devel] " Grant Likely
2010-04-27 20:04                 ` Timur Tabi
2010-04-27 20:04                   ` [alsa-devel] " Timur Tabi
2010-04-27 20:38                   ` Mark Brown
2010-04-27 20:38                     ` [alsa-devel] " Mark Brown
2010-04-28  4:19                   ` Benjamin Herrenschmidt
2010-04-28  4:19                     ` [alsa-devel] " Benjamin Herrenschmidt
2010-04-28  4:18                 ` Benjamin Herrenschmidt
2010-04-28  4:18                   ` [alsa-devel] " Benjamin Herrenschmidt
2010-04-30 21:46         ` Timur Tabi
2010-04-30 21:46           ` [alsa-devel] " Timur Tabi
2010-04-30 22:04           ` Timur Tabi
2010-04-30 22:04             ` [alsa-devel] " Timur Tabi
2010-04-27 20:24     ` Grant Likely
2010-04-27 20:24       ` [alsa-devel] " Grant Likely
2010-04-27 20:46       ` Timur Tabi
2010-04-27 20:46         ` [alsa-devel] " Timur Tabi
2010-04-27 20:59         ` Mark Brown
2010-04-27 20:59           ` [alsa-devel] " Mark Brown
2010-04-27 21:03           ` Timur Tabi
2010-04-27 21:03             ` [alsa-devel] " Timur Tabi
2010-04-27 21:11             ` Mark Brown
2010-04-27 21:11               ` [alsa-devel] " Mark Brown
2010-04-28  4:25           ` Benjamin Herrenschmidt
2010-04-28  4:25             ` [alsa-devel] " Benjamin Herrenschmidt
2010-04-28 13:00             ` Mark Brown
2010-04-28 13:00               ` [alsa-devel] " Mark Brown
2010-04-29  0:42               ` Benjamin Herrenschmidt
2010-04-29  0:42                 ` [alsa-devel] " Benjamin Herrenschmidt
2010-04-28  5:37         ` Grant Likely
2010-04-28  5:37           ` [alsa-devel] " Grant Likely
2010-04-28 13:35           ` Timur Tabi
2010-04-28 13:35             ` [alsa-devel] " Timur Tabi
2010-04-28 13:57             ` Grant Likely
2010-04-28 13:57               ` [alsa-devel] " Grant Likely
2010-04-28 16:20               ` Timur Tabi
2010-04-28 16:20                 ` [alsa-devel] " Timur Tabi
2010-04-28 16:47                 ` Grant Likely
2010-04-28 16:47                   ` [alsa-devel] " Grant Likely
2010-04-28 17:27                   ` Timur Tabi
2010-04-28 17:27                     ` [alsa-devel] " Timur Tabi
2010-04-27 22:29       ` Mark Brown
2010-04-27 22:29         ` [alsa-devel] " Mark Brown
2010-04-28  2:31         ` Grant Likely
2010-04-28  2:31           ` [alsa-devel] " Grant Likely
2010-04-28  9:16           ` Mark Brown
2010-04-28  9:16             ` [alsa-devel] " Mark Brown
2010-04-28  4:10         ` Benjamin Herrenschmidt
2010-04-28  4:10           ` [alsa-devel] " Benjamin Herrenschmidt
2010-04-28 12:07           ` Mark Brown
2010-04-28 12:07             ` [alsa-devel] " Mark Brown
2010-04-29  0:36             ` Benjamin Herrenschmidt
2010-04-29  0:36               ` [alsa-devel] " Benjamin Herrenschmidt
2010-04-29  3:43               ` Grant Likely
2010-04-29  3:43                 ` [alsa-devel] " Grant Likely
2010-04-28 13:19         ` Timur Tabi
2010-04-28 13:19           ` [alsa-devel] " Timur Tabi
2010-04-28 13:39           ` Mark Brown
2010-04-28 13:39             ` [alsa-devel] " Mark Brown
2010-04-27  9:54   ` Mark Brown
2010-04-27  9:54     ` Mark Brown
2010-04-27 10:09     ` Benjamin Herrenschmidt
2010-04-27 10:09       ` Benjamin Herrenschmidt
2010-04-27 10:41       ` Mark Brown
2010-04-27 10:41         ` Mark Brown
2010-04-27 20:27       ` Grant Likely
2010-04-27 20:27         ` Grant Likely
2010-04-27 20:50         ` Mark Brown
2010-04-27 20:50           ` Mark Brown
2010-04-27 20:53           ` Timur Tabi
2010-04-27 20:53             ` Timur Tabi
2010-04-28 12:49         ` Liam Girdwood
2010-04-28 12:49           ` [alsa-devel] " Liam Girdwood
2010-04-28 20:35       ` Timur Tabi
2010-04-28 20:35         ` [alsa-devel] " Timur Tabi
2010-04-28 21:58         ` Grant Likely
2010-04-28 21:58           ` [alsa-devel] " Grant Likely
2010-04-28 22:13           ` Timur Tabi
2010-04-28 22:13             ` [alsa-devel] " Timur Tabi
     [not found]             ` <r2oed82fe3e1004281513k23b54b56v7904a4a34750c90b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-28 22:23               ` Grant Likely
2010-04-28 22:23                 ` Grant Likely
2010-04-29  0:52               ` Benjamin Herrenschmidt [this message]
2010-04-29  0:52                 ` Benjamin Herrenschmidt
2010-04-29  3:44                 ` Grant Likely
2010-04-29  3:44                   ` [alsa-devel] " Grant Likely
2010-04-29  0:50         ` Benjamin Herrenschmidt
2010-04-29  0:50           ` [alsa-devel] " Benjamin Herrenschmidt
2010-04-27 19:21 ` Grant Likely
2010-04-27 19:21   ` Grant Likely
2010-04-27 20:05   ` Timur Tabi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1272502322.24542.135.camel@pasglop \
    --to=benh-xvmvhmargas8u2djnn8i7kb+6bgklq7r@public.gmane.org \
    --cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
    --cc=broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=kumar.gala-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    --cc=lrg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org \
    --cc=timur.tabi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.