ipq806x: add support for 4.0 kernel
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.0 / 012-ARM-qcom-add-description-of-KPSS-WDT-for-IPQ8064.patch
1 From 297cf8136ecd6a56520888fd28948393766b8ee7 Mon Sep 17 00:00:00 2001
2 From: Mathieu Olivari <mathieu@codeaurora.org>
3 Date: Thu, 19 Feb 2015 20:27:39 -0800
4 Subject: [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064
5
6 Add the watchdog related entries to the Krait Processor Sub-system
7 (KPSS) timer IPQ8064 devicetree section. Also, add a fixed-clock
8 description of SLEEP_CLK, which will do for now.
9
10 Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
11 Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
12 ---
13 arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++-
14 1 file changed, 13 insertions(+), 1 deletion(-)
15
16 diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi
17 index cb225da..d01f618 100644
18 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
19 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
20 @@ -60,6 +60,14 @@
21 };
22 };
23
24 + clocks {
25 + sleep_clk: sleep_clk {
26 + compatible = "fixed-clock";
27 + clock-frequency = <32768>;
28 + #clock-cells = <0>;
29 + };
30 + };
31 +
32 soc: soc {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 @@ -89,10 +97,14 @@
36 compatible = "qcom,kpss-timer", "qcom,msm-timer";
37 interrupts = <1 1 0x301>,
38 <1 2 0x301>,
39 - <1 3 0x301>;
40 + <1 3 0x301>,
41 + <1 4 0x301>,
42 + <1 5 0x301>;
43 reg = <0x0200a000 0x100>;
44 clock-frequency = <25000000>,
45 <32768>;
46 + clocks = <&sleep_clk>;
47 + clock-names = "sleep";
48 cpu-offset = <0x80000>;
49 };
50
51 --
52 1.9.1
53