[v2] arm: dts: allwinner: t113s: enable watchdog for reboot

Message ID 20260425-t113-mangopi-reboot-hang-v2-1-fd343207a4be@mmpsystems.pl (mailing list archive)
State New
Headers
Series [v2] arm: dts: allwinner: t113s: enable watchdog for reboot |

Commit Message

Michal Piekos April 25, 2026, 8:19 a.m. UTC
Reboot hangs on T113s boards because no restart handler is
available.

Enable the SoC watchdog whose driver registers a restart handler.

Tested on MangoPi MQ-R T113s.

Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
---
Changes in v2:
- Moved watchdog enablement to SoC level dts following Jernej's
  suggestion
- Link to v1: https://lore.kernel.org/r/20260412-t113-mangopi-reboot-hang-v1-1-5002cfa6e0cc@mmpsystems.pl
---
 arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)


---
base-commit: 27d128c1cff64c3b8012cc56dd5a1391bb4f1821
change-id: 20260412-t113-mangopi-reboot-hang-c9a9def82e2b

Best regards,
  

Comments

Jernej Škrabec May 5, 2026, 4:23 p.m. UTC | #1
Dne sobota, 25. april 2026 ob 10:19:40 Srednjeevropski poletni čas je Michal Piekos napisal(a):
> Reboot hangs on T113s boards because no restart handler is
> available.
> 
> Enable the SoC watchdog whose driver registers a restart handler.
> 
> Tested on MangoPi MQ-R T113s.
> 
> Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
> ---
> Changes in v2:
> - Moved watchdog enablement to SoC level dts following Jernej's
>   suggestion
> - Link to v1: https://lore.kernel.org/r/20260412-t113-mangopi-reboot-hang-v1-1-5002cfa6e0cc@mmpsystems.pl
> ---
>  arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi b/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi
> index 424f4a2487e2..d3bbed84eedb 100644
> --- a/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi
> +++ b/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi
> @@ -34,6 +34,12 @@ cpu1: cpu@1 {
>  		};
>  	};
>  
> +	soc {
> +		wdt {
> +			status = "okay";
> +		};
> +	};
> +
>  	gic: interrupt-controller@1c81000 {
>  		compatible = "arm,gic-400";
>  		reg = <0x03021000 0x1000>,
>

Following, at the end of the file should work:

&wdt {
	status = "okay";
};

Best regards,
Jernej
  

Patch

diff --git a/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi b/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi
index 424f4a2487e2..d3bbed84eedb 100644
--- a/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi
+++ b/arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi
@@ -34,6 +34,12 @@  cpu1: cpu@1 {
 		};
 	};
 
+	soc {
+		wdt {
+			status = "okay";
+		};
+	};
+
 	gic: interrupt-controller@1c81000 {
 		compatible = "arm,gic-400";
 		reg = <0x03021000 0x1000>,