devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ASoC: atmel_ssc_dai: add option to choose clock
@ 2014-02-10  6:09 Bo Shen
  2014-02-10  6:09 ` [PATCH v3 2/2] Binding: atmel-ssc: " Bo Shen
  2014-02-12 17:23 ` [PATCH v3 0/2] ASoC: atmel_ssc_dai: " Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Bo Shen @ 2014-02-10  6:09 UTC (permalink / raw)
  To: broonie
  Cc: Mark Rutland, alsa-devel, Stephen Warren, linux-doc, Takashi Iwai,
	nicolas.ferre, Bo Shen, Chas Williams, Lars-Peter Clausen,
	Pawel Moll, linux-atm-general, plagnioj, devicetree,
	Arnd Bergmann, Ian Campbell, linux-sound, Rob Herring,
	linux-arm-kernel, Richard Genoud, Greg Kroah-Hartman,
	Liam Girdwood, linux-kernel, Rob Landley, netdev, Mark Brown

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 v3:
  - Move the property from card to ssc device
Series-changes: 2
  - using "-" replace "_" in binding document

Bo Shen (2):
  ASoC: atmel_ssc_dai: make option to choose clock
  Binding: atmel-ssc: add option to choose clock

 Documentation/devicetree/bindings/misc/atmel-ssc.txt |  8 ++++++++
 drivers/misc/atmel-ssc.c                             |  6 ++++++
 include/linux/atmel-ssc.h                            |  1 +
 sound/soc/atmel/atmel_ssc_dai.c                      | 13 +++++++++----
 4 files changed, 24 insertions(+), 4 deletions(-)

-- 
1.8.5.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v3 2/2] Binding: atmel-ssc: add option to choose clock
  2014-02-10  6:09 [PATCH v3 0/2] ASoC: atmel_ssc_dai: add option to choose clock Bo Shen
@ 2014-02-10  6:09 ` Bo Shen
  2014-02-10  9:21   ` Nicolas Ferre
  2014-02-12 17:23 ` [PATCH v3 0/2] ASoC: atmel_ssc_dai: " Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Bo Shen @ 2014-02-10  6:09 UTC (permalink / raw)
  To: broonie
  Cc: Mark Rutland, devicetree, alsa-devel, Rob Landley, Pawel Moll,
	Stephen Warren, Richard Genoud, linux-kernel, Ian Campbell,
	nicolas.ferre, Mark Brown, linux-sound, linux-doc, Rob Herring,
	Bo Shen, plagnioj, linux-arm-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 v3:
  - None
Series-changes: 2
  - using "-" replace "_" in binding document

 Documentation/devicetree/bindings/misc/atmel-ssc.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/misc/atmel-ssc.txt b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
index a45ae08..5c1e14e 100644
--- a/Documentation/devicetree/bindings/misc/atmel-ssc.txt
+++ b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
@@ -14,6 +14,14 @@ Required properties for devices compatible with "atmel,at91sam9g45-ssc":
   See Documentation/devicetree/bindings/dma/atmel-dma.txt for details.
 - dma-names: Must be "tx", "rx".
 
+Optional properties:
+  - 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.
+
 Examples:
 - PDC transfer:
 ssc0: ssc@fffbc000 {
-- 
1.8.5.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 2/2] Binding: atmel-ssc: add option to choose clock
  2014-02-10  6:09 ` [PATCH v3 2/2] Binding: atmel-ssc: " Bo Shen
@ 2014-02-10  9:21   ` Nicolas Ferre
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2014-02-10  9:21 UTC (permalink / raw)
  To: Bo Shen, broonie
  Cc: plagnioj, linux-sound, alsa-devel, linux-arm-kernel, Rob Herring,
	Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell,
	Rob Landley, Mark Brown, Richard Genoud, devicetree, linux-doc,
	linux-kernel

On 10/02/2014 07:09, Bo Shen :
> 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>

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

> ---
> Changes in v3:
>   - None
> Series-changes: 2
>   - using "-" replace "_" in binding document
> 
>  Documentation/devicetree/bindings/misc/atmel-ssc.txt | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/misc/atmel-ssc.txt b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
> index a45ae08..5c1e14e 100644
> --- a/Documentation/devicetree/bindings/misc/atmel-ssc.txt
> +++ b/Documentation/devicetree/bindings/misc/atmel-ssc.txt
> @@ -14,6 +14,14 @@ Required properties for devices compatible with "atmel,at91sam9g45-ssc":
>    See Documentation/devicetree/bindings/dma/atmel-dma.txt for details.
>  - dma-names: Must be "tx", "rx".
>  
> +Optional properties:
> +  - 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.
> +
>  Examples:
>  - PDC transfer:
>  ssc0: ssc@fffbc000 {
> 


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 0/2] ASoC: atmel_ssc_dai: add option to choose clock
  2014-02-10  6:09 [PATCH v3 0/2] ASoC: atmel_ssc_dai: add option to choose clock Bo Shen
  2014-02-10  6:09 ` [PATCH v3 2/2] Binding: atmel-ssc: " Bo Shen
@ 2014-02-12 17:23 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2014-02-12 17:23 UTC (permalink / raw)
  To: Bo Shen
  Cc: Mark Rutland, alsa-devel, Stephen Warren, linux-doc, Takashi Iwai,
	nicolas.ferre, Liam Girdwood, Chas Williams, Lars-Peter Clausen,
	Arnd Bergmann, linux-atm-general, plagnioj, devicetree,
	Pawel Moll, Ian Campbell, linux-sound, Rob Herring,
	linux-arm-kernel, Richard Genoud, Greg Kroah-Hartman,
	linux-kernel, Rob Landley, netdev


[-- Attachment #1.1: Type: text/plain, Size: 259 bytes --]

On Mon, Feb 10, 2014 at 02:09:44PM +0800, Bo Shen wrote:
> 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.

Applied, thanks.

[-- 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] 4+ messages in thread

end of thread, other threads:[~2014-02-12 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-10  6:09 [PATCH v3 0/2] ASoC: atmel_ssc_dai: add option to choose clock Bo Shen
2014-02-10  6:09 ` [PATCH v3 2/2] Binding: atmel-ssc: " Bo Shen
2014-02-10  9:21   ` Nicolas Ferre
2014-02-12 17:23 ` [PATCH v3 0/2] ASoC: atmel_ssc_dai: " Mark Brown

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).