bcm53xx: backport BCM5301X patches
[lede.git] / target / linux / bcm53xx / patches-4.4 / 047-0014-ARM-dts-BCM5301X-Add-TWD-WD-Support-to-DT.patch
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
6 Add support for the ARM TWD Watchdog to the bcm5301x device tree.  The
7 ARM TWD timer allocated the register space for the WDT, so this patch
8 necessitated shrinking that.  Also, the GIC masks were added for these.
9
10 Signed-off-by: Jon Mason <jonmason@broadcom.com>
11 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
12 ---
13  arch/arm/boot/dts/bcm5301x.dtsi | 15 ++++++++++++---
14  1 file changed, 12 insertions(+), 3 deletions(-)
15
16 --- a/arch/arm/boot/dts/bcm5301x.dtsi
17 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
18 @@ -70,10 +70,19 @@
19                         clocks = <&periph_clk>;
20                 };
21  
22 -               local-timer@20600 {
23 +               timer@20600 {
24                         compatible = "arm,cortex-a9-twd-timer";
25 -                       reg = <0x20600 0x100>;
26 -                       interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
27 +                       reg = <0x20600 0x20>;
28 +                       interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
29 +                                                 IRQ_TYPE_EDGE_RISING)>;
30 +                       clocks = <&periph_clk>;
31 +               };
32 +
33 +               watchdog@20620 {
34 +                       compatible = "arm,cortex-a9-twd-wdt";
35 +                       reg = <0x20620 0x20>;
36 +                       interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
37 +                                                 IRQ_TYPE_EDGE_RISING)>;
38                         clocks = <&periph_clk>;
39                 };
40