linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: add SSI-to-DMA properties to Freescale MPC8610 HPCD device tree
@ 2008-08-06 16:48 Timur Tabi
  2008-09-04 20:09 ` Timur Tabi
  2008-09-17 20:06 ` Kumar Gala
  0 siblings, 2 replies; 3+ messages in thread
From: Timur Tabi @ 2008-08-06 16:48 UTC (permalink / raw)
  To: galak, linuxppc-dev

Add the fsl,playback-dma and fsl,capture-dma properties to the Freescale
MPC8610 HPCD device tree.  These properties connect the SSI nodes to the
DMA nodes for the DMA channels that the SSI should use.  Also update the
ssi.txt documentation.

These properties will be needed when the ASoC V2 version of the Freescale
MPC8610 device drivers are merged into the mainline.

Signed-off-by: Timur Tabi <timur@freescale.com>
---
 Documentation/powerpc/dts-bindings/fsl/ssi.txt |   15 +++++++++++++++
 arch/powerpc/boot/dts/mpc8610_hpcd.dts         |    8 +++++---
 2 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/Documentation/powerpc/dts-bindings/fsl/ssi.txt b/Documentation/powerpc/dts-bindings/fsl/ssi.txt
index d100555..5d98413 100644
--- a/Documentation/powerpc/dts-bindings/fsl/ssi.txt
+++ b/Documentation/powerpc/dts-bindings/fsl/ssi.txt
@@ -24,6 +24,12 @@ Required properties:
 		    "rj-master" - r.j., SSI is clock master
 		    "ac97-slave" - AC97 mode, SSI is clock slave
 		    "ac97-master" - AC97 mode, SSI is clock master
+- fsl,playback-dma: phandle to a DMA node for the DMA channel to use for
+		    playback of audio.  This is typically dictated by SOC
+		    design.  See the notes below.
+- fsl,capture-dma:  phandle to a DMA node for the DMA channel to use for
+		    capture (recording) of audio.  This is typically dictated
+		    by SOC design.  See the notes below.
 
 Optional properties:
 - codec-handle	  : phandle to a 'codec' node that defines an audio
@@ -36,3 +42,12 @@ Child 'codec' node required properties:
 Child 'codec' node optional properties:
 - clock-frequency  : The frequency of the input clock, which typically
                      comes from an on-board dedicated oscillator.
+
+Notes on fsl,playback-dma and fsl,capture-dma:
+
+On SOCs that have an SSI, specific DMA channels are hard-wired for playback
+and capture.  On the MPC8610, for example, SSI1 must use DMA channel 0 for
+playback and DMA channel 1 for capture.  SSI2 must use DMA channel 2 for
+playback and DMA channel 3 for capture.  The developer can choose which
+DMA controller to use, but the channels themselves are hard-wired.  The
+purpose of these two properties is to represent this hardware design.
diff --git a/arch/powerpc/boot/dts/mpc8610_hpcd.dts b/arch/powerpc/boot/dts/mpc8610_hpcd.dts
index 666185f..2a2b84f 100644
--- a/arch/powerpc/boot/dts/mpc8610_hpcd.dts
+++ b/arch/powerpc/boot/dts/mpc8610_hpcd.dts
@@ -202,7 +202,7 @@
 			fsl,has-rstcr;
 		};
 
-		i2s@16000 {
+		ssi@16000 {
 			compatible = "fsl,mpc8610-ssi";
 			cell-index = <0>;
 			reg = <0x16000 0x100>;
@@ -210,6 +210,8 @@
 			interrupts = <62 2>;
 			fsl,mode = "i2s-slave";
 			codec-handle = <&cs4270>;
+			fsl,playback-dma = <&dma00>;
+			fsl,capture-dma = <&dma01>;
 		};
 
 		ssi@16100 {
@@ -228,7 +230,7 @@
 			reg = <0x21300 0x4>; /* DMA general status register */
 			ranges = <0x0 0x21100 0x200>;
 
-			dma-channel@0 {
+			dma00: dma-channel@0 {
 				compatible = "fsl,mpc8610-dma-channel",
 					"fsl,eloplus-dma-channel";
 				cell-index = <0>;
@@ -236,7 +238,7 @@
 				interrupt-parent = <&mpic>;
 				interrupts = <20 2>;
 			};
-			dma-channel@1 {
+			dma01: dma-channel@1 {
 				compatible = "fsl,mpc8610-dma-channel",
 					"fsl,eloplus-dma-channel";
 				cell-index = <1>;
-- 
1.5.5

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

* Re: [PATCH] powerpc: add SSI-to-DMA properties to Freescale MPC8610 HPCD device tree
  2008-08-06 16:48 [PATCH] powerpc: add SSI-to-DMA properties to Freescale MPC8610 HPCD device tree Timur Tabi
@ 2008-09-04 20:09 ` Timur Tabi
  2008-09-17 20:06 ` Kumar Gala
  1 sibling, 0 replies; 3+ messages in thread
From: Timur Tabi @ 2008-09-04 20:09 UTC (permalink / raw)
  To: galak, linuxppc-dev

On Wed, Aug 6, 2008 at 11:48 AM, Timur Tabi <timur@freescale.com> wrote:
> Add the fsl,playback-dma and fsl,capture-dma properties to the Freescale
> MPC8610 HPCD device tree.  These properties connect the SSI nodes to the
> DMA nodes for the DMA channels that the SSI should use.  Also update the
> ssi.txt documentation.
>
> These properties will be needed when the ASoC V2 version of the Freescale
> MPC8610 device drivers are merged into the mainline.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---

Kumar, any thoughts on this patch?

-- 
Timur Tabi
Linux kernel developer at Freescale

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

* Re: [PATCH] powerpc: add SSI-to-DMA properties to Freescale MPC8610 HPCD device tree
  2008-08-06 16:48 [PATCH] powerpc: add SSI-to-DMA properties to Freescale MPC8610 HPCD device tree Timur Tabi
  2008-09-04 20:09 ` Timur Tabi
@ 2008-09-17 20:06 ` Kumar Gala
  1 sibling, 0 replies; 3+ messages in thread
From: Kumar Gala @ 2008-09-17 20:06 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev


On Aug 6, 2008, at 11:48 AM, Timur Tabi wrote:

> Add the fsl,playback-dma and fsl,capture-dma properties to the  
> Freescale
> MPC8610 HPCD device tree.  These properties connect the SSI nodes to  
> the
> DMA nodes for the DMA channels that the SSI should use.  Also update  
> the
> ssi.txt documentation.
>
> These properties will be needed when the ASoC V2 version of the  
> Freescale
> MPC8610 device drivers are merged into the mainline.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
> Documentation/powerpc/dts-bindings/fsl/ssi.txt |   15 +++++++++++++++
> arch/powerpc/boot/dts/mpc8610_hpcd.dts         |    8 +++++---
> 2 files changed, 20 insertions(+), 3 deletions(-)

applied.

- k

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

end of thread, other threads:[~2008-09-17 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 16:48 [PATCH] powerpc: add SSI-to-DMA properties to Freescale MPC8610 HPCD device tree Timur Tabi
2008-09-04 20:09 ` Timur Tabi
2008-09-17 20:06 ` Kumar Gala

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