diff options
author | Harald Geyer <harald@ccbib.org> | 2018-03-15 12:25:07 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-03-19 17:12:26 -0400 |
commit | d41850437c364ef7aba9bc25c1c701699d0240e0 (patch) | |
tree | a6b1ec49666d404a81ce353a759fd7e077d13fb4 | |
parent | 11239fe6a06e38a58de61d6d798afd014e770a01 (diff) |
arm64: dts: allwinner: a64: Add watchdog
Add a watchdog node for the A64, automatically enabled on all boards.
Since the device is compatible with an existing driver, we only reserve
a new compatible string to be used together with the fall back.
Tested on Olimex Teres-I.
Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
-rw-r--r-- | Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt index 62dd5baad70e..04fc368d828f 100644 --- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | |||
@@ -2,8 +2,10 @@ Allwinner SoCs Watchdog timer | |||
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | 4 | ||
5 | - compatible : should be either "allwinner,sun4i-a10-wdt" or | 5 | - compatible : should be one of |
6 | "allwinner,sun6i-a31-wdt" | 6 | "allwinner,sun4i-a10-wdt" |
7 | "allwinner,sun6i-a31-wdt" | ||
8 | "allwinner,sun50i-a64-wdt","allwinner,sun6i-a31-wdt" | ||
7 | - reg : Specifies base physical address and size of the registers. | 9 | - reg : Specifies base physical address and size of the registers. |
8 | 10 | ||
9 | Example: | 11 | Example: |
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 64e452a758fa..8401e7f887ff 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | |||
@@ -665,5 +665,12 @@ | |||
665 | #address-cells = <1>; | 665 | #address-cells = <1>; |
666 | #size-cells = <0>; | 666 | #size-cells = <0>; |
667 | }; | 667 | }; |
668 | |||
669 | wdt0: watchdog@1c20ca0 { | ||
670 | compatible = "allwinner,sun50i-a64-wdt", | ||
671 | "allwinner,sun6i-a31-wdt"; | ||
672 | reg = <0x01c20ca0 0x20>; | ||
673 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; | ||
674 | }; | ||
668 | }; | 675 | }; |
669 | }; | 676 | }; |