]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx6cuboxi: Convert to watchdog driver model
authorFabio Estevam <festevam@gmail.com>
Wed, 27 Mar 2024 14:18:49 +0000 (11:18 -0300)
committerFabio Estevam <festevam@gmail.com>
Sat, 30 Mar 2024 12:49:53 +0000 (09:49 -0300)
Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused
the 'reset' command in U-Boot to not cause a board reset.

Fix it by switching to the watchdog driver model via sysreset, which
is the preferred method for implementing the watchdog reset.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Christian Gmeiner <cgmeiner@igalia.com>
arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi
configs/mx6cuboxi_defconfig

index 23a05773b579b94b9b414dc1cde2661f77c832f6..e9b188ed65872803f0d94520b26c592b50109750 100644 (file)
                        &gpio6 4 0
                >;
        };
+
+       wdt-reboot {
+               compatible = "wdt-reboot";
+               wdt = <&wdog1>;
+               bootph-pre-ram;
+       };
 };
 
 &soc {
@@ -58,3 +64,7 @@
 &usdhc3 {
        bootph-all;
 };
+
+&wdog1 {
+       bootph-pre-ram;
+};
index 66d4aaeda2d9cc739381193929a7369b9a1c92e5..27ceb22599a6d13d23c21232f049abebcfe1bc48 100644 (file)
@@ -71,6 +71,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_DM_THERMAL=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
@@ -89,3 +91,4 @@ CONFIG_IMX_HDMI=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
 CONFIG_BMP_16BPP=y
+CONFIG_IMX_WATCHDOG=y