ipq806x: set v4.9 as default
[openwrt/openwrt.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 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
12 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
13 @@ -18,7 +18,7 @@
14 #address-cells = <1>;
15 #size-cells = <0>;
16
17 - cpu@0 {
18 + cpu0: cpu@0 {
19 compatible = "qcom,krait";
20 enable-method = "qcom,kpss-acc-v1";
21 device_type = "cpu";
22 @@ -31,9 +31,10 @@
23 clock-latency = <100000>;
24 cpu-supply = <&smb208_s2a>;
25 voltage-tolerance = <5>;
26 + cpu-idle-states = <&CPU_SPC>;
27 };
28
29 - cpu@1 {
30 + cpu1: cpu@1 {
31 compatible = "qcom,krait";
32 enable-method = "qcom,kpss-acc-v1";
33 device_type = "cpu";
34 @@ -45,6 +46,7 @@
35 clock-names = "cpu", "l2";
36 clock-latency = <100000>;
37 cpu-supply = <&smb208_s2b>;
38 + cpu-idle-states = <&CPU_SPC>;
39 };
40
41 L2: l2-cache {
42 @@ -56,6 +58,16 @@
43 qcom,l2 {
44 qcom,l2-rates = <384000000 1000000000 1200000000>;
45 };
46 +
47 + idle-states {
48 + CPU_SPC: spc {
49 + compatible = "qcom,idle-state-spc",
50 + "arm,idle-state";
51 + entry-latency-us = <400>;
52 + exit-latency-us = <900>;
53 + min-residency-us = <3000>;
54 + };
55 + };
56 };
57
58 cpu-pmu {