* [PATCH v2 0/3] ASoC: atmel_ssc_dai: add option to choose clock
@ 2014-01-27 6:55 Bo Shen
2014-01-27 6:55 ` [PATCH v2 3/3] Binding: atmel-wm8904: " Bo Shen
0 siblings, 1 reply; 3+ messages in thread
From: Bo Shen @ 2014-01-27 6:55 UTC (permalink / raw)
To: broonie
Cc: nicolas.ferre, plagnioj, linux-sound, alsa-devel,
linux-arm-kernel, Bo Shen, Jaroslav Kysela, devicetree,
Linus Walleij, linux-doc, Takashi Iwai, linux-kernel,
Stephen Warren, Wolfram Sang, Ian Campbell, Mark Brown,
Liam Girdwood, Lars-Peter Clausen, Pawel Moll, Mark Rutland,
Rob Herring, 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.
Changes in v2:
- using "-" replace "_" in binding document
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 | 6 ++++++
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, 29 insertions(+), 4 deletions(-)
--
1.8.5.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 3/3] Binding: atmel-wm8904: add option to choose clock
2014-01-27 6:55 [PATCH v2 0/3] ASoC: atmel_ssc_dai: add option to choose clock Bo Shen
@ 2014-01-27 6:55 ` Bo Shen
2014-01-27 19:31 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Bo Shen @ 2014-01-27 6:55 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 on which pin input to SSC (as slave).
Default is on TK pin to SSC, add "atmel,clk-from-rk-pin" option to
specify the clock is on RK pin to SSC.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Changes in v2:
- using "-" replace "_" in binding document
Documentation/devicetree/bindings/sound/atmel-wm8904.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
index 8bbe50c..2d86e2b 100644
--- a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
+++ b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
@@ -33,6 +33,12 @@ Required properties:
Optional properties:
- pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
+ - atmel,clk-from-rk-pin: bool property.
+ - When SSC works in slave mode, according to the hardware design, the
+ clock can get from TK pin, and also can get from RK pin. So, add
+ this parameter to choose where the clock from.
+ - By default the clock is from TK pin, if the clock from RK pin, this
+ property is needed.
Example:
sound {
--
1.8.5.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2 3/3] Binding: atmel-wm8904: add option to choose clock
2014-01-27 6:55 ` [PATCH v2 3/3] Binding: atmel-wm8904: " Bo Shen
@ 2014-01-27 19:31 ` Mark Brown
0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2014-01-27 19:31 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, plagnioj, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1117 bytes --]
On Mon, Jan 27, 2014 at 02:55:26PM +0800, Bo Shen wrote:
> diff --git a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> index 8bbe50c..2d86e2b 100644
> --- a/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> +++ b/Documentation/devicetree/bindings/sound/atmel-wm8904.txt
> @@ -33,6 +33,12 @@ Required properties:
>
> Optional properties:
> - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
> + - atmel,clk-from-rk-pin: bool property.
> + - When SSC works in slave mode, according to the hardware design, the
> + clock can get from TK pin, and also can get from RK pin. So, add
> + this parameter to choose where the clock from.
> + - By default the clock is from TK pin, if the clock from RK pin, this
> + property is needed.
Can this be made a property of the SSC device so that it's available for
all cards using it rather than just this one? That would also address
the issue with the way the configuration is passed to the controller
that Lars-Peter identified.
[-- 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] 3+ messages in thread
end of thread, other threads:[~2014-01-27 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27 6:55 [PATCH v2 0/3] ASoC: atmel_ssc_dai: add option to choose clock Bo Shen
2014-01-27 6:55 ` [PATCH v2 3/3] Binding: atmel-wm8904: " Bo Shen
2014-01-27 19:31 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox