summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2021-04-25 09:52:07 +0800
committerWim Van Sebroeck <wim@linux-watchdog.org>2021-06-21 08:49:10 +0200
commit5f8ebd4766dd072c8152255d45b352d444592a33 (patch)
treeca9b00ad95118e05dee341d57966f7bacbe29c34
parent1bbce7792bd19b95e44fd37db88b98091191e199 (diff)
doc: mtk-wdt: support pre-timeout when the bark irq is available
Add description of pre-timeout in mtk-wdt. Signed-off-by: Wang Qing <wangqing@vivo.com> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/1619148020-2236-3-git-send-email-wangqing@vivo.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
-rw-r--r--Documentation/devicetree/bindings/watchdog/mtk-wdt.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
index e36ba60de829..8e277778f923 100644
--- a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
+++ b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
@@ -1,5 +1,8 @@
Mediatek SoCs Watchdog timer
+The watchdog supports a pre-timeout interrupt that fires timeout-sec/2
+before the expiry.
+
Required properties:
- compatible should contain:
@@ -17,6 +20,7 @@ Required properties:
- reg : Specifies base physical address and size of the registers.
Optional properties:
+- interrupts: Watchdog pre-timeout (bark) interrupt.
- timeout-sec: contains the watchdog timeout in seconds.
- #reset-cells: Should be 1.
@@ -26,6 +30,7 @@ watchdog: watchdog@10007000 {
compatible = "mediatek,mt8183-wdt",
"mediatek,mt6589-wdt";
reg = <0 0x10007000 0 0x100>;
+ interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>;
timeout-sec = <10>;
#reset-cells = <1>;
};