Skip to contentSkip to conversation

configs: colibri-imx7: enable watchdog

PATCH In review Parth Pancholi 3 participants 5 messages Mar 7, 2024 – Mar 17, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: colibri-imx7: enable watchdog

From: Parth Pancholi <[email protected]>

Enable watchdog functionality for Toradex's Colibri iMX7 (NAND/EMMC) modules.

---
 arch/arm/dts/imx7d-colibri-eval-v3-u-boot.dtsi | 4 ++++
 configs/colibri_imx7_defconfig                 | 2 ++
 configs/colibri_imx7_emmc_defconfig            | 2 ++
 3 files changed, 8 insertions(+)
arch/arm/dts/imx7d-colibri-eval-v3-u-boot.dtsi +4 -0
index 68142769d3..854bf2798a 100644
@@ -51,3 +51,7 @@
 		};
 	};
 };
+
+&wdog1 {
+	bootph-pre-ram;
+};
configs/colibri_imx7_defconfig +2 -0
index 58eb431785..0c6a272ddf 100644
@@ -98,10 +98,12 @@ CONFIG_DM_PMIC=y
 CONFIG_PMIC_RN5T567=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
+CONFIG_IMX_WATCHDOG=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Toradex"
 CONFIG_USB_GADGET_VENDOR_NUM=0x1b67
 CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
+CONFIG_WDT=y
 CONFIG_CI_UDC=y
configs/colibri_imx7_emmc_defconfig +2 -0
index 3382371d40..9d4423cd0d 100644
@@ -85,10 +85,12 @@ CONFIG_DM_PMIC=y
 CONFIG_PMIC_RN5T567=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
+CONFIG_IMX_WATCHDOG=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Toradex"
 CONFIG_USB_GADGET_VENDOR_NUM=0x1b67
 CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
+CONFIG_WDT=y
 CONFIG_CI_UDC=y
Signature · 1 line
2.34.1
#2 lore raw

Hello Fabio,

Quoted 6 lines · Fabio Estevam
Quoted 4 lines · Parth Pancholi

From: Parth Pancholi <[email protected]>

Enable watchdog functionality for Toradex's Colibri iMX7 (NAND/EMMC) modules.

Quoted 8 lines

You described what the patch does, but the reason is missing.

Is the reason for this patch to fix the 'reset' command regression like you did at:
https://gitlab.com/u-boot/u-boot/-/commit/be23b1331fb35b7d5a095ef2c0b522c1f241eee9
?

Please send a v2 with an improved commit log.

No, on colibri-imx7 the reset is already working, it uses the PMIC so it's not affected by the issue that was affecting most of our other boards.

The reason for enabling the watchdog here is just an improvement to improve reliability, given we have it enabled on other boards with no drawback it seems nice and consistent to enable it.

Francesco

reviewer
#3 lore raw

Hi Francesco,

Quoted 7 lines · Francesco Dolcini

No, on colibri-imx7 the reset is already working, it uses the PMIC so it's not affected by the issue that was affecting most of our other boards.

The reason for enabling the watchdog here is just an improvement to improve reliability, given we have it enabled on other boards with no drawback it seems nice and consistent to enable it.

Thanks for the clarification.

In this case, I will apply it to u-boot-imx next branch.