aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@codeaurora.org>2016-08-17 01:18:44 -0400
committerAndy Gross <andy.gross@linaro.org>2016-09-02 14:48:19 -0400
commitc59ffb519357537f632eeea8bd35372cfab10474 (patch)
treee8bfb3e0f076ea062d2605b11a9c82e15c1044f0
parente286492e4d3f1f1d561850ed8829233d679873e0 (diff)
arm: dts: msm8974: Add thermal zones, tsens and qfprom nodes
Add thermal zones, tsens and qfprom nodes Acked-by: Eduardo Valentin <edubezval@gmail.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
-rw-r--r--arch/arm/boot/dts/qcom-msm8974.dtsi103
1 files changed, 103 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 4d0cfeb4c2e6..03a9f661e155 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -131,6 +131,88 @@
131 }; 131 };
132 }; 132 };
133 133
134 thermal-zones {
135 cpu-thermal0 {
136 polling-delay-passive = <250>;
137 polling-delay = <1000>;
138
139 thermal-sensors = <&tsens 5>;
140
141 trips {
142 cpu_alert0: trip0 {
143 temperature = <75000>;
144 hysteresis = <2000>;
145 type = "passive";
146 };
147 cpu_crit0: trip1 {
148 temperature = <110000>;
149 hysteresis = <2000>;
150 type = "critical";
151 };
152 };
153 };
154
155 cpu-thermal1 {
156 polling-delay-passive = <250>;
157 polling-delay = <1000>;
158
159 thermal-sensors = <&tsens 6>;
160
161 trips {
162 cpu_alert1: trip0 {
163 temperature = <75000>;
164 hysteresis = <2000>;
165 type = "passive";
166 };
167 cpu_crit1: trip1 {
168 temperature = <110000>;
169 hysteresis = <2000>;
170 type = "critical";
171 };
172 };
173 };
174
175 cpu-thermal2 {
176 polling-delay-passive = <250>;
177 polling-delay = <1000>;
178
179 thermal-sensors = <&tsens 7>;
180
181 trips {
182 cpu_alert2: trip0 {
183 temperature = <75000>;
184 hysteresis = <2000>;
185 type = "passive";
186 };
187 cpu_crit2: trip1 {
188 temperature = <110000>;
189 hysteresis = <2000>;
190 type = "critical";
191 };
192 };
193 };
194
195 cpu-thermal3 {
196 polling-delay-passive = <250>;
197 polling-delay = <1000>;
198
199 thermal-sensors = <&tsens 8>;
200
201 trips {
202 cpu_alert3: trip0 {
203 temperature = <75000>;
204 hysteresis = <2000>;
205 type = "passive";
206 };
207 cpu_crit3: trip1 {
208 temperature = <110000>;
209 hysteresis = <2000>;
210 type = "critical";
211 };
212 };
213 };
214 };
215
134 cpu-pmu { 216 cpu-pmu {
135 compatible = "qcom,krait-pmu"; 217 compatible = "qcom,krait-pmu";
136 interrupts = <1 7 0xf04>; 218 interrupts = <1 7 0xf04>;
@@ -287,6 +369,27 @@
287 reg = <0xf9011000 0x1000>; 369 reg = <0xf9011000 0x1000>;
288 }; 370 };
289 371
372 qfprom: qfprom@fc4bc000 {
373 #address-cells = <1>;
374 #size-cells = <1>;
375 compatible = "qcom,qfprom";
376 reg = <0xfc4bc000 0x1000>;
377 tsens_calib: calib@d0 {
378 reg = <0xd0 0x18>;
379 };
380 tsens_backup: backup@440 {
381 reg = <0x440 0x10>;
382 };
383 };
384
385 tsens: thermal-sensor@fc4a8000 {
386 compatible = "qcom,msm8974-tsens";
387 reg = <0xfc4a8000 0x2000>;
388 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
389 nvmem-cell-names = "calib", "calib_backup";
390 #thermal-sensor-cells = <1>;
391 };
392
290 timer@f9020000 { 393 timer@f9020000 {
291 #address-cells = <1>; 394 #address-cells = <1>;
292 #size-cells = <1>; 395 #size-cells = <1>;