047-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From f22c635e585471d01a38b829c0753c1467b5058e Mon Sep 17 00:00:00 2001
  2. From: Jon Mason <jonmason@broadcom.com>
  3. Date: Mon, 6 Mar 2017 11:24:44 -0500
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add TWD WD Support to DT
  5. Add support for the ARM TWD Watchdog to the bcm5301x device tree. The
  6. ARM TWD timer allocated the register space for the WDT, so this patch
  7. necessitated shrinking that. Also, the GIC masks were added for these.
  8. Signed-off-by: Jon Mason <jonmason@broadcom.com>
  9. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  10. ---
  11. arch/arm/boot/dts/bcm5301x.dtsi | 15 ++++++++++++---
  12. 1 file changed, 12 insertions(+), 3 deletions(-)
  13. --- a/arch/arm/boot/dts/bcm5301x.dtsi
  14. +++ b/arch/arm/boot/dts/bcm5301x.dtsi
  15. @@ -70,10 +70,19 @@
  16. clocks = <&periph_clk>;
  17. };
  18. - local-timer@20600 {
  19. + timer@20600 {
  20. compatible = "arm,cortex-a9-twd-timer";
  21. - reg = <0x20600 0x100>;
  22. - interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
  23. + reg = <0x20600 0x20>;
  24. + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
  25. + IRQ_TYPE_EDGE_RISING)>;
  26. + clocks = <&periph_clk>;
  27. + };
  28. +
  29. + watchdog@20620 {
  30. + compatible = "arm,cortex-a9-twd-wdt";
  31. + reg = <0x20620 0x20>;
  32. + interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
  33. + IRQ_TYPE_EDGE_RISING)>;
  34. clocks = <&periph_clk>;
  35. };