Skip to contentSkip to conversation

arm64: dts: renesas: r8a779h0/gray-hawk-single: Add watchdog support

PATCH In review Geert Uytterhoeven 2 participants 5 messages Feb 1, 2024 – Feb 3, 2024

Subsystems (2)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

cover arm64: dts: renesas: r8a779h0/gray-hawk-single: Add watchdog support

Hi all,

This patch series adds watchdog timer support for the Renesas R-Car V4M (R8A779H0) Soc and the Gray Hawk Single development board.

I intend to queue this in renesas-devel for v6.9.

Thanks for your comments!

Geert Uytterhoeven (1):
arm64: dts: renesas: gray-hawk-single: Enable watchdog timer

Minh Le (1):
arm64: dts: renesas: r8a779h0: Add RWDT node

 .../boot/dts/renesas/r8a779h0-gray-hawk-single.dts    |  5 +++++
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi             | 11 +++++++++++
 2 files changed, 16 insertions(+)
Signature · 12 lines
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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
author maintainer
#1 lore raw

PATCH 1/2 arm64: dts: renesas: r8a779h0: Add RWDT node

From: Minh Le <[email protected]>

Add a device node for the RCLK Watchdog Timer (RWDT) on the Renesas R-Car V4M (R8A779H0) SoC.

---
Changes compared to the BSP:
- Split in separate commits for SoC and board support,
- Use TABs for indentation,
- Add missing interrupts property.

---
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0.dtsi +11 -0
index f59d0dd25ca93822..f5a688e300d29a73 100644
@@ -59,6 +59,17 @@ soc: soc {
 		#size-cells = <2>;
 		ranges;
 
+		rwdt: watchdog@e6020000 {
+			compatible = "renesas,r8a779h0-wdt",
+				     "renesas,rcar-gen4-wdt";
+			reg = <0 0xe6020000 0 0x0c>;
+			interrupts = <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 907>;
+			power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>;
+			resets = <&cpg 907>;
+			status = "disabled";
+		};
+
 		pfc: pinctrl@e6050000 {
 			compatible = "renesas,pfc-r8a779h0";
 			reg = <0 0xe6050000 0 0x16c>, <0 0xe6050800 0 0x16c>,
Signature · 1 line
2.34.1
author maintainer
#3 lore raw

PATCH 2/2 arm64: dts: renesas: gray-hawk-single: Enable watchdog timer

In reply to Geert Uytterhoeven

Enable the watchdog timer on the Gray Hawk Single board.

---
 arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +5 -0
index 716cb7622f167973..1c84fe7171d3fd85 100644
@@ -65,6 +65,11 @@ scif_clk_pins: scif_clk {
 	};
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &scif_clk {
 	clock-frequency = <24000000>;
 };
Signature · 1 line
2.34.1