303546105e15f223da1d6af203b474455d2501e2
[openwrt/openwrt.git] / target / linux / ipq40xx / patches-4.19 / 072-v4.20-ARM-dts-qcom-ipq4019-add-cpu-operating-points-for-cp.patch
1 From bcb9ab4c2917e92114d2f4c2b1da97cdf15b471b Mon Sep 17 00:00:00 2001
2 From: Matthew McClintock <mmcclint@codeaurora.org>
3 Date: Wed, 25 Jul 2018 10:37:46 +0200
4 Subject: [PATCH] ARM: dts: qcom: ipq4019: add cpu operating points for cpufreq
5 support
6
7 This adds some operating points for cpu frequeny scaling
8
9 Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
10 Signed-off-by: John Crispin <john@phrozen.org>
11 Signed-off-by: Andy Gross <andy.gross@linaro.org>
12 ---
13 arch/arm/boot/dts/qcom-ipq4019.dtsi | 54 ++++++++++++++---------------
14 1 file changed, 26 insertions(+), 28 deletions(-)
15
16 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
17 +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
18 @@ -59,14 +59,8 @@
19 reg = <0x0>;
20 clocks = <&gcc GCC_APPS_CLK_SRC>;
21 clock-frequency = <0>;
22 - operating-points = <
23 - /* kHz uV (fixed) */
24 - 48000 1100000
25 - 200000 1100000
26 - 500000 1100000
27 - 716000 1100000
28 - >;
29 clock-latency = <256000>;
30 + operating-points-v2 = <&cpu0_opp_table>;
31 };
32
33 cpu@1 {
34 @@ -79,14 +73,8 @@
35 reg = <0x1>;
36 clocks = <&gcc GCC_APPS_CLK_SRC>;
37 clock-frequency = <0>;
38 - operating-points = <
39 - /* kHz uV (fixed) */
40 - 48000 1100000
41 - 200000 1100000
42 - 500000 1100000
43 - 666000 1100000
44 - >;
45 clock-latency = <256000>;
46 + operating-points-v2 = <&cpu0_opp_table>;
47 };
48
49 cpu@2 {
50 @@ -99,14 +87,8 @@
51 reg = <0x2>;
52 clocks = <&gcc GCC_APPS_CLK_SRC>;
53 clock-frequency = <0>;
54 - operating-points = <
55 - /* kHz uV (fixed) */
56 - 48000 1100000
57 - 200000 1100000
58 - 500000 1100000
59 - 666000 1100000
60 - >;
61 clock-latency = <256000>;
62 + operating-points-v2 = <&cpu0_opp_table>;
63 };
64
65 cpu@3 {
66 @@ -119,14 +101,8 @@
67 reg = <0x3>;
68 clocks = <&gcc GCC_APPS_CLK_SRC>;
69 clock-frequency = <0>;
70 - operating-points = <
71 - /* kHz uV (fixed) */
72 - 48000 1100000
73 - 200000 1100000
74 - 500000 1100000
75 - 666000 1100000
76 - >;
77 clock-latency = <256000>;
78 + operating-points-v2 = <&cpu0_opp_table>;
79 };
80
81 L2: l2-cache {
82 @@ -136,6 +112,28 @@
83 };
84 };
85
86 + cpu0_opp_table: opp_table0 {
87 + compatible = "operating-points-v2";
88 + opp-shared;
89 +
90 + opp-48000000 {
91 + opp-hz = /bits/ 64 <48000000>;
92 + clock-latency-ns = <256000>;
93 + };
94 + opp-200000000 {
95 + opp-hz = /bits/ 64 <200000000>;
96 + clock-latency-ns = <256000>;
97 + };
98 + opp-500000000 {
99 + opp-hz = /bits/ 64 <500000000>;
100 + clock-latency-ns = <256000>;
101 + };
102 + opp-716000000 {
103 + opp-hz = /bits/ 64 <716000000>;
104 + clock-latency-ns = <256000>;
105 + };
106 + };
107 +
108 pmu {
109 compatible = "arm,cortex-a7-pmu";
110 interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) |