]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pico-pi-imx7d: Convert to watchdog driver model
authorFabio Estevam <festevam@denx.de>
Thu, 26 Oct 2023 21:01:53 +0000 (18:01 -0300)
committerTom Rini <trini@konsulko.com>
Tue, 12 Dec 2023 21:33:57 +0000 (16:33 -0500)
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@denx.de>
arch/arm/dts/imx7d-pico-pi-u-boot.dtsi
configs/pico-pi-imx7d_defconfig

index 843b4583e53aed5c6132bf7ceff42f79a38dc67a..c6856823c64d2d14e352d3b4264539d374653b4e 100644 (file)
@@ -6,6 +6,12 @@
         usb0 = &usbotg1;
         display0 = &lcdif;
     };
+
+       wdt-reboot {
+               compatible = "wdt-reboot";
+               wdt = <&wdog1>;
+               bootph-pre-ram;
+       };
 };
 
 &usbotg1 {
        };
 };
 
+&wdog1 {
+       bootph-pre-ram;
+};
+
 &iomuxc {
        pinctrl_backlight: backlight {
                fsl,pins = <
index 48364c7548ee3693cadf4cbbd84db86f6fc642e5..5b615daf4a87be4845ad5914b9e9a24fd432a39c 100644 (file)
@@ -76,6 +76,8 @@ CONFIG_DM_PMIC=y
 CONFIG_DM_PMIC_PFUZE100=y
 CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
 CONFIG_SPL_USB_HOST=y
@@ -95,3 +97,4 @@ CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
 CONFIG_BMP_16BPP=y
+CONFIG_IMX_WATCHDOG=y