All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support
@ 2017-10-30 15:56 Geert Uytterhoeven
  2017-10-30 15:56 ` [PATCH 1/3] arm64: dts: renesas: r8a77970: Add RWDT node Geert Uytterhoeven
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-10-30 15:56 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven

	Hi Simon, Magnus,

This patch series adds support for the watchdog timer on R-Car V3M, and
enables it on the Eagle development board.

This allows to use the watchdog timer to reset the board, until PSCI is
enhanced to include such functionality.

Dependencies:
  - renesas-devel-20171030-v4.14-rc7,
  - "[PATCH] dt-bindings: watchdog: renesas-wdt: Add support for the
     r8a77970 wdt", which is a trivial addition.

Thanks!

Geert Uytterhoeven (3):
  arm64: dts: renesas: r8a77970: Add RWDT node
  arm64: dts: renesas: eagle: Move avb node to preserve sort order
  arm64: dts: renesas: eagle: Enable watchdog timer

 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 23 ++++++++++++++---------
 arch/arm64/boot/dts/renesas/r8a77970.dtsi      | 10 ++++++++++
 2 files changed, 24 insertions(+), 9 deletions(-)

-- 
2.7.4

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

* [PATCH 1/3] arm64: dts: renesas: r8a77970: Add RWDT node
  2017-10-30 15:56 [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support Geert Uytterhoeven
@ 2017-10-30 15:56 ` Geert Uytterhoeven
  2017-10-30 15:56 ` [PATCH 2/3] arm64: dts: renesas: eagle: Move avb node to preserve sort order Geert Uytterhoeven
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-10-30 15:56 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven

Add a device node for the Watchdog Timer (WDT) controller on the
Renesas R-Car V3M (r8a77970) SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
index 97e6981938e7ff98..75d09f1724f02c1d 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -103,6 +103,16 @@
 						  IRQ_TYPE_LEVEL_LOW)>;
 		};
 
+		rwdt: watchdog@e6020000 {
+			compatible = "renesas,r8a77970-wdt",
+				     "renesas,rcar-gen3-wdt";
+			reg = <0 0xe6020000 0 0x0c>;
+			clocks = <&cpg CPG_MOD 402>;
+			power-domains = <&sysc 32>;
+			resets = <&cpg 402>;
+			status = "disabled";
+		};
+
 		cpg: clock-controller@e6150000 {
 			compatible = "renesas,r8a77970-cpg-mssr";
 			reg = <0 0xe6150000 0 0x1000>;
-- 
2.7.4

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

* [PATCH 2/3] arm64: dts: renesas: eagle: Move avb node to preserve sort order
  2017-10-30 15:56 [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support Geert Uytterhoeven
  2017-10-30 15:56 ` [PATCH 1/3] arm64: dts: renesas: r8a77970: Add RWDT node Geert Uytterhoeven
@ 2017-10-30 15:56 ` Geert Uytterhoeven
  2017-10-30 15:56 ` [PATCH 3/3] arm64: dts: renesas: eagle: Enable watchdog timer Geert Uytterhoeven
  2017-11-01  8:31   ` Simon Horman
  3 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-10-30 15:56 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
index a711e77cc6a5db68..9e37f6e7b265c035 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
@@ -33,6 +33,17 @@
 	};
 };
 
+&avb {
+	renesas,no-ether-link;
+	phy-handle = <&phy0>;
+	status = "okay";
+
+	phy0: ethernet-phy@0 {
+		rxc-skew-ps = <1500>;
+		reg = <0>;
+	};
+};
+
 &extal_clk {
 	clock-frequency = <16666666>;
 };
@@ -44,14 +55,3 @@
 &scif0 {
 	status = "okay";
 };
-
-&avb {
-	renesas,no-ether-link;
-	phy-handle = <&phy0>;
-	status = "okay";
-
-	phy0: ethernet-phy@0 {
-		rxc-skew-ps = <1500>;
-		reg = <0>;
-	};
-};
-- 
2.7.4

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

* [PATCH 3/3] arm64: dts: renesas: eagle: Enable watchdog timer
  2017-10-30 15:56 [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support Geert Uytterhoeven
  2017-10-30 15:56 ` [PATCH 1/3] arm64: dts: renesas: r8a77970: Add RWDT node Geert Uytterhoeven
  2017-10-30 15:56 ` [PATCH 2/3] arm64: dts: renesas: eagle: Move avb node to preserve sort order Geert Uytterhoeven
@ 2017-10-30 15:56 ` Geert Uytterhoeven
  2017-11-01  8:31   ` Simon Horman
  3 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-10-30 15:56 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven

Enable the Watchdog Timer (WDT) controller on the Renesas Eagle
board equipped with an R-Car V3M (r8a77970) SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
index 9e37f6e7b265c035..8fe5c193e0496520 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
@@ -52,6 +52,11 @@
 	clock-frequency = <32768>;
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &scif0 {
 	status = "okay";
 };
-- 
2.7.4

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

* Re: [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support
  2017-10-30 15:56 [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support Geert Uytterhoeven
@ 2017-11-01  8:31   ` Simon Horman
  2017-10-30 15:56 ` [PATCH 2/3] arm64: dts: renesas: eagle: Move avb node to preserve sort order Geert Uytterhoeven
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2017-11-01  8:31 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc, linux-arm-kernel

On Mon, Oct 30, 2017 at 04:56:26PM +0100, Geert Uytterhoeven wrote:
> 	Hi Simon, Magnus,
> 
> This patch series adds support for the watchdog timer on R-Car V3M, and
> enables it on the Eagle development board.
> 
> This allows to use the watchdog timer to reset the board, until PSCI is
> enhanced to include such functionality.
> 
> Dependencies:
>   - renesas-devel-20171030-v4.14-rc7,
>   - "[PATCH] dt-bindings: watchdog: renesas-wdt: Add support for the
>      r8a77970 wdt", which is a trivial addition.

Thanks, I agree that binding change is trivial and furthermore I see
that its been heavily Acked. I have gone ahead and applied this series.

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

* [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support
@ 2017-11-01  8:31   ` Simon Horman
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2017-11-01  8:31 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Oct 30, 2017 at 04:56:26PM +0100, Geert Uytterhoeven wrote:
> 	Hi Simon, Magnus,
> 
> This patch series adds support for the watchdog timer on R-Car V3M, and
> enables it on the Eagle development board.
> 
> This allows to use the watchdog timer to reset the board, until PSCI is
> enhanced to include such functionality.
> 
> Dependencies:
>   - renesas-devel-20171030-v4.14-rc7,
>   - "[PATCH] dt-bindings: watchdog: renesas-wdt: Add support for the
>      r8a77970 wdt", which is a trivial addition.

Thanks, I agree that binding change is trivial and furthermore I see
that its been heavily Acked. I have gone ahead and applied this series.

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

end of thread, other threads:[~2017-11-01  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 15:56 [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support Geert Uytterhoeven
2017-10-30 15:56 ` [PATCH 1/3] arm64: dts: renesas: r8a77970: Add RWDT node Geert Uytterhoeven
2017-10-30 15:56 ` [PATCH 2/3] arm64: dts: renesas: eagle: Move avb node to preserve sort order Geert Uytterhoeven
2017-10-30 15:56 ` [PATCH 3/3] arm64: dts: renesas: eagle: Enable watchdog timer Geert Uytterhoeven
2017-11-01  8:31 ` [PATCH 0/3] arm64: dts: renesas: eagle: Add watchdog timer support Simon Horman
2017-11-01  8:31   ` 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.