diff mbox

[8/9] ARM: dts: iwg22d-sodimm: Sound DMA support via SRC on DTS

Message ID 1513800125-53213-9-git-send-email-biju.das@bp.renesas.com (mailing list archive)
State Accepted
Commit 5ce5faa6fcf8b643ab91f48b972fd850f33d8f57
Delegated to: Simon Horman
Headers show

Commit Message

Biju Das Dec. 20, 2017, 8:02 p.m. UTC
DMA transfer to/from SRC

     DMA      DMApp
[MEM] -> [SRC] -> [SSIU] -> [SSI]

     DMA      DMApp
[MEM] <- [SRC] <- [SSIU] <- [SSI]

Current sound driver is supporting SSI/SRC random connection.
So, this patch is trying
SSI3 -> SRC3
SSI4 <- SRC4

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
 arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Horman Dec. 21, 2017, 10:44 a.m. UTC | #1
On Wed, Dec 20, 2017 at 08:02:04PM +0000, Biju Das wrote:
> DMA transfer to/from SRC
> 
>      DMA      DMApp
> [MEM] -> [SRC] -> [SSIU] -> [SSI]
> 
>      DMA      DMApp
> [MEM] <- [SRC] <- [SSIU] <- [SSI]
> 
> Current sound driver is supporting SSI/SRC random connection.
> So, this patch is trying
> SSI3 -> SRC3
> SSI4 <- SRC4

I am curious to know why the selection here differs from that
present in iwg20d-q7-common. Is it an arbitrary decision?

Likewise for other uses of ssi*, src* and dvc* in this patchset.

> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> ---
>  arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> index 0f880c1..2cac57c 100644
> --- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> +++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> @@ -183,8 +183,8 @@
>  
>  	rcar_sound,dai {
>  		dai0 {
> -			playback = <&ssi3>;
> -			capture = <&ssi4>;
> +			playback = <&ssi3 &src3>;
> +			capture = <&ssi4 &src4>;
>  		};
>  	};
>  };
> -- 
> 1.9.1
>
Biju Das Dec. 21, 2017, 11:01 a.m. UTC | #2
Hi Simon,

> -----Original Message-----
> From: Simon Horman [mailto:horms@verge.net.au]
> Sent: 21 December 2017 10:45
> To: Biju Das <biju.das@bp.renesas.com>
> Cc: Rob Herring <robh+dt@kernel.org>; Mark Rutland
> <mark.rutland@arm.com>; Magnus Damm <magnus.damm@gmail.com>;
> Chris Paterson <Chris.Paterson2@renesas.com>; Fabrizio Castro
> <fabrizio.castro@bp.renesas.com>; devicetree@vger.kernel.org; linux-renesas-
> soc@vger.kernel.org
> Subject: Re: [PATCH 8/9] ARM: dts: iwg22d-sodimm: Sound DMA support via
> SRC on DTS
>
> On Wed, Dec 20, 2017 at 08:02:04PM +0000, Biju Das wrote:
> > DMA transfer to/from SRC
> >
> >      DMA      DMApp
> > [MEM] -> [SRC] -> [SSIU] -> [SSI]
> >
> >      DMA      DMApp
> > [MEM] <- [SRC] <- [SSIU] <- [SSI]
> >
> > Current sound driver is supporting SSI/SRC random connection.
> > So, this patch is trying
> > SSI3 -> SRC3
> > SSI4 <- SRC4
>
> I am curious to know why the selection here differs from that present in
> iwg20d-q7-common. Is it an arbitrary decision?
>
> Likewise for other uses of ssi*, src* and dvc* in this patchset.

For ssi*,  on this board, SSI3/4 interface is connected to Audio In/Out.

For src*,  the original bsp from iwave is using src3/src4, also it is arbitrary as per the data sheet.

For dvc*,  Again it is arbitrary as per the data sheet.

> >
> > Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> > Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> > ---
> >  arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> > b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> > index 0f880c1..2cac57c 100644
> > --- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> > +++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> > @@ -183,8 +183,8 @@
> >
> >  rcar_sound,dai {
> >  dai0 {
> > -playback = <&ssi3>;
> > -capture = <&ssi4>;
> > +playback = <&ssi3 &src3>;
> > +capture = <&ssi4 &src4>;
> >  };
> >  };
> >  };
> > --
> > 1.9.1
> >


[https://www2.renesas.eu/media/email/unicef_2017.jpg]

This Christmas, instead of sending out cards, Renesas Electronics Europe have decided to support Unicef with a donation. For further details click here<https://www.unicef.org/> to find out about the valuable work they do, helping children all over the world.
We would like to take this opportunity to wish you a Merry Christmas and a prosperous New Year.



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.
Simon Horman Dec. 21, 2017, 11:20 a.m. UTC | #3
On Thu, Dec 21, 2017 at 11:01:28AM +0000, Biju Das wrote:
> Hi Simon,
> 
> > -----Original Message-----
> > From: Simon Horman [mailto:horms@verge.net.au]
> > Sent: 21 December 2017 10:45
> > To: Biju Das <biju.das@bp.renesas.com>
> > Cc: Rob Herring <robh+dt@kernel.org>; Mark Rutland
> > <mark.rutland@arm.com>; Magnus Damm <magnus.damm@gmail.com>;
> > Chris Paterson <Chris.Paterson2@renesas.com>; Fabrizio Castro
> > <fabrizio.castro@bp.renesas.com>; devicetree@vger.kernel.org; linux-renesas-
> > soc@vger.kernel.org
> > Subject: Re: [PATCH 8/9] ARM: dts: iwg22d-sodimm: Sound DMA support via
> > SRC on DTS
> >
> > On Wed, Dec 20, 2017 at 08:02:04PM +0000, Biju Das wrote:
> > > DMA transfer to/from SRC
> > >
> > >      DMA      DMApp
> > > [MEM] -> [SRC] -> [SSIU] -> [SSI]
> > >
> > >      DMA      DMApp
> > > [MEM] <- [SRC] <- [SSIU] <- [SSI]
> > >
> > > Current sound driver is supporting SSI/SRC random connection.
> > > So, this patch is trying
> > > SSI3 -> SRC3
> > > SSI4 <- SRC4
> >
> > I am curious to know why the selection here differs from that present in
> > iwg20d-q7-common. Is it an arbitrary decision?
> >
> > Likewise for other uses of ssi*, src* and dvc* in this patchset.
> 
> For ssi*,  on this board, SSI3/4 interface is connected to Audio In/Out.
> 
> For src*,  the original bsp from iwave is using src3/src4, also it is arbitrary as per the data sheet.
> 
> For dvc*,  Again it is arbitrary as per the data sheet.

Thanks, understood.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index 0f880c1..2cac57c 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -183,8 +183,8 @@ 
 
 	rcar_sound,dai {
 		dai0 {
-			playback = <&ssi3>;
-			capture = <&ssi4>;
+			playback = <&ssi3 &src3>;
+			capture = <&ssi4 &src4>;
 		};
 	};
 };