[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210304221247.488173-3-linux@rasmusvillemoes.dk>
Date: Thu, 4 Mar 2021 23:12:46 +0100
From: Rasmus Villemoes <linux@...musvillemoes.dk>
To: Arnd Bergmann <arnd@...db.de>, Guenter Roeck <linux@...ck-us.net>,
Stephen Boyd <sboyd@...nel.org>
Cc: Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org,
linux-watchdog@...r.kernel.org,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Arnd Bergmann <arnd@...nel.org>
Subject: [PATCH v2 2/3] dt-bindings: watchdog: add optional "delay" clock to gpio-wdt binding
[DO NOT MERGE - see cover letter]
We have a board where the reset output from the ADM706S is split in
two: directly routed to an interrupt, and also to start a ripple
counter, which 64 ms later than pulls the SOC's reset pin. That ripple
counter only works if the RTC's 32kHz output is enabled, and since
linux by default disables unused clocks, that effectively renders the
watchdog useless. So add an optional "delay" clock binding.
Suggested-by: Arnd Bergmann <arnd@...nel.org>
Signed-off-by: Rasmus Villemoes <linux@...musvillemoes.dk>
---
Documentation/devicetree/bindings/watchdog/gpio-wdt.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt b/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt
index 198794963786..527be6b30451 100644
--- a/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt
+++ b/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt
@@ -17,6 +17,10 @@ Optional Properties:
- always-running: If the watchdog timer cannot be disabled, add this flag to
have the driver keep toggling the signal without a client. It will only cease
to toggle the signal when the device is open and the timeout elapsed.
+- clock-names: May contain the entry "delay" if the board has logic
+ that delays the reset signal from the watchdog and which requires an
+ external signal to function.
+- clocks: Phandles corresponding to the clock-names.
Example:
watchdog: watchdog {
@@ -25,4 +29,6 @@ Example:
gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
hw_algo = "toggle";
hw_margin_ms = <1600>;
+ clock-names = "delay";
+ clocks = <&rtc 1>;
};
--
2.29.2
Powered by blists - more mailing lists