aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorArvid E. Picciani <aep@exys.org>2022-02-28 12:01:14 +0100
committerPetr Štetiar <ynezz@true.cz>2022-02-28 15:17:11 +0100
commit1a97c03d864ee5ab917aff2988c62fce223c041e (patch)
tree3f4843fa6617f6504c92f3fec3d1a5bc3e09cf2b /target
parent57f7a86c681b70c688f51e26d31e45baf64ac5f9 (diff)
downloadupstream-1a97c03d864ee5ab917aff2988c62fce223c041e.tar.gz
upstream-1a97c03d864ee5ab917aff2988c62fce223c041e.tar.bz2
upstream-1a97c03d864ee5ab917aff2988c62fce223c041e.zip
rampis: feed zbt-we1026 external watchdog
Without feeding the gpio watchdog, the board will reset after 90 seconds Signed-off-by: Arvid E. Picciani <aep@exys.org>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi8
-rw-r--r--target/linux/ramips/mt7620/config-5.101
2 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi
index 4991897ca4..f86ac1a88a 100644
--- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi
+++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi
@@ -26,6 +26,14 @@
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
+
+ watchdog {
+ compatible = "linux,wdt-gpio";
+ gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
+ hw_algo = "toggle";
+ hw_margin_ms = <20000>;
+ always-running;
+ };
};
&pcie {
diff --git a/target/linux/ramips/mt7620/config-5.10 b/target/linux/ramips/mt7620/config-5.10
index 04a7614604..cae1d20bff 100644
--- a/target/linux/ramips/mt7620/config-5.10
+++ b/target/linux/ramips/mt7620/config-5.10
@@ -67,6 +67,7 @@ CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GPIOLIB=y
# CONFIG_GPIO_MT7621 is not set
CONFIG_GPIO_RALINK=y
+CONFIG_GPIO_WATCHDOG=y
CONFIG_HANDLE_DOMAIN_IRQ=y
CONFIG_HARDWARE_WATCHPOINTS=y
CONFIG_HAS_DMA=y