9a8795a3aebebfb254fc618f196c7215b0de9545
[openwrt/staging/stintel.git] / target / linux / ipq806x / patches-4.4 / 304-add-cpu-idle-state-into-ipq8064-DT.patch
1 From 3985d2c24d96f72211488fc6ebb53b032e4d0a05 Mon Sep 17 00:00:00 2001
2 From: Pavel Kubelun <be.dissent@gmail.com>
3 Date: Sun, 6 Nov 2016 19:02:34 +0300
4 Subject: [PATCH] ipq806x: add cpu idle state into ipq8064 DT
5
6 Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 ---
8 arch/arm/boot/dts/qcom-ipq8064.dtsi | 16 ++++++++++++++--
9 1 file changed, 14 insertions(+), 2 deletions(-)
10
11 diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi
12 index cb9c41d..8c989c0 100644
13 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
14 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
15 @@ -18,7 +18,7 @@
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 - cpu@0 {
20 + cpu0: cpu@0 {
21 compatible = "qcom,krait";
22 enable-method = "qcom,kpss-acc-v1";
23 device_type = "cpu";
24 @@ -31,9 +31,10 @@
25 clock-latency = <100000>;
26 cpu-supply = <&smb208_s2a>;
27 voltage-tolerance = <5>;
28 + cpu-idle-states = <&CPU_SPC>;
29 };
30
31 - cpu@1 {
32 + cpu1: cpu@1 {
33 compatible = "qcom,krait";
34 enable-method = "qcom,kpss-acc-v1";
35 device_type = "cpu";
36 @@ -45,6 +46,7 @@
37 clock-names = "cpu", "l2";
38 clock-latency = <100000>;
39 cpu-supply = <&smb208_s2b>;
40 + cpu-idle-states = <&CPU_SPC>;
41 };
42
43 L2: l2-cache {
44 @@ -56,6 +58,16 @@
45 qcom,l2 {
46 qcom,l2-rates = <384000000 1000000000 1200000000>;
47 };
48 +
49 + idle-states {
50 + CPU_SPC: spc {
51 + compatible = "qcom,idle-state-spc",
52 + "arm,idle-state";
53 + entry-latency-us = <400>;
54 + exit-latency-us = <900>;
55 + min-residency-us = <3000>;
56 + };
57 + };
58 };
59
60 cpu-pmu {