* [PATCH 0/3] ASoC: atmel_ssc_dai: add option to choose clock
@ 2014-01-14 3:25 Bo Shen
2014-01-14 3:25 ` [PATCH 3/3] Binding: atmel-wm8904: " Bo Shen
0 siblings, 1 reply; 7+ messages in thread
From: Bo Shen @ 2014-01-14 3:25 UTC (permalink / raw)
To: broonie
Cc: Mark Rutland, alsa-devel, Mark Brown, Takashi Iwai, Linus Walleij,
nicolas.ferre, linux-kernel, Bo Shen, Lars-Peter Clausen,
linux-doc, Wolfram Sang, plagnioj, devicetree, Pawel Moll,
Stephen Warren, linux-sound, Rob Herring, linux-arm-kernel,
Ian Campbell, Liam Girdwood, Rob Landley
When SSC work in slave mode, the clock can come from TK pin and also
can come from RK pin, this is hardware design decided. So, make it
available to choose where the clock from.
Bo Shen (3):
ASoC: atmel_ssc_dai: make option to choose clock
ASoC: atmel_wm8904: make it available to choose clock
Binding: atmel-wm8904: add option to choose clock
Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++
sound/soc/atmel/atmel_ssc_dai.c | 16 ++++++++++++----
sound/soc/atmel/atmel_ssc_dai.h | 1 +
sound/soc/atmel/atmel_wm8904.c | 10 ++++++++++
4 files changed, 25 insertions(+), 4 deletions(-)
--
1.8.5.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock
2014-01-14 3:25 [PATCH 0/3] ASoC: atmel_ssc_dai: add option to choose clock Bo Shen
@ 2014-01-14 3:25 ` Bo Shen
2014-01-15 11:54 ` Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <1389669956-2304-4-git-send-email-voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
0 siblings, 2 replies; 7+ messages in thread
From: Bo Shen @ 2014-01-14 3:25 UTC (permalink / raw)
To: broonie
Cc: nicolas.ferre, plagnioj, linux-sound, alsa-devel,
linux-arm-kernel, Bo Shen, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Ian Campbell, Rob Landley, Mark Brown, devicetree,
linux-doc, linux-kernel
Add the option to choose clock output on which pin connect to SSC.
Default is on TK pin to SSC, add clk_from_rk_pin option, the clock
is on RK pin to SSC.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
index 8bbe50c..68a5c1a 100644
--- a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
+++ b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
@@ -33,6 +33,8 @@ Required properties:
Optional properties:
- pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
+ - clk_from_rk_pin: according to hardware design, clk privide on rk pin
+ to ssc device
Example:
sound {
--
1.8.5.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock
2014-01-14 3:25 ` [PATCH 3/3] Binding: atmel-wm8904: " Bo Shen
@ 2014-01-15 11:54 ` Jean-Christophe PLAGNIOL-VILLARD
2014-01-16 1:33 ` Bo Shen
[not found] ` <1389669956-2304-4-git-send-email-voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
1 sibling, 1 reply; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2014-01-15 11:54 UTC (permalink / raw)
To: Bo Shen
Cc: Mark Rutland, devicetree, alsa-devel, linux-doc, Pawel Moll,
Stephen Warren, Ian Campbell, nicolas.ferre, linux-kernel,
Rob Herring, broonie, linux-sound, Rob Landley, Mark Brown,
linux-arm-kernel
On 11:25 Tue 14 Jan , Bo Shen wrote:
> Add the option to choose clock output on which pin connect to SSC.
> Default is on TK pin to SSC, add clk_from_rk_pin option, the clock
> is on RK pin to SSC.
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
>
> Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> index 8bbe50c..68a5c1a 100644
> --- a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> +++ b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> @@ -33,6 +33,8 @@ Required properties:
>
> Optional properties:
> - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
> + - clk_from_rk_pin: according to hardware design, clk privide on rk pin
provide
?? no example?
> + to ssc device
>
> Example:
> sound {
> --
> 1.8.5.2
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock
2014-01-15 11:54 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2014-01-16 1:33 ` Bo Shen
2014-01-16 11:03 ` Mark Brown
0 siblings, 1 reply; 7+ messages in thread
From: Bo Shen @ 2014-01-16 1:33 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: broonie, nicolas.ferre, linux-sound, alsa-devel, linux-arm-kernel,
Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Ian Campbell, Rob Landley, Mark Brown, devicetree, linux-doc,
linux-kernel
Hi J,
On 01/15/2014 07:54 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 11:25 Tue 14 Jan , Bo Shen wrote:
>> Add the option to choose clock output on which pin connect to SSC.
>> Default is on TK pin to SSC, add clk_from_rk_pin option, the clock
>> is on RK pin to SSC.
>>
>> Signed-off-by: Bo Shen <voice.shen@atmel.com>
>> ---
>>
>> Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
>> index 8bbe50c..68a5c1a 100644
>> --- a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
>> +++ b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
>> @@ -33,6 +33,8 @@ Required properties:
>>
>> Optional properties:
>> - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
>> + - clk_from_rk_pin: according to hardware design, clk privide on rk pin
> provide
>
> ?? no example?
If this patch set is acceptable. The sama5 audio will use it (I will
send patch after this patch set). Do I still need to put the example in
the binding document?
>> + to ssc device
>>
>> Example:
>> sound {
>> --
>> 1.8.5.2
>>
Best Regards,
Bo Shen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock
2014-01-16 1:33 ` Bo Shen
@ 2014-01-16 11:03 ` Mark Brown
0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2014-01-16 11:03 UTC (permalink / raw)
To: Bo Shen
Cc: Mark Rutland, devicetree, alsa-devel, linux-doc, Pawel Moll,
Stephen Warren, Ian Campbell, nicolas.ferre, linux-kernel,
linux-sound, Rob Herring, Rob Landley,
Jean-Christophe PLAGNIOL-VILLARD, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 671 bytes --]
On Thu, Jan 16, 2014 at 09:33:20AM +0800, Bo Shen wrote:
> On 01/15/2014 07:54 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> >> Optional properties:
> >> - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
> >>+ - clk_from_rk_pin: according to hardware design, clk privide on rk pin
> > provide
> > ?? no example?
> If this patch set is acceptable. The sama5 audio will use it (I will
> send patch after this patch set). Do I still need to put the example
> in the binding document?
It doesn't seem terribly worthwhile to have the example include every
boolean property, it's not like people should find it hard to work out
how to use them.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <1389669956-2304-4-git-send-email-voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock
[not found] ` <1389669956-2304-4-git-send-email-voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
@ 2014-01-15 17:17 ` Nicolas Ferre
2014-01-16 1:38 ` Bo Shen
0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Ferre @ 2014-01-15 17:17 UTC (permalink / raw)
To: Bo Shen, broonie-DgEjT+Ai2ygdnm+yROfE0A,
devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: plagnioj-sclMFOaUSTBWk0Htik3J/w,
linux-sound-u79uwXL29TY76Z2rM5mHXA,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell,
Rob Landley, Mark Brown, linux-doc-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On 14/01/2014 04:25, Bo Shen :
> Add the option to choose clock output on which pin connect to SSC.
> Default is on TK pin to SSC, add clk_from_rk_pin option, the clock
Please do not use "_" in DT properties. It is a common pattern to use
"-" instead.
> is on RK pin to SSC.
>
> Signed-off-by: Bo Shen <voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
> ---
>
> Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> index 8bbe50c..68a5c1a 100644
> --- a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> +++ b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> @@ -33,6 +33,8 @@ Required properties:
>
> Optional properties:
> - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
> + - clk_from_rk_pin: according to hardware design, clk privide on rk pin
typo + more description is needed:
Please tell that it is a boolean property, that by default it is using
the TK pin (like in the commit message in fact).
Bye,
> + to ssc device
>
> Example:
> sound {
>
--
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] Binding: atmel-wm8904: add option to choose clock
2014-01-15 17:17 ` Nicolas Ferre
@ 2014-01-16 1:38 ` Bo Shen
0 siblings, 0 replies; 7+ messages in thread
From: Bo Shen @ 2014-01-16 1:38 UTC (permalink / raw)
To: Nicolas Ferre
Cc: broonie, devicetree, plagnioj, linux-sound, alsa-devel,
linux-arm-kernel, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Ian Campbell, Rob Landley, Mark Brown, linux-doc,
linux-kernel
Hi Nicolas,
On 01/16/2014 01:17 AM, Nicolas Ferre wrote:
> On 14/01/2014 04:25, Bo Shen :
>> Add the option to choose clock output on which pin connect to SSC.
>> Default is on TK pin to SSC, add clk_from_rk_pin option, the clock
>
> Please do not use "_" in DT properties. It is a common pattern to use
> "-" instead.
OK, I will use "-" instead in next version.
>> is on RK pin to SSC.
>>
>> Signed-off-by: Bo Shen <voice.shen@atmel.com>
>> ---
>>
>> Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
>> index 8bbe50c..68a5c1a 100644
>> --- a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
>> +++ b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
>> @@ -33,6 +33,8 @@ Required properties:
>>
>> Optional properties:
>> - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
>> + - clk_from_rk_pin: according to hardware design, clk privide on rk pin
>
> typo + more description is needed:
> Please tell that it is a boolean property, that by default it is using
> the TK pin (like in the commit message in fact).
OK, I will add more description for it.
Thanks
> Bye,
>
>> + to ssc device
>>
>> Example:
>> sound {
>>
>
>
Best Regards,
Bo Shen
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-01-16 11:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 3:25 [PATCH 0/3] ASoC: atmel_ssc_dai: add option to choose clock Bo Shen
2014-01-14 3:25 ` [PATCH 3/3] Binding: atmel-wm8904: " Bo Shen
2014-01-15 11:54 ` Jean-Christophe PLAGNIOL-VILLARD
2014-01-16 1:33 ` Bo Shen
2014-01-16 11:03 ` Mark Brown
[not found] ` <1389669956-2304-4-git-send-email-voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2014-01-15 17:17 ` Nicolas Ferre
2014-01-16 1:38 ` Bo Shen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).