diff options
author | Sven Eckelmann <sven@narfation.org> | 2022-01-31 14:39:52 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-02-03 22:27:15 +0100 |
commit | 7c3efd5273fde3ec53d7f80670963e16512c6f17 (patch) | |
tree | 5e97d0450882052a1dcdc07a0042ae477c0caf31 /target/linux/ramips/dts | |
parent | d16bd89c71da6bad5f4d37008217ced3bac4e5d6 (diff) | |
download | upstream-7c3efd5273fde3ec53d7f80670963e16512c6f17.tar.gz upstream-7c3efd5273fde3ec53d7f80670963e16512c6f17.tar.bz2 upstream-7c3efd5273fde3ec53d7f80670963e16512c6f17.zip |
ramips: Switch Teltonika RUT5xx to kernel GPIO-line watchdog driver
The commit 04e91631e050 ("om-watchdog: add support for Teltonika RUT5xx
(ramips)") used the deprecated om-watchdog daemon to handle the GPIO-line
connected watchdog on the Teltonika RUT5xx.
But this daemon has massive problems since commit 30f61a34b4cf
("base-files: always use staged sysupgrade"). The process will always be
stopped on sysupgrades. If the sysupgrade takes slightly longer, the
watchdog is not triggered at the correct time and thus the sysupgrade will
interrupted hard by the watchdog sysupgrade. And this hard interrupt can
easily brick the device when there is no fallback (dual-boot, ...).
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r-- | target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts index cfdb4d6b4b..6be2590a0c 100644 --- a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts +++ b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts @@ -33,6 +33,15 @@ linux,code = <KEY_RESTART>; }; }; + + watchdog { + compatible = "linux,wdt-gpio"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + hw_algo = "toggle"; + /* hw_margin_ms is actually 280s but driver limits it to 60s */ + hw_margin_ms = <60000>; + always-running; + }; }; &spi0 { |