blob: fe88aaea282dcb2ac17bccb9bbbbed6bae128af5 [file] [log] [blame]
Maulik Shahd313ea82017-06-14 13:10:52 +05301/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13&soc {
14 qcom,lpm-levels {
15 compatible = "qcom,lpm-levels";
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 qcom,pm-cluster@0 {
20 reg = <0>;
21 #address-cells = <1>;
22 #size-cells = <0>;
23 label = "L3";
24 qcom,psci-mode-shift = <4>;
25 qcom,psci-mode-mask = <0xfff>;
26
27 qcom,pm-cluster-level@0 { /* D1 */
28 reg = <0>;
29 label = "l3-wfi";
30 qcom,psci-mode = <0x1>;
Maulik Shahb24e5c62017-11-16 18:37:28 +053031 qcom,latency-us = <600>;
32 qcom,ss-power = <420>;
33 qcom,energy-overhead = <4254140>;
34 qcom,time-overhead = <1260>;
Maulik Shahd313ea82017-06-14 13:10:52 +053035 };
36
Maulik Shahb24e5c62017-11-16 18:37:28 +053037 qcom,pm-cluster-level@1 { /* D4, D3 is not supported */
Maulik Shahd313ea82017-06-14 13:10:52 +053038 reg = <1>;
Maulik Shahd313ea82017-06-14 13:10:52 +053039 label = "l3-pc";
40 qcom,psci-mode = <0x4>;
Maulik Shahb24e5c62017-11-16 18:37:28 +053041 qcom,latency-us = <3048>;
42 qcom,ss-power = <329>;
43 qcom,energy-overhead = <6189829>;
44 qcom,time-overhead = <5800>;
45 qcom,min-child-idx = <3>;
Maulik Shahd313ea82017-06-14 13:10:52 +053046 qcom,is-reset;
47 };
48
Maulik Shahb24e5c62017-11-16 18:37:28 +053049 qcom,pm-cluster-level@2 { /* Cx off */
50 reg = <2>;
Maulik Shahd313ea82017-06-14 13:10:52 +053051 label = "cx-off";
52 qcom,psci-mode = <0x224>;
Maulik Shahb24e5c62017-11-16 18:37:28 +053053 qcom,latency-us = <4562>;
54 qcom,ss-power = <290>;
55 qcom,energy-overhead = <6989829>;
56 qcom,time-overhead = <8200>;
Maulik Shahd313ea82017-06-14 13:10:52 +053057 qcom,min-child-idx = <3>;
58 qcom,is-reset;
59 qcom,notify-rpm;
60 };
61
Maulik Shahb24e5c62017-11-16 18:37:28 +053062 qcom,pm-cluster-level@3 { /* AOSS sleep */
63 reg = <3>;
Maulik Shahd313ea82017-06-14 13:10:52 +053064 label = "llcc-off";
65 qcom,psci-mode = <0xC24>;
66 qcom,latency-us = <6562>;
Maulik Shahb24e5c62017-11-16 18:37:28 +053067 qcom,ss-power = <165>;
68 qcom,energy-overhead = <7000029>;
69 qcom,time-overhead = <9825>;
Maulik Shahd313ea82017-06-14 13:10:52 +053070 qcom,min-child-idx = <3>;
71 qcom,is-reset;
72 qcom,notify-rpm;
73 };
74
75 qcom,pm-cpu@0 {
76 #address-cells = <1>;
77 #size-cells = <0>;
78 qcom,psci-mode-shift = <0>;
79 qcom,psci-mode-mask = <0xf>;
Maulik Shahb24e5c62017-11-16 18:37:28 +053080 qcom,use-prediction;
Maulik Shahd313ea82017-06-14 13:10:52 +053081 qcom,cpu = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4
82 &CPU5>;
83
84 qcom,pm-cpu-level@0 { /* C1 */
85 reg = <0>;
Maulik Shahbdf541d2017-07-03 12:56:14 +053086 label = "wfi";
Maulik Shahd313ea82017-06-14 13:10:52 +053087 qcom,psci-cpu-mode = <0x1>;
Maulik Shahb24e5c62017-11-16 18:37:28 +053088 qcom,latency-us = <60>;
89 qcom,ss-power = <383>;
90 qcom,energy-overhead = <64140>;
91 qcom,time-overhead = <121>;
Maulik Shahd313ea82017-06-14 13:10:52 +053092 };
93
94 qcom,pm-cpu-level@1 { /* C2D */
95 reg = <1>;
Maulik Shahbdf541d2017-07-03 12:56:14 +053096 label = "ret";
Maulik Shahd313ea82017-06-14 13:10:52 +053097 qcom,psci-cpu-mode = <0x2>;
Maulik Shahb24e5c62017-11-16 18:37:28 +053098 qcom,latency-us = <282>;
99 qcom,ss-power = <370>;
100 qcom,energy-overhead = <238600>;
101 qcom,time-overhead = <559>;
Maulik Shahd313ea82017-06-14 13:10:52 +0530102 };
103
104 qcom,pm-cpu-level@2 { /* C3 */
105 reg = <2>;
Maulik Shahbdf541d2017-07-03 12:56:14 +0530106 label = "pc";
Maulik Shahd313ea82017-06-14 13:10:52 +0530107 qcom,psci-cpu-mode = <0x3>;
Maulik Shahb24e5c62017-11-16 18:37:28 +0530108 qcom,latency-us = <901>;
109 qcom,ss-power = <364>;
110 qcom,energy-overhead = <579285>;
111 qcom,time-overhead = <1450>;
Maulik Shahd313ea82017-06-14 13:10:52 +0530112 qcom,is-reset;
113 qcom,use-broadcast-timer;
114 };
115
116 qcom,pm-cpu-level@3 { /* C4 */
117 reg = <3>;
Maulik Shahbdf541d2017-07-03 12:56:14 +0530118 label = "rail-pc";
Maulik Shahd313ea82017-06-14 13:10:52 +0530119 qcom,psci-cpu-mode = <0x4>;
Maulik Shahb24e5c62017-11-16 18:37:28 +0530120 qcom,latency-us = <915>;
121 qcom,ss-power = <353>;
122 qcom,energy-overhead = <666292>;
123 qcom,time-overhead = <1617>;
Maulik Shahd313ea82017-06-14 13:10:52 +0530124 qcom,is-reset;
125 qcom,use-broadcast-timer;
126 };
127 };
128
129 qcom,pm-cpu@1 {
130 #address-cells = <1>;
131 #size-cells = <0>;
132 qcom,psci-mode-shift = <0>;
133 qcom,psci-mode-mask = <0xf>;
Maulik Shahb24e5c62017-11-16 18:37:28 +0530134 qcom,use-prediction;
Maulik Shahd313ea82017-06-14 13:10:52 +0530135 qcom,cpu = <&CPU6 &CPU7>;
136
137 qcom,pm-cpu-level@0 { /* C1 */
138 reg = <0>;
Maulik Shahbdf541d2017-07-03 12:56:14 +0530139 label = "wfi";
Maulik Shahd313ea82017-06-14 13:10:52 +0530140 qcom,psci-cpu-mode = <0x1>;
Maulik Shahb24e5c62017-11-16 18:37:28 +0530141 qcom,latency-us = <66>;
142 qcom,ss-power = <427>;
143 qcom,energy-overhead = <68410>;
144 qcom,time-overhead = <121>;
Maulik Shahd313ea82017-06-14 13:10:52 +0530145 };
146
147 qcom,pm-cpu-level@1 { /* C2D */
148 reg = <1>;
Maulik Shahbdf541d2017-07-03 12:56:14 +0530149 label = "ret";
Maulik Shahd313ea82017-06-14 13:10:52 +0530150 qcom,psci-cpu-mode = <0x2>;
Maulik Shahb24e5c62017-11-16 18:37:28 +0530151 qcom,latency-us = <282>;
152 qcom,ss-power = <388>;
153 qcom,energy-overhead = <281755>;
154 qcom,time-overhead = <553>;
Maulik Shahd313ea82017-06-14 13:10:52 +0530155 };
156
157 qcom,pm-cpu-level@2 { /* C3 */
158 reg = <2>;
Maulik Shahbdf541d2017-07-03 12:56:14 +0530159 label = "pc";
Maulik Shahd313ea82017-06-14 13:10:52 +0530160 qcom,psci-cpu-mode = <0x3>;
Maulik Shahb24e5c62017-11-16 18:37:28 +0530161 qcom,latency-us = <1244>;
162 qcom,ss-power = <373>;
163 qcom,energy-overhead = <795006>;
164 qcom,time-overhead = <1767>;
Maulik Shahd313ea82017-06-14 13:10:52 +0530165 qcom,is-reset;
166 qcom,use-broadcast-timer;
167 };
168
169 qcom,pm-cpu-level@3 { /* C4 */
170 reg = <3>;
Maulik Shahbdf541d2017-07-03 12:56:14 +0530171 label = "rail-pc";
Maulik Shahd313ea82017-06-14 13:10:52 +0530172 qcom,psci-cpu-mode = <0x4>;
Maulik Shahb24e5c62017-11-16 18:37:28 +0530173 qcom,latency-us = <1854>;
174 qcom,ss-power = <359>;
175 qcom,energy-overhead = <1068095>;
176 qcom,time-overhead = <2380>;
Maulik Shahd313ea82017-06-14 13:10:52 +0530177 qcom,is-reset;
178 qcom,use-broadcast-timer;
179 };
180 };
181 };
182 };
Maulik Shah682f9812017-06-15 09:56:07 +0530183
184 qcom,rpm-stats@c300000 {
185 compatible = "qcom,rpm-stats";
186 reg = <0xc300000 0x1000>, <0xc3f0004 0x4>;
187 reg-names = "phys_addr_base", "offset_addr";
188 };
Maulik Shahd313ea82017-06-14 13:10:52 +0530189};