[PATCH v2 0/4] watchdog for STM32MP family
Stefan Roese
stefan.roese at mailbox.org
Wed Jul 30 12:15:30 CEST 2025
On 23.05.25 11:46, Antonio Borneo wrote:
> This series addresses the two watchdog drivers used on STM32MPxx
> family platforms.
>
> On the generic watchdog framework, it adds a new method
> wdt_set_force_autostart() used by the watchdog drivers to force
> the autostart status of the watchdog.
> This is used when the driver detects that the watchdog has already
> been started by a previous boot stage (e.g. HW, bootrom, Secure
> OS, ...) and needs to be kicked by U-Boot regardless of the
> autostart flag set in DT or in config.
>
> On the driver arm_smc_wdt, it adds the API to query the Secure OS
> about the state of the watchdog, and if at probe the watchdog is
> already started it invokes wdt_set_force_autostart().
>
> On the driver stm32mp_wdt, it adds the code to detect the state of
> the watchdog, and if at probe the watchdog is already started it
> invokes wdt_set_force_autostart().
>
> At last, since all the watchdog drivers used on STM32MPxx family
> platforms can query the status of the watchdog and use it
> consequently, set WATCHDOG_AUTOSTART default to 'n' on such
> platforms. This implies that U-Boot, by default, will respect the
> status of the watchdog set by a previous boot stage.
> For backward compatibility on platforms using SPL, still let
> U-Boot to autostart the watchdog.
>
> V1 ==> V2
> - Fix backward compatibility on defconfig based on SPL
> - Fix inconsistency in the commit message
> - Rebase on current branch next
>
> Antonio Borneo (2):
> watchdog: wdt-uclass.c: add wdt_set_force_autostart() helper
> watchdog: arm_smc_wdt: get wdt status through SMCWD_GET_TIMELEFT
>
> Clément Le Goffic (1):
> watchdog: stm32mp: check the watchdog status
>
> Patrice Chotard (1):
> watchdog: don't autostart watchdog on STM32MP architecture
>
> ...stm32mp15-icore-stm32mp1-ctouch2_defconfig | 1 +
> ...tm32mp15-icore-stm32mp1-edimm2.2_defconfig | 1 +
> ...-microgea-stm32mp1-microdev2-of7_defconfig | 1 +
> ...mp15-microgea-stm32mp1-microdev2_defconfig | 1 +
> configs/stm32mp15_basic_defconfig | 1 +
> configs/stm32mp15_dhsom.config | 1 +
> drivers/watchdog/Kconfig | 1 +
> drivers/watchdog/arm_smc_wdt.c | 17 ++++++++++
> drivers/watchdog/stm32mp_wdt.c | 33 +++++++++++++++++++
> drivers/watchdog/wdt-uclass.c | 9 +++++
> include/wdt.h | 9 +++++
> 11 files changed, 75 insertions(+)
Applied to u-boot-watchdog/master
Thanks,
Stefan
More information about the U-Boot
mailing list