Skip to contentSkip to conversation

Add watchdog nodes in StarFive JH7100/JH7110 DTS

PATCH Applied Xingyu Wu 4 participants 8 messages May 9, 2023 – May 15, 2023

Subsystems (3)
lore
Share & tools
lore

Xingyu Wu

author
#0 lore raw

cover Add watchdog nodes in StarFive JH7100/JH7110 DTS

Hi, this patch serises add watchdog nodes in DTS for the StarFive JH7100 and JH7110 SoCs. Patch 1 adds the node in JH7100 dts and Patch 2 adds it in JH7110 dts. This patch serises are based on Linux 6.4-rc1.

Xingyu Wu (2):
riscv: dts: starfive: jh7100: Add watchdog node
riscv: dts: starfive: jh7110: Add watchdog node

 arch/riscv/boot/dts/starfive/jh7100.dtsi | 10 ++++++++++
 arch/riscv/boot/dts/starfive/jh7110.dtsi | 10 ++++++++++
 2 files changed, 20 insertions(+)
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/2 riscv: dts: starfive: jh7100: Add watchdog node

Add watchdog node for the StarFive JH7100 RISC-V SoC.

---
 arch/riscv/boot/dts/starfive/jh7100.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/riscv/boot/dts/starfive/jh7100.dtsi +10 -0
index 000447482aca..4218621ea3b9 100644
@@ -238,5 +238,15 @@ i2c3: i2c@12460000 {
 			#size-cells = <0>;
 			status = "disabled";
 		};
+
+		watchdog@12480000 {
+			compatible = "starfive,jh7100-wdt";
+			reg = <0x0 0x12480000 0x0 0x10000>;
+			clocks = <&clkgen JH7100_CLK_WDTIMER_APB>,
+				 <&clkgen JH7100_CLK_WDT_CORE>;
+			clock-names = "apb", "core";
+			resets = <&rstgen JH7100_RSTN_WDTIMER_APB>,
+				 <&rstgen JH7100_RSTN_WDT>;
+		};
 	};
 };
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 2/2 riscv: dts: starfive: jh7110: Add watchdog node

In reply to Xingyu Wu

Add the watchdog node for the Starfive JH7110 SoC.

---
 arch/riscv/boot/dts/starfive/jh7110.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/riscv/boot/dts/starfive/jh7110.dtsi +10 -0
index 4c5fdb905da8..47c163ec0bf1 100644
@@ -469,6 +469,16 @@ sysgpio: pinctrl@13040000 {
 			#gpio-cells = <2>;
 		};
 
+		watchdog@13070000 {
+			compatible = "starfive,jh7110-wdt";
+			reg = <0x0 0x13070000 0x0 0x10000>;
+			clocks = <&syscrg JH7110_SYSCLK_WDT_APB>,
+				 <&syscrg JH7110_SYSCLK_WDT_CORE>;
+			clock-names = "apb", "core";
+			resets = <&syscrg JH7110_SYSRST_WDT_APB>,
+				 <&syscrg JH7110_SYSRST_WDT_CORE>;
+		};
+
 		aoncrg: clock-controller@17000000 {
 			compatible = "starfive,jh7110-aoncrg";
 			reg = <0x0 0x17000000 0x0 0x10000>;
Signature · 1 line
2.25.1
maintainer
#3 lore raw

Re: [PATCH v1 2/2] riscv: dts: starfive: jh7110: Add watchdog node

Quoted 1 line · Xingyu Wu

Add the watchdog node for the Starfive JH7110 SoC.

Emil or Walker, could I get a review on this please?
It's the only dts patch on the list right now for the jh7110 that I can actually apply, so it'd be nice to do so.

Thanks,
Conor.

Quoted 30 lines
---
 arch/riscv/boot/dts/starfive/jh7110.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/riscv/boot/dts/starfive/jh7110.dtsi +10 -0
index 4c5fdb905da8..47c163ec0bf1 100644
@@ -469,6 +469,16 @@ sysgpio: pinctrl@13040000 {
 			#gpio-cells = <2>;
 		};
 
+		watchdog@13070000 {
+			compatible = "starfive,jh7110-wdt";
+			reg = <0x0 0x13070000 0x0 0x10000>;
+			clocks = <&syscrg JH7110_SYSCLK_WDT_APB>,
+				 <&syscrg JH7110_SYSCLK_WDT_CORE>;
+			clock-names = "apb", "core";
+			resets = <&syscrg JH7110_SYSRST_WDT_APB>,
+				 <&syscrg JH7110_SYSRST_WDT_CORE>;
+		};
+
 		aoncrg: clock-controller@17000000 {
 			compatible = "starfive,jh7110-aoncrg";
 			reg = <0x0 0x17000000 0x0 0x10000>;
Signature · 1 line
2.25.1
#4 lore raw

Re: [PATCH v1 2/2] riscv: dts: starfive: jh7110: Add watchdog node

Quoted 6 lines · Conor Dooley
Quoted 1 line · Xingyu Wu

Add the watchdog node for the Starfive JH7110 SoC.

Emil or Walker, could I get a review on this please?
It's the only dts patch on the list right now for the jh7110 that I can actually apply, so it'd be nice to do so.

Of course, thank you for helping to review and apply.

Best regards,
Walker

#5 lore raw

Re: [PATCH v1 2/2] riscv: dts: starfive: jh7110: Add watchdog node

Quoted 11 lines · Walker Chen
Quoted 6 lines · Conor Dooley
Quoted 1 line · Xingyu Wu

Add the watchdog node for the Starfive JH7110 SoC.

Emil or Walker, could I get a review on this please?
It's the only dts patch on the list right now for the jh7110 that I can actually apply, so it'd be nice to do so.

Of course, thank you for helping to review and apply.

I was hoping that you would reply with a "Reviewed-by", your thanks is nice to but I can't do anything with that!

Cheers,
Conor.

Reviewed-by on v1 2/2
#6 lore raw

Re: [PATCH v1 2/2] riscv: dts: starfive: jh7110: Add watchdog node

In reply to Xingyu Wu
Quoted 18 lines · Xingyu Wu

Add the watchdog node for the Starfive JH7110 SoC.

---
 arch/riscv/boot/dts/starfive/jh7110.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/riscv/boot/dts/starfive/jh7110.dtsi +3 -0
index 4c5fdb905da8..47c163ec0bf1 100644
@@ -469,6 +469,16 @@ sysgpio: pinctrl@13040000 {
 			#gpio-cells = <2>;
 		};
 
+		watchdog@13070000 {
+			compatible = "starfive,jh7110-wdt";
+			reg = <0x0 0x13070000 0x0 0x10000>;

arch/riscv/boot/dts/starfive/jh7110.dtsi sysgpio: pinctrl@13040000 { · line 484

Quoted 10 lines
arch/riscv/boot/dts/starfive/jh7110.dtsi +7 -0
+			clocks = <&syscrg JH7110_SYSCLK_WDT_APB>,
+				 <&syscrg JH7110_SYSCLK_WDT_CORE>;
+			clock-names = "apb", "core";
+			resets = <&syscrg JH7110_SYSRST_WDT_APB>,
+				 <&syscrg JH7110_SYSRST_WDT_CORE>;
+		};
+
 		aoncrg: clock-controller@17000000 {
 			compatible = "starfive,jh7110-aoncrg";
 			reg = <0x0 0x17000000 0x0 0x10000>;

Thanks!

maintainer Applied
#7 lore raw
In reply to Xingyu Wu

From: Conor Dooley <[email protected]>

Quoted 8 lines · Xingyu Wu

and JH7110 SoCs. Patch 1 adds the node in JH7100 dts and Patch 2 adds it in JH7110 dts. This patch serises are based on Linux 6.4-rc1.

Xingyu Wu (2):
riscv: dts: starfive: jh7100: Add watchdog node
riscv: dts: starfive: jh7110: Add watchdog node

[...]

Applied to riscv-dt-for-next, thanks!

[1/2] riscv: dts: starfive: jh7100: Add watchdog node

      https://git.kernel.org/conor/c/435ac3fbfbc6
[2/2] riscv: dts: starfive: jh7110: Add watchdog node
      https://git.kernel.org/conor/c/6361b7de262a

Thanks,
Conor.