1
0

040-arm64-dts-allwinner-a64-Add-watchdog.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From d41850437c364ef7aba9bc25c1c701699d0240e0 Mon Sep 17 00:00:00 2001
  2. From: Harald Geyer <harald@ccbib.org>
  3. Date: Thu, 15 Mar 2018 16:25:07 +0000
  4. Subject: [PATCH] arm64: dts: allwinner: a64: Add watchdog
  5. Add a watchdog node for the A64, automatically enabled on all boards.
  6. Since the device is compatible with an existing driver, we only reserve
  7. a new compatible string to be used together with the fall back.
  8. Tested on Olimex Teres-I.
  9. Signed-off-by: Harald Geyer <harald@ccbib.org>
  10. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
  11. ---
  12. Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 6 ++++--
  13. arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 7 +++++++
  14. 2 files changed, 11 insertions(+), 2 deletions(-)
  15. --- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt
  16. +++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt
  17. @@ -2,8 +2,10 @@ Allwinner SoCs Watchdog timer
  18. Required properties:
  19. -- compatible : should be either "allwinner,sun4i-a10-wdt" or
  20. - "allwinner,sun6i-a31-wdt"
  21. +- compatible : should be one of
  22. + "allwinner,sun4i-a10-wdt"
  23. + "allwinner,sun6i-a31-wdt"
  24. + "allwinner,sun50i-a64-wdt","allwinner,sun6i-a31-wdt"
  25. - reg : Specifies base physical address and size of the registers.
  26. Example:
  27. --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
  28. +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
  29. @@ -538,5 +538,12 @@
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. };
  33. +
  34. + wdt0: watchdog@1c20ca0 {
  35. + compatible = "allwinner,sun50i-a64-wdt",
  36. + "allwinner,sun6i-a31-wdt";
  37. + reg = <0x01c20ca0 0x20>;
  38. + interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  39. + };
  40. };
  41. };