Skip to contentSkip to conversation

watchdog: ast2600: add AST2700 support

PATCH In review Ryan Chen 3 participants 3 messages Jul 2 – Aug 3 Watchdog device drivers

lore
Share & tools
lore

Ryan Chen

author
#0 lore raw

PATCH 1/1 watchdog: ast2600: add AST2700 support

The AST2700 reuses the AST2600 watchdog block unchanged. Bind the driver to the aspeed,ast2700-wdt compatible and enable WDT_AST2600 on the AST2700.

---
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(-)
drivers/watchdog/Kconfig +3 -3
index b91727e1265..3c56c541505 100644
@@ -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.
 
drivers/watchdog/ast2600_wdt.c +1 -0
index 190490f3692..5eb9b4ba96f 100644
@@ -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,

Signature · 1 line
Ryan Chen <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ryan Chen

The AST2700 reuses the AST2600 watchdog block unchanged. Bind the driver to the aspeed,ast2700-wdt compatible and enable WDT_AST2600 on the AST2700.

Thanks,
Stefan

Quoted 47 lines

---
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(-)
drivers/watchdog/Kconfig +3 -3
index b91727e1265..3c56c541505 100644
@@ -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.
 
drivers/watchdog/ast2600_wdt.c +1 -1
index 190490f3692..5eb9b4ba96f 100644
@@ -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,