ARM: dts: BCM5301X: Add TWD WD Support to DT
authorJon Mason <jonmason@broadcom.com>
Mon, 6 Mar 2017 16:24:44 +0000 (11:24 -0500)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sat, 18 Mar 2017 16:39:39 +0000 (09:39 -0700)
Add support for the ARM TWD Watchdog to the bcm5301x device tree.  The
ARM TWD timer allocated the register space for the WDT, so this patch
necessitated shrinking that.  Also, the GIC masks were added for these.

Signed-off-by: Jon Mason <jonmason@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm5301x.dtsi

index 1e5a97b32b4e128a7ff8e9d7add3a7bdce607418..a9aa7be4b9ac3ab3d53442d04469c271e3194fe9 100644 (file)
                        clocks = <&periph_clk>;
                };
 
-               local-timer@20600 {
+               timer@20600 {
                        compatible = "arm,cortex-a9-twd-timer";
-                       reg = <0x20600 0x100>;
-                       interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
+                       reg = <0x20600 0x20>;
+                       interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
+                                                 IRQ_TYPE_EDGE_RISING)>;
+                       clocks = <&periph_clk>;
+               };
+
+               watchdog@20620 {
+                       compatible = "arm,cortex-a9-twd-wdt";
+                       reg = <0x20620 0x20>;
+                       interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
+                                                 IRQ_TYPE_EDGE_RISING)>;
                        clocks = <&periph_clk>;
                };