[PATCH 1/5] watchdog: gpio: Allow devices described by software nodes
From: Florian Fainelli
Date: Fri Oct 16 2026 - 18:18:01 EST
The driver reads its configuration through device properties and obtains
its GPIO with the descriptor API. Neither operation requires ACPI or OF,
so allow the driver to be selected on platforms using software nodes.
Add a platform module alias so a non-OF platform device can also load the
driver when it is built as a module.
Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
---
drivers/watchdog/Kconfig | 2 +-
drivers/watchdog/gpio_wdt.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index f7d0a0c2c0ef..f50709c635e5 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -267,7 +267,7 @@ config DA9062_WATCHDOG
config GPIO_WATCHDOG
tristate "Watchdog device controlled through GPIO-line"
- depends on GPIOLIB && (ACPI || OF)
+ depends on GPIOLIB
select WATCHDOG_CORE
help
If you say yes here you get support for watchdog device
diff --git a/drivers/watchdog/gpio_wdt.c b/drivers/watchdog/gpio_wdt.c
index 1abc7d0b78a6..ff323d6e692e 100644
--- a/drivers/watchdog/gpio_wdt.c
+++ b/drivers/watchdog/gpio_wdt.c
@@ -191,3 +191,4 @@ module_platform_driver(gpio_wdt_driver);
MODULE_AUTHOR("Alexander Shiyan <shc_work@xxxxxxx>");
MODULE_DESCRIPTION("GPIO Watchdog");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:gpio-wdt");
--
2.53.0