devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Declare and enable watchdog on stm32mp25
@ 2023-09-22  8:10 Alexandre Torgue
  2023-09-22  8:10 ` [PATCH 1/2] arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251 Alexandre Torgue
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexandre Torgue @ 2023-09-22  8:10 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, Conor Dooley
  Cc: linux-arm-kernel, devicetree, Alexandre Torgue, linux-stm32,
	linux-kernel

Secure ARM watchdog is used on stm32mp25 relying on SMC to configure
and kick the watchdog. It is set to 32 seconds on stm32mp257f-ev1
board.

Regards
Alex

Alexandre Torgue (2):
  arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251
  arm64: dts: st: enable secure arm-wdt watchdog on stm32mp257f-ev1

 arch/arm64/boot/dts/st/stm32mp251.dtsi     | 6 ++++++
 arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 5 +++++
 2 files changed, 11 insertions(+)

-- 
2.17.1

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

* [PATCH 1/2] arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251
  2023-09-22  8:10 [PATCH 0/2] Declare and enable watchdog on stm32mp25 Alexandre Torgue
@ 2023-09-22  8:10 ` Alexandre Torgue
  2023-09-22  8:10 ` [PATCH 2/2] arm64: dts: st: enable secure arm-wdt watchdog on stm32mp257f-ev1 Alexandre Torgue
  2023-09-29  7:02 ` [PATCH 0/2] Declare and enable watchdog on stm32mp25 Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Torgue @ 2023-09-22  8:10 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, Conor Dooley
  Cc: linux-arm-kernel, devicetree, Alexandre Torgue, linux-stm32,
	linux-kernel

Add the node to use the ARM SMC watchdog support. It will
use a dedicated smc-id to configure and kick the watchdog.

Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>

diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi
index d7cb05d534ac..124403f5f1f4 100644
--- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi
@@ -28,6 +28,12 @@
 		interrupt-parent = <&intc>;
 	};
 
+	arm_wdt: watchdog {
+		compatible = "arm,smc-wdt";
+		arm,smc-id = <0xb200005a>;
+		status = "disabled";
+	};
+
 	clocks {
 		ck_flexgen_08: ck-flexgen-08 {
 			#clock-cells = <0>;
-- 
2.17.1


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

* [PATCH 2/2] arm64: dts: st: enable secure arm-wdt watchdog on stm32mp257f-ev1
  2023-09-22  8:10 [PATCH 0/2] Declare and enable watchdog on stm32mp25 Alexandre Torgue
  2023-09-22  8:10 ` [PATCH 1/2] arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251 Alexandre Torgue
@ 2023-09-22  8:10 ` Alexandre Torgue
  2023-09-29  7:02 ` [PATCH 0/2] Declare and enable watchdog on stm32mp25 Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Torgue @ 2023-09-22  8:10 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, Conor Dooley
  Cc: linux-arm-kernel, devicetree, Alexandre Torgue, linux-stm32,
	linux-kernel

Enable the watchdog and define the default timeout to 32 seconds.

Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>

diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 6c3b83c2b48f..85891124a3a9 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -63,6 +63,11 @@
 	status = "okay";
 };
 
+&arm_wdt {
+	timeout-sec = <32>;
+	status = "okay";
+};
+
 &usart2 {
 	pinctrl-names = "default", "idle", "sleep";
 	pinctrl-0 = <&usart2_pins_a>;
-- 
2.17.1


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

* Re: [PATCH 0/2] Declare and enable watchdog on stm32mp25
  2023-09-22  8:10 [PATCH 0/2] Declare and enable watchdog on stm32mp25 Alexandre Torgue
  2023-09-22  8:10 ` [PATCH 1/2] arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251 Alexandre Torgue
  2023-09-22  8:10 ` [PATCH 2/2] arm64: dts: st: enable secure arm-wdt watchdog on stm32mp257f-ev1 Alexandre Torgue
@ 2023-09-29  7:02 ` Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2023-09-29  7:02 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, Conor Dooley
  Cc: linux-arm-kernel, devicetree, linux-stm32, linux-kernel

On 9/22/23 10:10, Alexandre Torgue wrote:
> Secure ARM watchdog is used on stm32mp25 relying on SMC to configure
> and kick the watchdog. It is set to 32 seconds on stm32mp257f-ev1
> board.
> 
> Regards
> Alex
> 
> Alexandre Torgue (2):
>    arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251
>    arm64: dts: st: enable secure arm-wdt watchdog on stm32mp257f-ev1
> 
>   arch/arm64/boot/dts/st/stm32mp251.dtsi     | 6 ++++++
>   arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 5 +++++
>   2 files changed, 11 insertions(+)
> 
Series applied on stm32-next.

Regards
Alex

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

end of thread, other threads:[~2023-09-29  7:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-22  8:10 [PATCH 0/2] Declare and enable watchdog on stm32mp25 Alexandre Torgue
2023-09-22  8:10 ` [PATCH 1/2] arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251 Alexandre Torgue
2023-09-22  8:10 ` [PATCH 2/2] arm64: dts: st: enable secure arm-wdt watchdog on stm32mp257f-ev1 Alexandre Torgue
2023-09-29  7:02 ` [PATCH 0/2] Declare and enable watchdog on stm32mp25 Alexandre TORGUE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).