All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100
@ 2017-01-23 13:55 Chris Brandt
  2017-01-23 13:55 ` [PATCH v3 1/3] ARM: dts: r7s72100: add ostm clock to device tree Chris Brandt
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Chris Brandt @ 2017-01-23 13:55 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Rob Herring, Mark Rutland,
	Russell King, Thomas Gleixner, Geert Uytterhoeven
  Cc: devicetree, linux-renesas-soc, Chris Brandt

This patch set enables the use of the newly created driver
renesas-ostm.c for the r7s72100 SoC.

v3:
* Changed ostm@fcfec000 to timer@fcfec000
* Added power-domains to nodes

v2:
* The biggest change was now the channels are independent of each
  other and have separate nodes in the DT. The first probed will
  be set up as a clock source, and any additional channels probed
  will become a clock event.



Chris Brandt (3):
  ARM: dts: r7s72100: add ostm clock to device tree
  ARM: dts: r7s72100: add ostm to device tree
  ARM: dts: rskrza1: add ostm DT support

 arch/arm/boot/dts/r7s72100-rskrza1.dts     |  8 ++++++++
 arch/arm/boot/dts/r7s72100.dtsi            | 27 +++++++++++++++++++++++++++
 include/dt-bindings/clock/r7s72100-clock.h |  4 ++++
 3 files changed, 39 insertions(+)

-- 
2.10.1

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

* [PATCH v3 1/3] ARM: dts: r7s72100: add ostm clock to device tree
  2017-01-23 13:55 [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100 Chris Brandt
@ 2017-01-23 13:55 ` Chris Brandt
  2017-01-23 13:55 ` [PATCH v3 2/3] ARM: dts: r7s72100: add ostm " Chris Brandt
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Chris Brandt @ 2017-01-23 13:55 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Rob Herring, Mark Rutland,
	Russell King, Thomas Gleixner, Geert Uytterhoeven
  Cc: devicetree, linux-renesas-soc, Chris Brandt

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r7s72100.dtsi            | 9 +++++++++
 include/dt-bindings/clock/r7s72100-clock.h | 4 ++++
 2 files changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi
index 3dd427d..d5946df 100644
--- a/arch/arm/boot/dts/r7s72100.dtsi
+++ b/arch/arm/boot/dts/r7s72100.dtsi
@@ -108,6 +108,15 @@
 			clock-output-names = "scif0", "scif1", "scif2", "scif3", "scif4", "scif5", "scif6", "scif7";
 		};
 
+		mstp5_clks: mstp5_clks@fcfe0428 {
+			#clock-cells = <1>;
+			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
+			reg = <0xfcfe0428 4>;
+			clocks = <&p0_clk>, <&p0_clk>;
+			clock-indices = <R7S72100_CLK_OSTM0 R7S72100_CLK_OSTM1>;
+			clock-output-names = "ostm0", "ostm1";
+		};
+
 		mstp7_clks: mstp7_clks@fcfe0430 {
 			#clock-cells = <1>;
 			compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks";
diff --git a/include/dt-bindings/clock/r7s72100-clock.h b/include/dt-bindings/clock/r7s72100-clock.h
index 29e01ed..ce09915 100644
--- a/include/dt-bindings/clock/r7s72100-clock.h
+++ b/include/dt-bindings/clock/r7s72100-clock.h
@@ -25,6 +25,10 @@
 #define R7S72100_CLK_SCIF6	1
 #define R7S72100_CLK_SCIF7	0
 
+/* MSTP5 */
+#define R7S72100_CLK_OSTM0	1
+#define R7S72100_CLK_OSTM1	0
+
 /* MSTP7 */
 #define R7S72100_CLK_ETHER	4
 
-- 
2.10.1

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

* [PATCH v3 2/3] ARM: dts: r7s72100: add ostm to device tree
  2017-01-23 13:55 [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100 Chris Brandt
  2017-01-23 13:55 ` [PATCH v3 1/3] ARM: dts: r7s72100: add ostm clock to device tree Chris Brandt
@ 2017-01-23 13:55 ` Chris Brandt
  2017-01-23 15:12   ` Geert Uytterhoeven
  2017-01-23 13:55 ` [PATCH v3 3/3] ARM: dts: rskrza1: add ostm DT support Chris Brandt
       [not found] ` <20170123135520.28834-1-chris.brandt-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
  3 siblings, 1 reply; 8+ messages in thread
From: Chris Brandt @ 2017-01-23 13:55 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Rob Herring, Mark Rutland,
	Russell King, Thomas Gleixner, Geert Uytterhoeven
  Cc: devicetree, linux-renesas-soc, Chris Brandt

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
v3:
* changed ostm@xxx to timer@xxx
* added power-domains to nodes
v2:
* wrap clock lines to avoid 80 char max
* split into 2 separate channel nodes
---
 arch/arm/boot/dts/r7s72100.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi
index d5946df..74e684f 100644
--- a/arch/arm/boot/dts/r7s72100.dtsi
+++ b/arch/arm/boot/dts/r7s72100.dtsi
@@ -505,4 +505,22 @@
 		cap-sdio-irq;
 		status = "disabled";
 	};
+
+	ostm0: timer@fcfec000 {
+		compatible = "renesas,r7s72100-ostm", "renesas,ostm";
+		reg = <0xfcfec000 0x30>;
+		interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING>;
+		clocks = <&mstp5_clks R7S72100_CLK_OSTM0>;
+		power-domains = <&cpg_clocks>;
+		status = "disabled";
+	};
+
+	ostm1: timer@fcfec400 {
+		compatible = "renesas,r7s72100-ostm", "renesas,ostm";
+		reg = <0xfcfec400 0x30>;
+		interrupts = <GIC_SPI 103 IRQ_TYPE_EDGE_RISING>;
+		clocks = <&mstp5_clks R7S72100_CLK_OSTM1>;
+		power-domains = <&cpg_clocks>;
+		status = "disabled";
+	};
 };
-- 
2.10.1

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

* [PATCH v3 3/3] ARM: dts: rskrza1: add ostm DT support
  2017-01-23 13:55 [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100 Chris Brandt
  2017-01-23 13:55 ` [PATCH v3 1/3] ARM: dts: r7s72100: add ostm clock to device tree Chris Brandt
  2017-01-23 13:55 ` [PATCH v3 2/3] ARM: dts: r7s72100: add ostm " Chris Brandt
@ 2017-01-23 13:55 ` Chris Brandt
  2017-01-23 15:13   ` Geert Uytterhoeven
       [not found] ` <20170123135520.28834-1-chris.brandt-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
  3 siblings, 1 reply; 8+ messages in thread
From: Chris Brandt @ 2017-01-23 13:55 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Rob Herring, Mark Rutland,
	Russell King, Thomas Gleixner, Geert Uytterhoeven
  Cc: devicetree, linux-renesas-soc, Chris Brandt

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
v2:
* remove part that was supposed to go in dsti
* now there is a node for each channel
---
 arch/arm/boot/dts/r7s72100-rskrza1.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/r7s72100-rskrza1.dts b/arch/arm/boot/dts/r7s72100-rskrza1.dts
index dd44181..02b59c5 100644
--- a/arch/arm/boot/dts/r7s72100-rskrza1.dts
+++ b/arch/arm/boot/dts/r7s72100-rskrza1.dts
@@ -61,6 +61,14 @@
 	status = "okay";
 };
 
+&ostm0 {
+	status = "okay";
+};
+
+&ostm1 {
+	status = "okay";
+};
+
 &scif2 {
 	status = "okay";
 };
-- 
2.10.1

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

* Re: [PATCH v3 2/3] ARM: dts: r7s72100: add ostm to device tree
  2017-01-23 13:55 ` [PATCH v3 2/3] ARM: dts: r7s72100: add ostm " Chris Brandt
@ 2017-01-23 15:12   ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2017-01-23 15:12 UTC (permalink / raw)
  To: Chris Brandt
  Cc: Simon Horman, Magnus Damm, Rob Herring, Mark Rutland,
	Russell King, Thomas Gleixner, Geert Uytterhoeven, devicetree,
	Linux-Renesas

On Mon, Jan 23, 2017 at 2:55 PM, Chris Brandt <chris.brandt@renesas.com> wrote:
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

* Re: [PATCH v3 3/3] ARM: dts: rskrza1: add ostm DT support
  2017-01-23 13:55 ` [PATCH v3 3/3] ARM: dts: rskrza1: add ostm DT support Chris Brandt
@ 2017-01-23 15:13   ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2017-01-23 15:13 UTC (permalink / raw)
  To: Chris Brandt
  Cc: Simon Horman, Magnus Damm, Rob Herring, Mark Rutland,
	Russell King, Thomas Gleixner, Geert Uytterhoeven, devicetree,
	Linux-Renesas

On Mon, Jan 23, 2017 at 2:55 PM, Chris Brandt <chris.brandt@renesas.com> wrote:
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

* Re: [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100
  2017-01-23 13:55 [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100 Chris Brandt
@ 2017-01-24 12:27     ` Simon Horman
  2017-01-23 13:55 ` [PATCH v3 2/3] ARM: dts: r7s72100: add ostm " Chris Brandt
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-01-24 12:27 UTC (permalink / raw)
  To: Chris Brandt
  Cc: Magnus Damm, Rob Herring, Mark Rutland, Russell King,
	Thomas Gleixner, Geert Uytterhoeven,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA

On Mon, Jan 23, 2017 at 08:55:17AM -0500, Chris Brandt wrote:
> This patch set enables the use of the newly created driver
> renesas-ostm.c for the r7s72100 SoC.

Thanks Chris,

I have queued this series up for v4.11.
It should appear in net-next in linux-next day or so.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100
@ 2017-01-24 12:27     ` Simon Horman
  0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-01-24 12:27 UTC (permalink / raw)
  To: Chris Brandt
  Cc: Magnus Damm, Rob Herring, Mark Rutland, Russell King,
	Thomas Gleixner, Geert Uytterhoeven, devicetree,
	linux-renesas-soc

On Mon, Jan 23, 2017 at 08:55:17AM -0500, Chris Brandt wrote:
> This patch set enables the use of the newly created driver
> renesas-ostm.c for the r7s72100 SoC.

Thanks Chris,

I have queued this series up for v4.11.
It should appear in net-next in linux-next day or so.

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

end of thread, other threads:[~2017-01-24 12:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 13:55 [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100 Chris Brandt
2017-01-23 13:55 ` [PATCH v3 1/3] ARM: dts: r7s72100: add ostm clock to device tree Chris Brandt
2017-01-23 13:55 ` [PATCH v3 2/3] ARM: dts: r7s72100: add ostm " Chris Brandt
2017-01-23 15:12   ` Geert Uytterhoeven
2017-01-23 13:55 ` [PATCH v3 3/3] ARM: dts: rskrza1: add ostm DT support Chris Brandt
2017-01-23 15:13   ` Geert Uytterhoeven
     [not found] ` <20170123135520.28834-1-chris.brandt-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2017-01-24 12:27   ` [PATCH v3 0/3] ARM: dts: add ostm support for r7s72100 Simon Horman
2017-01-24 12:27     ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.