From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen <lars@metafoo.de>,
Takashi Iwai <tiwai@suse.de>, Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Subject: Re: [PATCH 2/2][RFC] ASoC: simple-card: add Device Tree support
Date: Thu, 12 Sep 2013 13:31:19 +0200 [thread overview]
Message-ID: <5231A607.5080701@gmail.com> (raw)
In-Reply-To: <87li34i41w.wl%kuninori.morimoto.gx@renesas.com>
On 09/11/13 02:40, Kuninori Morimoto wrote:
> Support for loading the simple-card module via devicetree.
> It requests cpu/codec information,
> and .of_xlate_dai_name support on each component driver.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
[...]
> diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt
> new file mode 100644
> index 0000000..d1a0c89
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/simple-card.txt
> @@ -0,0 +1,73 @@
> +Simple-Card:
> +
> +Required properties:
> +
> +- compatible : "simple-audio"
> +- simple-audio,card-name : simple-audio card name
> +- simple-audio,format : see below
> +- simple-audio,cpu : CPU sub-node, see below
> +- simple-audio,codec : CODEC sub-node, see below
> +
> +Optional properties:
> +
> +- simple-audio,system-clock-frequency : system clock rate if it is connected to both CPU/CODEC
> +
> +Required cpu/codec subnode properties:
> +
> +- sound-dai : phandle and port for CPU/CODEC
> +- #sound-dai-cells : sound-dai phandle's node
IMHO, "sound-dai" is too ASoC specific for this property name.
To make it more generic, what about e.g. "sound-link" and
"#sound-link-cells" instead?
> +- frame-master : frame master
> +- bitclock-master : bitclock master
> +
> +Optional subnode properties:
> +
> +- bitclock-inversion : if CPU/CODEC needs clock inversion
> +- frame-inversion : if CPU/CODEC needs frame inversion
> +- system-clock-frequency : system clock rate for each CPU/CODEC
Instead of "system-clock-frequency" use standard property name
"clock-frequency". In the driver, you can check for this property
and use it, if no common clocks are available on the arch running.
Sebastian
next prev parent reply other threads:[~2013-09-12 11:31 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 6:02 [PATCH 0/2][RFC] snd_soc_codec include snd_soc_component Kuninori Morimoto
2013-09-02 6:03 ` [PATCH 1/2][RFC] ASoC: " Kuninori Morimoto
2013-09-02 6:03 ` [PATCH 2/2][RFC] ASoC: wm8978: use component Kuninori Morimoto
2013-09-02 8:23 ` [PATCH 0/2][RFC] snd_soc_codec include snd_soc_component Lars-Peter Clausen
2013-09-02 8:52 ` Kuninori Morimoto
2013-09-02 9:34 ` Lars-Peter Clausen
2013-09-02 10:55 ` Mark Brown
2013-09-03 0:16 ` Kuninori Morimoto
2013-09-03 1:43 ` [PATCH v2 " Kuninori Morimoto, :
2013-09-03 1:44 ` [PATCH v2 1/2][RFC] ASoC: snd_soc_codec includes snd_soc_component Kuninori Morimoto
2013-09-03 1:44 ` [PATCH v2 2/2][RFC] ASoC: wm8978: use component Kuninori Morimoto
2013-09-03 1:51 ` [PATCH v2 0/2][RFC] snd_soc_codec include snd_soc_component Kuninori Morimoto
2013-09-03 1:52 ` [PATCH v2 1/2][RFC] ASoC: snd_soc_codec includes snd_soc_component Kuninori Morimoto
2013-09-03 1:52 ` [PATCH v2 2/2][RFC] ASoC: wm8978: use component Kuninori Morimoto
2013-09-03 11:26 ` [PATCH v2 0/2][RFC] snd_soc_codec include snd_soc_component Lars-Peter Clausen
2013-09-03 11:32 ` Mark Brown
2013-09-04 0:22 ` Kuninori Morimoto
2013-09-05 2:38 ` [PATCH v3 0/1] " Kuninori Morimoto
2013-09-05 2:39 ` [PATCH 1/1] ASoC: snd_soc_codec includes snd_soc_component Kuninori Morimoto
2013-09-11 0:38 ` [PATCH 0/2][RFC] ASoC: add .of_xlate_dai_name and DT support Kuninori Morimoto
2013-09-11 0:39 ` [PATCH 1/2][RFC] ASoC: add .of_xlate_dai_name on snd_soc_component_driver Kuninori Morimoto
2013-09-11 0:40 ` [PATCH 2/2][RFC] ASoC: simple-card: add Device Tree support Kuninori Morimoto
2013-09-11 0:52 ` Fabio Estevam
2013-09-11 1:57 ` Kuninori Morimoto
2013-09-11 10:12 ` Mark Brown
2013-09-11 23:55 ` Kuninori Morimoto
2013-09-12 11:31 ` Sebastian Hesselbarth [this message]
2013-09-12 11:55 ` Mark Brown
2013-09-12 10:39 ` [PATCH 0/2][RFC] ASoC: add .of_xlate_dai_name and DT support Mark Brown
2013-09-17 12:26 ` [PATCH 1/1] ASoC: snd_soc_codec includes snd_soc_component Mark Brown
2013-09-24 6:24 ` [PATCH v2] ASoC: simple-card: add Device Tree support Kuninori Morimoto
[not found] ` <8738oiog00.wl%kuninori.morimoto.gx@renesas.com>
2013-10-03 10:42 ` Mark Brown
[not found] ` <20131003104248.GI27287-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-10-04 0:04 ` [PATCH v3] " Kuninori Morimoto
2013-10-14 17:16 ` Mark Brown
2013-10-24 17:17 ` Mark Rutland
2013-10-25 2:14 ` [PATCH v4] " Kuninori Morimoto
[not found] ` <87iowm9jwv.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-15 5:13 ` Kuninori Morimoto
[not found] ` <87zjp6memo.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-15 10:47 ` Mark Brown
2013-11-15 15:50 ` Mark Rutland
2013-11-18 0:42 ` Kuninori Morimoto
2013-11-18 11:36 ` Mark Rutland
[not found] ` <20131118113617.GC30853-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-18 12:41 ` [alsa-devel] " Mark Brown
2013-11-19 2:03 ` Kuninori Morimoto
2013-11-20 16:24 ` Mark Rutland
[not found] ` <20131120162403.GA22479-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-21 0:12 ` [alsa-devel] " Kuninori Morimoto
2013-12-02 16:24 ` Mark Rutland
[not found] ` <20131115155028.GE24831-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-18 3:19 ` [PATCH v5] " Kuninori Morimoto
[not found] ` <87bo1i75xp.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-29 1:11 ` Kuninori Morimoto
[not found] ` <8761rc57wd.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-29 12:33 ` Mark Brown
2013-11-18 14:12 ` [PATCH v4] " Rob Herring
[not found] ` <CAL_JsqKLd4CbfD6PifXrwWxbyJqnvAViYkXQ63TBniQBPPzp4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-18 14:31 ` Mark Brown
2013-11-19 2:36 ` [alsa-devel] " Kuninori Morimoto
[not found] ` <87li0ldso8.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-11-20 6:25 ` [PATCH v6] " Kuninori Morimoto
2013-12-02 12:42 ` Mark Brown
[not found] ` <20131202124235.GA27568-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-12-03 0:07 ` [alsa-devel] " Kuninori Morimoto
2013-11-20 14:20 ` [alsa-devel] [PATCH v4] " Rob Herring
[not found] ` <CAL_Jsq+ZsrU5S6B_V8ruLK141LxTR2fd9Re5EWmp47LY+ALDow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-20 16:02 ` Mark Brown
2013-11-21 0:41 ` Kuninori Morimoto
[not found] ` <871u2aziuu.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-12-02 4:57 ` Kuninori Morimoto
2013-10-25 13:13 ` [PATCH v3] " Mark Brown
[not found] ` <20131025131357.GB12932-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-10-30 0:39 ` [alsa-devel] " Kuninori Morimoto
[not found] ` <87sivjk2xj.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2013-10-31 0:31 ` Mark Brown
[not found] ` <20131031003156.GY2493-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-10-31 1:11 ` Kuninori Morimoto
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=5231A607.5080701@gmail.com \
--to=sebastian.hesselbarth@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@gmail.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=tiwai@suse.de \
/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.