[Letux-kernel] [PATCH 20/20] [remove me] MIPS: DTS: ingenic/mipsbook_400: Add the wdt-reboot function

Lubomir Rintel lkundrak at v3.sk
Tue Nov 17 21:58:13 CET 2020


This is a kludge to make U-Boot use the WDT for system reset. Something
more sensible, such as a property on the watchdog node should be used
instead.

Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
---
 arch/mips/boot/dts/ingenic/mipsbook_400.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/boot/dts/ingenic/mipsbook_400.dts b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
index 6c7f6c8582313..c99c331ab6262 100644
--- a/arch/mips/boot/dts/ingenic/mipsbook_400.dts
+++ b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
@@ -15,6 +15,11 @@ chosen {
 		stdout-path = "serial0:115200n8";
 	};
 
+	wdt-reboot {
+		compatible = "wdt-reboot";
+		wdt = <&watchdog>;
+	};
+
 	vcc: regulator at 0 {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc";
-- 
2.28.0



More information about the Letux-kernel mailing list