[PATCH] watchdog: ast2600: add AST2700 support
Stefan Roese
stefan.roese at mailbox.org
Thu Jul 9 08:45:25 CEST 2026
On 7/2/26 09:17, Ryan Chen wrote:
> The AST2700 reuses the AST2600 watchdog block unchanged. Bind the
> driver to the aspeed,ast2700-wdt compatible and enable WDT_AST2600
> on the AST2700.
>
> Signed-off-by: Ryan Chen <ryan_chen at aspeedtech.com>
Reviewed-by: Stefan Roese <stefan.roese at mailbox.org>
Thanks,
Stefan
> ---
> The AST2700 reuses the AST2600 watchdog block with an identical register
> layout and reset behaviour, so no new driver is needed. Bind the existing
> ast2600 watchdog driver to the aspeed,ast2700-wdt compatible and allow
> WDT_AST2600 to be selected on the AST2700.
> ---
> drivers/watchdog/Kconfig | 6 +++---
> drivers/watchdog/ast2600_wdt.c | 1 +
> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index b91727e1265..3c56c541505 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -130,11 +130,11 @@ config WDT_ASPEED
> Second Boot.
>
> config WDT_AST2600
> - bool "Aspeed AST2600 watchdog timer support"
> - depends on WDT && ASPEED_AST2600
> + bool "Aspeed AST2600/AST2700 watchdog timer support"
> + depends on WDT && (ASPEED_AST2600 || ASPEED_AST2700)
> default y
> help
> - Select this to enable watchdog timer for Aspeed ast2500/ast2400 devices.
> + Select this to enable watchdog timer for Aspeed ast2600/ast2700 devices.
> The watchdog timer is stopped when initialized. It performs reset, either
> full SoC reset or CPU or just some peripherals, based on the flags.
>
> diff --git a/drivers/watchdog/ast2600_wdt.c b/drivers/watchdog/ast2600_wdt.c
> index 190490f3692..5eb9b4ba96f 100644
> --- a/drivers/watchdog/ast2600_wdt.c
> +++ b/drivers/watchdog/ast2600_wdt.c
> @@ -87,6 +87,7 @@ static const struct wdt_ops ast2600_wdt_ops = {
>
> static const struct udevice_id ast2600_wdt_ids[] = {
> { .compatible = "aspeed,ast2600-wdt" },
> + { .compatible = "aspeed,ast2700-wdt" },
> { }
> };
>
>
> ---
> base-commit: e800cc67f5b6cb50a20f37c993ec1cd4063bdbd3
> change-id: 20260702-aspeed_wdt-76e73f1c8853
>
> Best regards,
More information about the U-Boot
mailing list