SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support
@ 2015-12-15 13:26 Magnus Damm
  2015-12-16  8:21 ` Geert Uytterhoeven
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Magnus Damm @ 2015-12-15 13:26 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm+renesas@opensource.se>

This hooks up SYS-DMAC0 as r8a7795 device node. Note that the
generic compat string is used, this should be replaced by
SoC-specific compat string. Not for upstream merge.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm64/boot/dts/renesas/r8a7795.dtsi |   30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

--- 0003/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi	2015-11-10 20:48:56.410513000 +0900
@@ -295,7 +295,35 @@
 		};
 
 		dmac0: dma-controller@e6700000 {
-			/* Empty node for now */
+			compatible = "renesas,rcar-dmac";
+			reg = <0 0xe6700000 0 0x10000>;
+			interrupts =	<0 119 IRQ_TYPE_LEVEL_HIGH
+					 0 200 IRQ_TYPE_LEVEL_HIGH
+					 0 201 IRQ_TYPE_LEVEL_HIGH
+					 0 202 IRQ_TYPE_LEVEL_HIGH
+					 0 203 IRQ_TYPE_LEVEL_HIGH
+					 0 204 IRQ_TYPE_LEVEL_HIGH
+					 0 205 IRQ_TYPE_LEVEL_HIGH
+					 0 206 IRQ_TYPE_LEVEL_HIGH
+					 0 207 IRQ_TYPE_LEVEL_HIGH
+					 0 208 IRQ_TYPE_LEVEL_HIGH
+					 0 209 IRQ_TYPE_LEVEL_HIGH
+					 0 210 IRQ_TYPE_LEVEL_HIGH
+					 0 211 IRQ_TYPE_LEVEL_HIGH
+					 0 212 IRQ_TYPE_LEVEL_HIGH
+					 0 213 IRQ_TYPE_LEVEL_HIGH
+					 0 214 IRQ_TYPE_LEVEL_HIGH
+					 0 215 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "error",
+					"ch0", "ch1", "ch2", "ch3",
+					"ch4", "ch5", "ch6", "ch7",
+					"ch8", "ch9", "ch10", "ch11",
+					"ch12", "ch13", "ch14", "ch15";
+			clocks = <&cpg CPG_MOD 219>;
+			clock-names = "fck";
+			power-domains = <&cpg>;
+			#dma-cells = <1>;
+			dma-channels = <16>;
 		};
 
 		dmac1: dma-controller@e7300000 {

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

* Re: [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support
  2015-12-15 13:26 [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support Magnus Damm
@ 2015-12-16  8:21 ` Geert Uytterhoeven
  2015-12-17  0:35 ` Simon Horman
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-12-16  8:21 UTC (permalink / raw)
  To: linux-sh

On Tue, Dec 15, 2015 at 2:26 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
>
> This hooks up SYS-DMAC0 as r8a7795 device node. Note that the
> generic compat string is used, this should be replaced by
> SoC-specific compat string. Not for upstream merge.
>
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
>
>  arch/arm64/boot/dts/renesas/r8a7795.dtsi |   30 +++++++++++++++++++++++++++++-
>  1 file changed, 29 insertions(+), 1 deletion(-)
>
> --- 0003/arch/arm64/boot/dts/renesas/r8a7795.dtsi
> +++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi       2015-11-10 20:48:56.410513000 +0900
> @@ -295,7 +295,35 @@
>                 };
>
>                 dmac0: dma-controller@e6700000 {
> -                       /* Empty node for now */
> +                       compatible = "renesas,rcar-dmac";
> +                       reg = <0 0xe6700000 0 0x10000>;
> +                       interrupts =    <0 119 IRQ_TYPE_LEVEL_HIGH

GIC_SPI

(we should fix up all interrupts properties in R-Car Gen2 DTSes, too)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support
  2015-12-15 13:26 [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support Magnus Damm
  2015-12-16  8:21 ` Geert Uytterhoeven
@ 2015-12-17  0:35 ` Simon Horman
  2015-12-17  8:06 ` Geert Uytterhoeven
  2015-12-17 10:30 ` Magnus Damm
  3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2015-12-17  0:35 UTC (permalink / raw)
  To: linux-sh

On Wed, Dec 16, 2015 at 09:21:22AM +0100, Geert Uytterhoeven wrote:
> On Tue, Dec 15, 2015 at 2:26 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> > From: Magnus Damm <damm+renesas@opensource.se>
> >
> > This hooks up SYS-DMAC0 as r8a7795 device node. Note that the
> > generic compat string is used, this should be replaced by
> > SoC-specific compat string. Not for upstream merge.
> >
> > Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> > ---
> >
> >  arch/arm64/boot/dts/renesas/r8a7795.dtsi |   30 +++++++++++++++++++++++++++++-
> >  1 file changed, 29 insertions(+), 1 deletion(-)
> >
> > --- 0003/arch/arm64/boot/dts/renesas/r8a7795.dtsi
> > +++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi       2015-11-10 20:48:56.410513000 +0900
> > @@ -295,7 +295,35 @@
> >                 };
> >
> >                 dmac0: dma-controller@e6700000 {
> > -                       /* Empty node for now */
> > +                       compatible = "renesas,rcar-dmac";
> > +                       reg = <0 0xe6700000 0 0x10000>;
> > +                       interrupts =    <0 119 IRQ_TYPE_LEVEL_HIGH
> 
> GIC_SPI
> 
> (we should fix up all interrupts properties in R-Car Gen2 DTSes, too)

Can I clarify that the idea is to substitute the first cell of the
value of interrupt properties as follows:
* s/0/GIC_SPI/
* s/1/GIC_PPI/

If so, I can add this to my (long) integration todo list.
I'm also quite happy for someone else to handle this.

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

* Re: [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support
  2015-12-15 13:26 [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support Magnus Damm
  2015-12-16  8:21 ` Geert Uytterhoeven
  2015-12-17  0:35 ` Simon Horman
@ 2015-12-17  8:06 ` Geert Uytterhoeven
  2015-12-17 10:30 ` Magnus Damm
  3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-12-17  8:06 UTC (permalink / raw)
  To: linux-sh

Hi Simon,

On Thu, Dec 17, 2015 at 1:35 AM, Simon Horman <horms@verge.net.au> wrote:
>> > +                       interrupts =    <0 119 IRQ_TYPE_LEVEL_HIGH
>>
>> GIC_SPI
>>
>> (we should fix up all interrupts properties in R-Car Gen2 DTSes, too)
>
> Can I clarify that the idea is to substitute the first cell of the
> value of interrupt properties as follows:
> * s/0/GIC_SPI/
> * s/1/GIC_PPI/

Indeed.

> If so, I can add this to my (long) integration todo list.
> I'm also quite happy for someone else to handle this.

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support
  2015-12-15 13:26 [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support Magnus Damm
                   ` (2 preceding siblings ...)
  2015-12-17  8:06 ` Geert Uytterhoeven
@ 2015-12-17 10:30 ` Magnus Damm
  3 siblings, 0 replies; 5+ messages in thread
From: Magnus Damm @ 2015-12-17 10:30 UTC (permalink / raw)
  To: linux-sh

On Wed, Dec 16, 2015 at 5:21 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Tue, Dec 15, 2015 at 2:26 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> From: Magnus Damm <damm+renesas@opensource.se>
>>
>> This hooks up SYS-DMAC0 as r8a7795 device node. Note that the
>> generic compat string is used, this should be replaced by
>> SoC-specific compat string. Not for upstream merge.
>>
>> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
>> ---
>>
>>  arch/arm64/boot/dts/renesas/r8a7795.dtsi |   30 +++++++++++++++++++++++++++++-
>>  1 file changed, 29 insertions(+), 1 deletion(-)
>>
>> --- 0003/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>> +++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi       2015-11-10 20:48:56.410513000 +0900
>> @@ -295,7 +295,35 @@
>>                 };
>>
>>                 dmac0: dma-controller@e6700000 {
>> -                       /* Empty node for now */
>> +                       compatible = "renesas,rcar-dmac";
>> +                       reg = <0 0xe6700000 0 0x10000>;
>> +                       interrupts =    <0 119 IRQ_TYPE_LEVEL_HIGH
>
> GIC_SPI
>
> (we should fix up all interrupts properties in R-Car Gen2 DTSes, too)

Thanks, totally agree!

/ magnus

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

end of thread, other threads:[~2015-12-17 10:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-15 13:26 [PATCH/RFC 02/03] ARM: shmobile: r8a7795: Hack up SYS-DMAC0 support Magnus Damm
2015-12-16  8:21 ` Geert Uytterhoeven
2015-12-17  0:35 ` Simon Horman
2015-12-17  8:06 ` Geert Uytterhoeven
2015-12-17 10:30 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox