* [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support
2014-08-08 14:23 [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Ulrich Hecht
@ 2014-08-08 14:23 ` Ulrich Hecht
2014-08-11 1:12 ` Simon Horman
2014-08-08 14:23 ` [PATCH v2 2/5] ARM: shmobile: r8a7740: clock register bits Ulrich Hecht
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Ulrich Hecht @ 2014-08-08 14:23 UTC (permalink / raw)
To: horms; +Cc: linux-sh, mturquette, devicetree, magnus.damm, Ulrich Hecht
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
index 8a92b5f..b3c0617 100644
--- a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
+++ b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
@@ -11,6 +11,7 @@ Required Properties:
- compatible: Must be one of the following
- "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks
+ - "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks
- "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
- "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
- "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks
--
1.8.4.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support
2014-08-08 14:23 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support Ulrich Hecht
@ 2014-08-11 1:12 ` Simon Horman
2014-08-14 22:37 ` Simon Horman
2014-08-22 1:04 ` Simon Horman
0 siblings, 2 replies; 14+ messages in thread
From: Simon Horman @ 2014-08-11 1:12 UTC (permalink / raw)
To: Ulrich Hecht; +Cc: linux-sh, mturquette, devicetree, magnus.damm
On Fri, Aug 08, 2014 at 04:23:08PM +0200, Ulrich Hecht wrote:
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Mike, could you consider taking this?
> ---
> Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> index 8a92b5f..b3c0617 100644
> --- a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> +++ b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> @@ -11,6 +11,7 @@ Required Properties:
>
> - compatible: Must be one of the following
> - "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks
> + - "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks
> - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
> - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
> - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks
> --
> 1.8.4.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support
2014-08-11 1:12 ` Simon Horman
@ 2014-08-14 22:37 ` Simon Horman
2014-08-22 1:04 ` Simon Horman
1 sibling, 0 replies; 14+ messages in thread
From: Simon Horman @ 2014-08-14 22:37 UTC (permalink / raw)
To: Ulrich Hecht; +Cc: linux-sh, mturquette, devicetree, magnus.damm
On Mon, Aug 11, 2014 at 10:12:14AM +0900, Simon Horman wrote:
> On Fri, Aug 08, 2014 at 04:23:08PM +0200, Ulrich Hecht wrote:
> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
>
> Acked-by: Simon Horman <horms+renesas@verge.net.au>
>
> Mike, could you consider taking this?
Ping
> > ---
> > Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> > index 8a92b5f..b3c0617 100644
> > --- a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> > +++ b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> > @@ -11,6 +11,7 @@ Required Properties:
> >
> > - compatible: Must be one of the following
> > - "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks
> > + - "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks
> > - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
> > - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
> > - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks
> > --
> > 1.8.4.5
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support
2014-08-11 1:12 ` Simon Horman
2014-08-14 22:37 ` Simon Horman
@ 2014-08-22 1:04 ` Simon Horman
2014-08-22 7:44 ` Geert Uytterhoeven
1 sibling, 1 reply; 14+ messages in thread
From: Simon Horman @ 2014-08-22 1:04 UTC (permalink / raw)
To: Ulrich Hecht; +Cc: linux-sh, mturquette, devicetree, magnus.damm
On Mon, Aug 11, 2014 at 10:12:14AM +0900, Simon Horman wrote:
> On Fri, Aug 08, 2014 at 04:23:08PM +0200, Ulrich Hecht wrote:
> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
>
> Acked-by: Simon Horman <horms+renesas@verge.net.au>
>
> Mike, could you consider taking this?
Hi Mike,
I'm wondering if you could take moment to consider this patch.
It is a dependency for enabling ccf and in turn multiplatform on
the r8a7740 SoC.
> > ---
> > Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> > index 8a92b5f..b3c0617 100644
> > --- a/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> > +++ b/Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
> > @@ -11,6 +11,7 @@ Required Properties:
> >
> > - compatible: Must be one of the following
> > - "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks
> > + - "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks
> > - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
> > - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
> > - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks
> > --
> > 1.8.4.5
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support
2014-08-22 1:04 ` Simon Horman
@ 2014-08-22 7:44 ` Geert Uytterhoeven
2014-08-22 8:46 ` Simon Horman
0 siblings, 1 reply; 14+ messages in thread
From: Geert Uytterhoeven @ 2014-08-22 7:44 UTC (permalink / raw)
To: Simon Horman
Cc: Ulrich Hecht, Linux-sh list, Mike Turquette,
devicetree@vger.kernel.org, Magnus Damm
Hi Simon,
On Fri, Aug 22, 2014 at 3:04 AM, Simon Horman <horms@verge.net.au> wrote:
> On Mon, Aug 11, 2014 at 10:12:14AM +0900, Simon Horman wrote:
>> On Fri, Aug 08, 2014 at 04:23:08PM +0200, Ulrich Hecht wrote:
>> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
>>
>> Acked-by: Simon Horman <horms+renesas@verge.net.au>
>>
>> Mike, could you consider taking this?
>
> Hi Mike,
>
> I'm wondering if you could take moment to consider this patch.
> It is a dependency for enabling ccf and in turn multiplatform on
> the r8a7740 SoC.
Sidenote: as this patch only updates the documentation, and the driver
won't use the newly added value (for now), there's no hard dependency.
Furthermore, adding this value is done following the spirit of the existing
values, and thus I think you can just continue going forward with the parts
that fall under the shmobile jurisdiction.
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] 14+ messages in thread
* Re: [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support
2014-08-22 7:44 ` Geert Uytterhoeven
@ 2014-08-22 8:46 ` Simon Horman
2014-08-23 11:11 ` Simon Horman
0 siblings, 1 reply; 14+ messages in thread
From: Simon Horman @ 2014-08-22 8:46 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Ulrich Hecht, Linux-sh list, Mike Turquette,
devicetree@vger.kernel.org, Magnus Damm
On Fri, Aug 22, 2014 at 09:44:09AM +0200, Geert Uytterhoeven wrote:
> Hi Simon,
>
> On Fri, Aug 22, 2014 at 3:04 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Mon, Aug 11, 2014 at 10:12:14AM +0900, Simon Horman wrote:
> >> On Fri, Aug 08, 2014 at 04:23:08PM +0200, Ulrich Hecht wrote:
> >> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> >>
> >> Acked-by: Simon Horman <horms+renesas@verge.net.au>
> >>
> >> Mike, could you consider taking this?
> >
> > Hi Mike,
> >
> > I'm wondering if you could take moment to consider this patch.
> > It is a dependency for enabling ccf and in turn multiplatform on
> > the r8a7740 SoC.
>
> Sidenote: as this patch only updates the documentation, and the driver
> won't use the newly added value (for now), there's no hard dependency.
> Furthermore, adding this value is done following the spirit of the existing
> values, and thus I think you can just continue going forward with the parts
> that fall under the shmobile jurisdiction.
Hi Geert,
I had a conversation with Magnus earlier today and I believe that
all three of us are (now) in agreement on the point you have made above.
I'd like to allow myself the weekend to think about this and
if no issues have surfaced by then I plan to take the remaining
patches of this series into the next branch of the renesas tree.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support
2014-08-22 8:46 ` Simon Horman
@ 2014-08-23 11:11 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2014-08-23 11:11 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Ulrich Hecht, Linux-sh list, Mike Turquette,
devicetree@vger.kernel.org, Magnus Damm
On Fri, Aug 22, 2014 at 05:46:58PM +0900, Simon Horman wrote:
> On Fri, Aug 22, 2014 at 09:44:09AM +0200, Geert Uytterhoeven wrote:
> > Hi Simon,
> >
> > On Fri, Aug 22, 2014 at 3:04 AM, Simon Horman <horms@verge.net.au> wrote:
> > > On Mon, Aug 11, 2014 at 10:12:14AM +0900, Simon Horman wrote:
> > >> On Fri, Aug 08, 2014 at 04:23:08PM +0200, Ulrich Hecht wrote:
> > >> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> > >>
> > >> Acked-by: Simon Horman <horms+renesas@verge.net.au>
> > >>
> > >> Mike, could you consider taking this?
> > >
> > > Hi Mike,
> > >
> > > I'm wondering if you could take moment to consider this patch.
> > > It is a dependency for enabling ccf and in turn multiplatform on
> > > the r8a7740 SoC.
> >
> > Sidenote: as this patch only updates the documentation, and the driver
> > won't use the newly added value (for now), there's no hard dependency.
> > Furthermore, adding this value is done following the spirit of the existing
> > values, and thus I think you can just continue going forward with the parts
> > that fall under the shmobile jurisdiction.
>
> Hi Geert,
>
> I had a conversation with Magnus earlier today and I believe that
> all three of us are (now) in agreement on the point you have made above.
>
> I'd like to allow myself the weekend to think about this and
> if no issues have surfaced by then I plan to take the remaining
> patches of this series into the next branch of the renesas tree.
I have now queued up patches 2 - 5.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v2 2/5] ARM: shmobile: r8a7740: clock register bits
2014-08-08 14:23 [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Ulrich Hecht
2014-08-08 14:23 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support Ulrich Hecht
@ 2014-08-08 14:23 ` Ulrich Hecht
2014-08-22 2:49 ` Simon Horman
2014-08-08 14:23 ` [PATCH v2 3/5] ARM: shmobile: r8a7740: add SoC clocks to DTS Ulrich Hecht
` (3 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Ulrich Hecht @ 2014-08-08 14:23 UTC (permalink / raw)
To: horms; +Cc: linux-sh, mturquette, devicetree, magnus.damm, Ulrich Hecht
Contains the header file with the clock pulse generator and MSTP bits.
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
include/dt-bindings/clock/r8a7740-clock.h | 77 +++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
create mode 100644 include/dt-bindings/clock/r8a7740-clock.h
diff --git a/include/dt-bindings/clock/r8a7740-clock.h b/include/dt-bindings/clock/r8a7740-clock.h
new file mode 100644
index 0000000..f6b4b0f
--- /dev/null
+++ b/include/dt-bindings/clock/r8a7740-clock.h
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2014 Ulrich Hecht
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef __DT_BINDINGS_CLOCK_R8A7740_H__
+#define __DT_BINDINGS_CLOCK_R8A7740_H__
+
+/* CPG */
+#define R8A7740_CLK_SYSTEM 0
+#define R8A7740_CLK_PLLC0 1
+#define R8A7740_CLK_PLLC1 2
+#define R8A7740_CLK_PLLC2 3
+#define R8A7740_CLK_R 4
+#define R8A7740_CLK_USB24S 5
+#define R8A7740_CLK_I 6
+#define R8A7740_CLK_ZG 7
+#define R8A7740_CLK_B 8
+#define R8A7740_CLK_M1 9
+#define R8A7740_CLK_HP 10
+#define R8A7740_CLK_HPP 11
+#define R8A7740_CLK_USBP 12
+#define R8A7740_CLK_S 13
+#define R8A7740_CLK_ZB 14
+#define R8A7740_CLK_M3 15
+#define R8A7740_CLK_CP 16
+
+/* MSTP1 */
+#define R8A7740_CLK_CEU21 28
+#define R8A7740_CLK_CEU20 27
+#define R8A7740_CLK_TMU0 25
+#define R8A7740_CLK_LCDC1 17
+#define R8A7740_CLK_IIC0 16
+#define R8A7740_CLK_TMU1 11
+#define R8A7740_CLK_LCDC0 0
+
+/* MSTP2 */
+#define R8A7740_CLK_SCIFA6 30
+#define R8A7740_CLK_SCIFA7 22
+#define R8A7740_CLK_DMAC1 18
+#define R8A7740_CLK_DMAC2 17
+#define R8A7740_CLK_DMAC3 16
+#define R8A7740_CLK_USBDMAC 14
+#define R8A7740_CLK_SCIFA5 7
+#define R8A7740_CLK_SCIFB 6
+#define R8A7740_CLK_SCIFA0 4
+#define R8A7740_CLK_SCIFA1 3
+#define R8A7740_CLK_SCIFA2 2
+#define R8A7740_CLK_SCIFA3 1
+#define R8A7740_CLK_SCIFA4 0
+
+/* MSTP3 */
+#define R8A7740_CLK_CMT1 29
+#define R8A7740_CLK_FSI 28
+#define R8A7740_CLK_IIC1 23
+#define R8A7740_CLK_USBF 20
+#define R8A7740_CLK_SDHI0 14
+#define R8A7740_CLK_SDHI1 13
+#define R8A7740_CLK_MMC 12
+#define R8A7740_CLK_GETHER 9
+#define R8A7740_CLK_TPU0 4
+
+/* MSTP4 */
+#define R8A7740_CLK_USBH 16
+#define R8A7740_CLK_SDHI2 15
+#define R8A7740_CLK_USBFUNC 7
+#define R8A7740_CLK_USBPHY 6
+
+/* SUBCK* */
+#define R8A7740_CLK_SUBCK 9
+#define R8A7740_CLK_SUBCK2 10
+
+#endif /* __DT_BINDINGS_CLOCK_R8A7740_H__ */
--
1.8.4.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 2/5] ARM: shmobile: r8a7740: clock register bits
2014-08-08 14:23 ` [PATCH v2 2/5] ARM: shmobile: r8a7740: clock register bits Ulrich Hecht
@ 2014-08-22 2:49 ` Simon Horman
0 siblings, 0 replies; 14+ messages in thread
From: Simon Horman @ 2014-08-22 2:49 UTC (permalink / raw)
To: Ulrich Hecht; +Cc: linux-sh, mturquette, devicetree, magnus.damm
On Fri, Aug 08, 2014 at 04:23:09PM +0200, Ulrich Hecht wrote:
> Contains the header file with the clock pulse generator and MSTP bits.
Thanks, I have queued up this patch but I am leaving the
rest of the series for now.
>
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> ---
> include/dt-bindings/clock/r8a7740-clock.h | 77 +++++++++++++++++++++++++++++++
> 1 file changed, 77 insertions(+)
> create mode 100644 include/dt-bindings/clock/r8a7740-clock.h
>
> diff --git a/include/dt-bindings/clock/r8a7740-clock.h b/include/dt-bindings/clock/r8a7740-clock.h
> new file mode 100644
> index 0000000..f6b4b0f
> --- /dev/null
> +++ b/include/dt-bindings/clock/r8a7740-clock.h
> @@ -0,0 +1,77 @@
> +/*
> + * Copyright 2014 Ulrich Hecht
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + */
> +
> +#ifndef __DT_BINDINGS_CLOCK_R8A7740_H__
> +#define __DT_BINDINGS_CLOCK_R8A7740_H__
> +
> +/* CPG */
> +#define R8A7740_CLK_SYSTEM 0
> +#define R8A7740_CLK_PLLC0 1
> +#define R8A7740_CLK_PLLC1 2
> +#define R8A7740_CLK_PLLC2 3
> +#define R8A7740_CLK_R 4
> +#define R8A7740_CLK_USB24S 5
> +#define R8A7740_CLK_I 6
> +#define R8A7740_CLK_ZG 7
> +#define R8A7740_CLK_B 8
> +#define R8A7740_CLK_M1 9
> +#define R8A7740_CLK_HP 10
> +#define R8A7740_CLK_HPP 11
> +#define R8A7740_CLK_USBP 12
> +#define R8A7740_CLK_S 13
> +#define R8A7740_CLK_ZB 14
> +#define R8A7740_CLK_M3 15
> +#define R8A7740_CLK_CP 16
> +
> +/* MSTP1 */
> +#define R8A7740_CLK_CEU21 28
> +#define R8A7740_CLK_CEU20 27
> +#define R8A7740_CLK_TMU0 25
> +#define R8A7740_CLK_LCDC1 17
> +#define R8A7740_CLK_IIC0 16
> +#define R8A7740_CLK_TMU1 11
> +#define R8A7740_CLK_LCDC0 0
> +
> +/* MSTP2 */
> +#define R8A7740_CLK_SCIFA6 30
> +#define R8A7740_CLK_SCIFA7 22
> +#define R8A7740_CLK_DMAC1 18
> +#define R8A7740_CLK_DMAC2 17
> +#define R8A7740_CLK_DMAC3 16
> +#define R8A7740_CLK_USBDMAC 14
> +#define R8A7740_CLK_SCIFA5 7
> +#define R8A7740_CLK_SCIFB 6
> +#define R8A7740_CLK_SCIFA0 4
> +#define R8A7740_CLK_SCIFA1 3
> +#define R8A7740_CLK_SCIFA2 2
> +#define R8A7740_CLK_SCIFA3 1
> +#define R8A7740_CLK_SCIFA4 0
> +
> +/* MSTP3 */
> +#define R8A7740_CLK_CMT1 29
> +#define R8A7740_CLK_FSI 28
> +#define R8A7740_CLK_IIC1 23
> +#define R8A7740_CLK_USBF 20
> +#define R8A7740_CLK_SDHI0 14
> +#define R8A7740_CLK_SDHI1 13
> +#define R8A7740_CLK_MMC 12
> +#define R8A7740_CLK_GETHER 9
> +#define R8A7740_CLK_TPU0 4
> +
> +/* MSTP4 */
> +#define R8A7740_CLK_USBH 16
> +#define R8A7740_CLK_SDHI2 15
> +#define R8A7740_CLK_USBFUNC 7
> +#define R8A7740_CLK_USBPHY 6
> +
> +/* SUBCK* */
> +#define R8A7740_CLK_SUBCK 9
> +#define R8A7740_CLK_SUBCK2 10
> +
> +#endif /* __DT_BINDINGS_CLOCK_R8A7740_H__ */
> --
> 1.8.4.5
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v2 3/5] ARM: shmobile: r8a7740: add SoC clocks to DTS
2014-08-08 14:23 [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Ulrich Hecht
2014-08-08 14:23 ` [PATCH v2 1/5] ARM: shmobile: r8a7740: document MSTP clock support Ulrich Hecht
2014-08-08 14:23 ` [PATCH v2 2/5] ARM: shmobile: r8a7740: clock register bits Ulrich Hecht
@ 2014-08-08 14:23 ` Ulrich Hecht
2014-08-08 14:23 ` [PATCH v2 4/5] ARM: shmobile: r8a7740: add MSTP clock assignments to DT Ulrich Hecht
` (2 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Ulrich Hecht @ 2014-08-08 14:23 UTC (permalink / raw)
To: horms; +Cc: linux-sh, mturquette, devicetree, magnus.damm, Ulrich Hecht
Declares the r8a7740 clocks supported by the legacy clock framework,
excluding those requiring extensions to the DIV6 driver.
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
arch/arm/boot/dts/r8a7740.dtsi | 180 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 180 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index bda18fb..3c61c5d 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -10,6 +10,7 @@
/include/ "skeleton.dtsi"
+#include <dt-bindings/clock/r8a7740-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
@@ -291,4 +292,183 @@
interrupts = <0 9 0x4>;
status = "disabled";
};
+
+ clocks {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ /* External root clock */
+ extalr_clk: extalr_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ clock-output-names = "extalr";
+ };
+ extal1_clk: extal1_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <0>;
+ clock-output-names = "extal1";
+ };
+ extal2_clk: extal2_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <0>;
+ clock-output-names = "extal2";
+ };
+ dv_clk: dv_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <27000000>;
+ clock-output-names = "dv";
+ };
+ fsiack_clk: fsiack_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <0>;
+ clock-output-names = "fsiack";
+ };
+ fsibck_clk: fsibck_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <0>;
+ clock-output-names = "fsibck";
+ };
+
+ /* Special CPG clocks */
+ cpg_clocks: cpg_clocks@e6150000 {
+ compatible = "renesas,r8a7740-cpg-clocks";
+ reg = <0xe6150000 0x10000>;
+ clocks = <&extal1_clk>, <&extalr_clk>;
+ #clock-cells = <1>;
+ clock-output-names = "system", "pllc0", "pllc1",
+ "pllc2", "r",
+ "usb24s",
+ "i", "zg", "b", "m1", "hp",
+ "hpp", "usbp", "s", "zb", "m3",
+ "cp";
+ };
+
+ /* Variable factor clocks (DIV6) */
+ sub_clk: sub_clk@e6150080 {
+ compatible = "renesas,r8a7740-div6-clock", "renesas,cpg-div6-clock";
+ reg = <0xe6150080 4>;
+ clocks = <&pllc1_div2_clk>;
+ #clock-cells = <0>;
+ clock-output-names = "sub";
+ };
+
+ /* Fixed factor clocks */
+ pllc1_div2_clk: pllc1_div2_clk {
+ compatible = "fixed-factor-clock";
+ clocks = <&cpg_clocks R8A7740_CLK_PLLC1>;
+ #clock-cells = <0>;
+ clock-div = <2>;
+ clock-mult = <1>;
+ clock-output-names = "pllc1_div2";
+ };
+ extal1_div2_clk: extal1_div2_clk {
+ compatible = "fixed-factor-clock";
+ clocks = <&extal1_clk>;
+ #clock-cells = <0>;
+ clock-div = <2>;
+ clock-mult = <1>;
+ clock-output-names = "extal1_div2";
+ };
+
+ /* Gate clocks */
+ subck_clks: subck_clks@e6150080 {
+ compatible = "renesas,r8a7740-mstp-clocks", "renesas,cpg-mstp-clocks";
+ reg = <0xe6150080 4>;
+ clocks = <&sub_clk>, <&sub_clk>;
+ #clock-cells = <1>;
+ renesas,clock-indices = <
+ R8A7740_CLK_SUBCK R8A7740_CLK_SUBCK2
+ >;
+ clock-output-names =
+ "subck", "subck2";
+ };
+ mstp1_clks: mstp1_clks@e6150134 {
+ compatible = "renesas,r8a7740-mstp-clocks", "renesas,cpg-mstp-clocks";
+ reg = <0xe6150134 4>, <0xe6150038 4>;
+ clocks = <&cpg_clocks R8A7740_CLK_S>,
+ <&cpg_clocks R8A7740_CLK_S>, <&sub_clk>,
+ <&cpg_clocks R8A7740_CLK_B>,
+ <&sub_clk>, <&sub_clk>,
+ <&cpg_clocks R8A7740_CLK_B>;
+ #clock-cells = <1>;
+ renesas,clock-indices = <
+ R8A7740_CLK_CEU21 R8A7740_CLK_CEU20 R8A7740_CLK_TMU0
+ R8A7740_CLK_LCDC1 R8A7740_CLK_IIC0 R8A7740_CLK_TMU1
+ R8A7740_CLK_LCDC0
+ >;
+ clock-output-names =
+ "ceu21", "ceu20", "tmu0", "lcdc1", "iic0",
+ "tmu1", "lcdc0";
+ };
+ mstp2_clks: mstp2_clks@e6150138 {
+ compatible = "renesas,r8a7740-mstp-clocks", "renesas,cpg-mstp-clocks";
+ reg = <0xe6150138 4>, <0xe6150040 4>;
+ clocks = <&sub_clk>, <&sub_clk>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&sub_clk>, <&sub_clk>, <&sub_clk>,
+ <&sub_clk>, <&sub_clk>, <&sub_clk>,
+ <&sub_clk>;
+ #clock-cells = <1>;
+ renesas,clock-indices = <
+ R8A7740_CLK_SCIFA6 R8A7740_CLK_SCIFA7
+ R8A7740_CLK_DMAC1 R8A7740_CLK_DMAC2
+ R8A7740_CLK_DMAC3 R8A7740_CLK_USBDMAC
+ R8A7740_CLK_SCIFA5 R8A7740_CLK_SCIFB
+ R8A7740_CLK_SCIFA0 R8A7740_CLK_SCIFA1
+ R8A7740_CLK_SCIFA2 R8A7740_CLK_SCIFA3
+ R8A7740_CLK_SCIFA4
+ >;
+ clock-output-names =
+ "scifa6", "scifa7", "dmac1", "dmac2", "dmac3",
+ "usbdmac", "scifa5", "scifb", "scifa0", "scifa1",
+ "scifa2", "scifa3", "scifa4";
+ };
+ mstp3_clks: mstp3_clks@e615013c {
+ compatible = "renesas,r8a7740-mstp-clocks", "renesas,cpg-mstp-clocks";
+ reg = <0xe615013c 4>, <0xe6150048 4>;
+ clocks = <&cpg_clocks R8A7740_CLK_R>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&sub_clk>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>;
+ #clock-cells = <1>;
+ renesas,clock-indices = <
+ R8A7740_CLK_CMT1 R8A7740_CLK_FSI R8A7740_CLK_IIC1
+ R8A7740_CLK_USBF R8A7740_CLK_SDHI0 R8A7740_CLK_SDHI1
+ R8A7740_CLK_MMC R8A7740_CLK_GETHER R8A7740_CLK_TPU0
+ >;
+ clock-output-names =
+ "cmt1", "fsi", "iic1", "usbf", "sdhi0", "sdhi1",
+ "mmc", "gether", "tpu0";
+ };
+ mstp4_clks: mstp4_clks@e6150140 {
+ compatible = "renesas,r8a7740-mstp-clocks", "renesas,cpg-mstp-clocks";
+ reg = <0xe6150140 4>, <0xe615004c 4>;
+ clocks = <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>,
+ <&cpg_clocks R8A7740_CLK_HP>;
+ #clock-cells = <1>;
+ renesas,clock-indices = <
+ R8A7740_CLK_USBH R8A7740_CLK_SDHI2
+ R8A7740_CLK_USBFUNC R8A7740_CLK_USBPHY
+ >;
+ clock-output-names =
+ "usbhost", "sdhi2", "usbfunc", "usphy";
+ };
+ };
};
--
1.8.4.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 4/5] ARM: shmobile: r8a7740: add MSTP clock assignments to DT
2014-08-08 14:23 [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Ulrich Hecht
` (2 preceding siblings ...)
2014-08-08 14:23 ` [PATCH v2 3/5] ARM: shmobile: r8a7740: add SoC clocks to DTS Ulrich Hecht
@ 2014-08-08 14:23 ` Ulrich Hecht
2014-08-08 14:23 ` [PATCH v2 5/5] ARM: shmobile: armadillo800eva-reference: add clock overrides to DTS Ulrich Hecht
2014-08-19 6:48 ` [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Magnus Damm
5 siblings, 0 replies; 14+ messages in thread
From: Ulrich Hecht @ 2014-08-08 14:23 UTC (permalink / raw)
To: horms; +Cc: linux-sh, mturquette, devicetree, magnus.damm, Ulrich Hecht
Assigns clocks to ether, i2c*, scif*, tpu, mmcif0, sdhi*, and fsi2.
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
arch/arm/boot/dts/r8a7740.dtsi | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index 3c61c5d..6cd6a46 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -126,7 +126,7 @@
reg = <0xe9a00000 0x800>,
<0xe9a01800 0x800>;
interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
- /* clocks = <&mstp3_clks R8A7740_CLK_GETHER>; */
+ clocks = <&mstp3_clks R8A7740_CLK_GETHER>;
phy-mode = "mii";
#address-cells = <1>;
#size-cells = <0>;
@@ -142,6 +142,7 @@
0 202 IRQ_TYPE_LEVEL_HIGH
0 203 IRQ_TYPE_LEVEL_HIGH
0 204 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp1_clks R8A7740_CLK_IIC0>;
status = "disabled";
};
@@ -154,6 +155,7 @@
0 71 IRQ_TYPE_LEVEL_HIGH
0 72 IRQ_TYPE_LEVEL_HIGH
0 73 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp3_clks R8A7740_CLK_IIC1>;
status = "disabled";
};
@@ -161,6 +163,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6c40000 0x100>;
interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA0>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -168,6 +172,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6c50000 0x100>;
interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA1>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -175,6 +181,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6c60000 0x100>;
interrupts = <0 102 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA0>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -182,6 +190,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6c70000 0x100>;
interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA3>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -189,6 +199,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6c80000 0x100>;
interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA4>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -196,6 +208,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6cb0000 0x100>;
interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA5>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -203,6 +217,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6cc0000 0x100>;
interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA6>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -210,6 +226,8 @@
compatible = "renesas,scifa-r8a7740", "renesas,scifa";
reg = <0xe6cd0000 0x100>;
interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFA7>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -217,6 +235,8 @@
compatible = "renesas,scifb-r8a7740", "renesas,scifb";
reg = <0xe6c30000 0x100>;
interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp2_clks R8A7740_CLK_SCIFB>;
+ clock-names = "sci_ick";
status = "disabled";
};
@@ -240,6 +260,7 @@
tpu: pwm@e6600000 {
compatible = "renesas,tpu-r8a7740", "renesas,tpu";
reg = <0xe6600000 0x100>;
+ clocks = <&mstp3_clks R8A7740_CLK_TPU0>;
status = "disabled";
#pwm-cells = <3>;
};
@@ -249,6 +270,7 @@
reg = <0xe6bd0000 0x100>;
interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH
0 57 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp3_clks R8A7740_CLK_MMC>;
status = "disabled";
};
@@ -258,6 +280,7 @@
interrupts = <0 117 IRQ_TYPE_LEVEL_HIGH
0 118 IRQ_TYPE_LEVEL_HIGH
0 119 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp3_clks R8A7740_CLK_SDHI0>;
cap-sd-highspeed;
cap-sdio-irq;
status = "disabled";
@@ -269,6 +292,7 @@
interrupts = <0 121 IRQ_TYPE_LEVEL_HIGH
0 122 IRQ_TYPE_LEVEL_HIGH
0 123 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp3_clks R8A7740_CLK_SDHI1>;
cap-sd-highspeed;
cap-sdio-irq;
status = "disabled";
@@ -280,6 +304,7 @@
interrupts = <0 125 IRQ_TYPE_LEVEL_HIGH
0 126 IRQ_TYPE_LEVEL_HIGH
0 127 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp4_clks R8A7740_CLK_SDHI2>;
cap-sd-highspeed;
cap-sdio-irq;
status = "disabled";
@@ -290,6 +315,7 @@
compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2";
reg = <0xfe1f0000 0x400>;
interrupts = <0 9 0x4>;
+ clocks = <&mstp3_clks R8A7740_CLK_FSI>;
status = "disabled";
};
--
1.8.4.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 5/5] ARM: shmobile: armadillo800eva-reference: add clock overrides to DTS
2014-08-08 14:23 [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Ulrich Hecht
` (3 preceding siblings ...)
2014-08-08 14:23 ` [PATCH v2 4/5] ARM: shmobile: r8a7740: add MSTP clock assignments to DT Ulrich Hecht
@ 2014-08-08 14:23 ` Ulrich Hecht
2014-08-19 6:48 ` [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Magnus Damm
5 siblings, 0 replies; 14+ messages in thread
From: Ulrich Hecht @ 2014-08-08 14:23 UTC (permalink / raw)
To: horms; +Cc: linux-sh, mturquette, devicetree, magnus.damm, Ulrich Hecht
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
index ee9e7d5..266c439 100644
--- a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
+++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
@@ -178,6 +178,19 @@
};
};
+&extal1_clk {
+ clock-frequency = <25000000>;
+};
+&extal2_clk {
+ clock-frequency = <48000000>;
+};
+&fsibck_clk {
+ clock-frequency = <12288000>;
+};
+&cpg_clocks {
+ renesas,mode = <0x05>; /* MD_CK0 | MD_CK2 */
+};
+
&i2c0 {
status = "okay";
touchscreen@55 {
--
1.8.4.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT
2014-08-08 14:23 [PATCH v2 0/5] ARM: shmobile: r8a7740: add clocks to DT Ulrich Hecht
` (4 preceding siblings ...)
2014-08-08 14:23 ` [PATCH v2 5/5] ARM: shmobile: armadillo800eva-reference: add clock overrides to DTS Ulrich Hecht
@ 2014-08-19 6:48 ` Magnus Damm
5 siblings, 0 replies; 14+ messages in thread
From: Magnus Damm @ 2014-08-19 6:48 UTC (permalink / raw)
To: Ulrich Hecht
Cc: Simon Horman [Horms], SH-Linux, Mike Turquette,
devicetree@vger.kernel.org
Hi Ulrich,
On Fri, Aug 8, 2014 at 11:23 PM, Ulrich Hecht
<ulrich.hecht+renesas@gmail.com> wrote:
> Hi!
>
> Here's the r8a7740 DT clock patch(es) with the changes requested by Simon
> and Magnus as specified below. Enjoy!
>
> changes since v1:
> - split up into separate patches
> - added MSTP clock assignments
Looking great, very easy to review IMO! I guess some people may prefer
to have the patches merged into fewer ones somehow, but if it is up to
me then I take over-splitted patches over overly-complex ones any day!
> Ulrich Hecht (5):
> ARM: shmobile: r8a7740: document MSTP clock support
> ARM: shmobile: r8a7740: clock register bits
> ARM: shmobile: r8a7740: add SoC clocks to DTS
> ARM: shmobile: r8a7740: add MSTP clock assignments to DT
> ARM: shmobile: armadillo800eva-reference: add clock overrides to DTS
For patch 1-5 above:
Acked-by: Magnus Damm <damm+renesas@opensource.se>
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 14+ messages in thread