ipq806x: add hwspinlock support
[openwrt.git] / target / linux / ipq806x / patches-4.1 / 033-ARM-qcom-add-SFPB-nodes-to-IPQ806x-dts.patch
1 From c7c482da19a5e4ba7101198c21c2434056b0b2da Mon Sep 17 00:00:00 2001
2 From: Mathieu Olivari <mathieu@codeaurora.org>
3 Date: Thu, 13 Aug 2015 09:45:26 -0700
4 Subject: [PATCH 1/3] ARM: qcom: add SFPB nodes to IPQ806x dts
5
6 Add one new node to the ipq806x.dtsi file to declare & register the
7 hardware spinlock devices. This mechanism is required to be used by
8 other drivers such as SMEM.
9
10 Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
11 ---
12  arch/arm/boot/dts/qcom-ipq8064.dtsi | 11 +++++++++++
13  1 file changed, 11 insertions(+)
14
15 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
16 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
17 @@ -329,5 +329,16 @@
18                         #reset-cells = <1>;
19                 };
20  
21 +               sfpb_mutex_block: syscon@1200600 {
22 +                       compatible = "syscon";
23 +                       reg = <0x01200600 0x100>;
24 +               };
25         };
26 +
27 +       sfpb_mutex: sfpb-mutex {
28 +               compatible = "qcom,sfpb-mutex";
29 +               syscon = <&sfpb_mutex_block 4 4>;
30 +
31 +               #hwlock-cells = <1>;
32 +       };
33  };