diff mbox series

[5/5] arm64: dts: renesas: spider-cpu: Enable watchdog timer

Message ID b36b2bb5770e10d906571721a3d73ca205b6f56e.1642525158.git.geert+renesas@glider.be (mailing list archive)
State Handled Elsewhere
Headers show
Series arm64: renesas: Add R-Car S4-8 watchdog support on Spider | expand

Commit Message

Geert Uytterhoeven Jan. 18, 2022, 5:09 p.m. UTC
Enable the watchdog timer on the Spider board.

Extracted from a larger patch in the BSP by LUU HOAI.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
For the watchdog to be able to actually reboot the system, this depends
on proper configuration of the Watchdog Timer Reset Control Register
(WDTRSTCR) in the Reset (RST) module, either by Linux[1], or by the
firmware.

[1] "[PATCH LOCAL v2] soc: renesas: rcar-rst: Allow WDT reset on R-Car
     Gen4"
    https://lore.kernel.org/r/39005cf749a99afc6d3ba96ff155fd2a231418a8.1642524743.git.geert+renesas@glider.be
---
 arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Wolfram Sang Feb. 8, 2022, 12:42 p.m. UTC | #1
On Tue, Jan 18, 2022 at 06:09:05PM +0100, Geert Uytterhoeven wrote:
> Enable the watchdog timer on the Spider board.
> 
> Extracted from a larger patch in the BSP by LUU HOAI.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Guenter Roeck Feb. 14, 2022, 3:52 p.m. UTC | #2
On Tue, Jan 18, 2022 at 06:09:05PM +0100, Geert Uytterhoeven wrote:
> Enable the watchdog timer on the Spider board.
> 
> Extracted from a larger patch in the BSP by LUU HOAI.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Acked-by: Guenter Roeck <linux@roeck-us.net>

> ---
> For the watchdog to be able to actually reboot the system, this depends
> on proper configuration of the Watchdog Timer Reset Control Register
> (WDTRSTCR) in the Reset (RST) module, either by Linux[1], or by the
> firmware.
> 
> [1] "[PATCH LOCAL v2] soc: renesas: rcar-rst: Allow WDT reset on R-Car
>      Gen4"
>     https://lore.kernel.org/r/39005cf749a99afc6d3ba96ff155fd2a231418a8.1642524743.git.geert+renesas@glider.be
> ---
>  arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
> index 156586532c844c41..3a90932fe85c8243 100644
> --- a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
> @@ -31,6 +31,11 @@ &extalr_clk {
>  	clock-frequency = <32768>;
>  };
>  
> +&rwdt {
> +	timeout-sec = <60>;
> +	status = "okay";
> +};
> +
>  &scif3 {
>  	status = "okay";
>  };
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
index 156586532c844c41..3a90932fe85c8243 100644
--- a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
@@ -31,6 +31,11 @@  &extalr_clk {
 	clock-frequency = <32768>;
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &scif3 {
 	status = "okay";
 };