Skip to content

Commit

Permalink
zbt-wd323: add GPIO WDT support
Browse files Browse the repository at this point in the history
Watchdog has not been properly configured for this router - the PCB has a
hardware watchdog connected to one of the GPIO pin 21 [1]
This commit provides this fix [2]

Without this fix, the ZBT-WD323 is unusable in OpenWRT because it power
cycles every 30 seconds due to the watchdog tripping

[1] https://forum.openwrt.org/t/zbt-wd323-router-power-cycles-every-30-seconds/77535/7
[2] https://forum.openwrt.org/t/zbt-wd323-images-unusable-proposed-workaround/162145/5

Signed-off-by: Joshua O'Leary <josh.oleary@mobile-power.co.uk>
  • Loading branch information
Joshun authored and 981213 committed Jun 20, 2023
1 parent 0bbd569 commit 008cc83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions target/linux/ath79/dts/ar9344_zbtlink_zbt-wd323.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
};

watchdog {
compatible = "linux,wdt-gpio";
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
hw_algo = "toggle";
hw_margin_ms = <30000>;
always-running;
};
};

&wdt {
Expand Down

0 comments on commit 008cc83

Please sign in to comment.