[PATCH 06/11] watchdog: ftwdt010: Extend DT bindings to derivatives
Linus Walleij
linus.walleij at linaro.org
Sat Aug 12 11:43:13 PDT 2017
This extends the device tree bindings for the Faraday FTWDT010
block to cover:
- The "moxa,moxart-watchdog" compatible version
- The "aspeed,ast2400-wdt" and "aspeed,ast2500-wdt" versions
- clocks (PCLK non-optional, the Gemini also have this now)
- reset line (optional, exist on the Gemini)
- configuration to use the external clock (faraday,use-extclk)
Cc: devicetree at vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
.../devicetree/bindings/watchdog/faraday,ftwdt010.txt | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt
index 9ecdb502e605..016e353bb069 100644
--- a/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt
+++ b/Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.txt
@@ -1,17 +1,27 @@
Faraday Technology FTWDT010 watchdog
This is an IP part from Faraday Technology found in the Gemini
-SoCs and others.
+and MOXA ART SoCs and others.
Required properties:
- compatible : must be one of
"faraday,ftwdt010"
"cortina,gemini-watchdog", "faraday,ftwdt010"
+ "moxa,moxart-watchdog", "faraday,ftwdt010"
+ "aspeed,ast2400-wdt", "faraday,ftwdt010"
+ "aspeed,ast2500-wdt", "faraday,ftwdt010"
- reg : shall contain base register location and length
-- interrupts : shall contain the interrupt for the watchdog
+- clocks : the clock driving the IP block (PCLK) and optionally
+ an external clock (EXTCLK)
+- clock-names : should be "PCLK" for the IP block clock and
+ "EXTCLK" for the external clock if present
Optional properties:
+- interrupts : the bark interrupt for the watchdog
+- resets : reset line for the IP block
- timeout-sec : the default watchdog timeout in seconds.
+- faraday,use-extclk : if set, the "EXTCLK" provided in the clocks
+ property will be used to clock the watchdog
Example:
@@ -19,4 +29,6 @@ watchdog at 41000000 {
compatible = "faraday,ftwdt010";
reg = <0x41000000 0x1000>;
interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&pclk>;
+ clock-names = "PCLK";
};
--
2.13.4
More information about the linux-arm-kernel
mailing list