[PATCH 0/1] watchdog: gpio_wdt: add ACPI support
From: Flavio Suligoi
Date: Mon Mar 23 2026 - 09:43:54 EST
The gpio_wdt driver was already converted to be property provider agnostic
in the following commit:
'7e5bca6e5561 (watchdog: gpio_wdt: Make use of device properties)'
So it can be used on both OF and non-OF platform (ACPI).
The problem is that this driver, to be enabled, require the Device Tree,
as we can see in Kconfig:
config GPIO_WATCHDOG
tristate "Watchdog device controlled through GPIO-line"
depends on OF_GPIO
select WATCHDOG_CORE
help
If you say yes here you get support for watchdog device
controlled through GPIO-line.
This dependency prevents its use in other environments, such as ACPI.
To be able to use it with ACPI as well, and therefore with x86
architectures, we have to add the dependency from ACPI and GPIOLIB.
After this change, I tested the driver in one of our x88 boards, adding in
the SSDT the following device:
Device (WDOG) {
Name (_HID, "WDOG0001")
Name (_CID, "PRP0001")
Name (_UID, One)
Name (_CRS, ResourceTemplate () {
GpioIo (Exclusive, PullNone, 0, 0, IoRestrictionOutputOnly,
"\\_SB.GPI0", 0, ResourceConsumer, ,) { 3 }
})
Method (_STA, 0, NotSerialized) {
Return (0x0F)
}
Name (_DSD, Package (2)
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package (5)
{
Package () { "compatible", Package() { "linux,wdt-gpio" } },
Package () { "hw_algo", "toggle" },
Package () { "gpios", Package () { ^WDOG, 0, 0, 0 } },
Package () { "hw_margin_ms", 2000 },
Package () { "always-running", 1 },
},
})
}
So, in this way, the gpio_wdt driver can be also used in x86 boards.
Flavio Suligoi (1):
watchdog: gpio_wdt: add ACPI support
drivers/watchdog/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.43.0