rampis: feed zbt-we1026 external watchdog
authorArvid E. Picciani <aep@exys.org>
Mon, 28 Feb 2022 11:01:14 +0000 (12:01 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 28 Feb 2022 14:17:11 +0000 (15:17 +0100)
Without feeding the gpio watchdog, the board will reset after 90 seconds

Signed-off-by: Arvid E. Picciani <aep@exys.org>
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi
target/linux/ramips/mt7620/config-5.10

index 4991897ca4bb88dcc11981595fc07fca86108a4e..f86ac1a88aeec5c1548e29106e1509485e9ecb7c 100644 (file)
                        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 {
index 04a7614604400341158f28321a66cf95906552f8..cae1d20bffe9a7c7bcf960216b83685e3238fb5f 100644 (file)
@@ -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