aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRocky Hao <rocky.hao@rock-chips.com>2017-08-24 06:27:54 -0400
committerHeiko Stuebner <heiko@sntech.de>2017-10-17 14:57:44 -0400
commitf6d3f1e8eb8b15ba10b91c6279c0341a7a0d49b7 (patch)
tree8d7413abadf2cbcd9f78ba12beca7bf17567fac3
parentfb03abbc2755a7f0efb245b926c0f5ba39683da6 (diff)
ARM: dts: rockchip: add thermal nodes for RV1108 SoC
Add thermal zone and dynamic CPU power coefficients for RV1108 Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com> Acked-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm/boot/dts/rv1108.dtsi38
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi
index 658a458a5b38..76ea24636feb 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -43,6 +43,7 @@
43#include <dt-bindings/interrupt-controller/arm-gic.h> 43#include <dt-bindings/interrupt-controller/arm-gic.h>
44#include <dt-bindings/clock/rv1108-cru.h> 44#include <dt-bindings/clock/rv1108-cru.h>
45#include <dt-bindings/pinctrl/rockchip.h> 45#include <dt-bindings/pinctrl/rockchip.h>
46#include <dt-bindings/thermal/thermal.h>
46/ { 47/ {
47 #address-cells = <1>; 48 #address-cells = <1>;
48 #size-cells = <1>; 49 #size-cells = <1>;
@@ -70,6 +71,8 @@
70 compatible = "arm,cortex-a7"; 71 compatible = "arm,cortex-a7";
71 reg = <0xf00>; 72 reg = <0xf00>;
72 clocks = <&cru ARMCLK>; 73 clocks = <&cru ARMCLK>;
74 #cooling-cells = <2>; /* min followed by max */
75 dynamic-power-coefficient = <75>;
73 operating-points-v2 = <&cpu_opp_table>; 76 operating-points-v2 = <&cpu_opp_table>;
74 }; 77 };
75 }; 78 };
@@ -329,6 +332,41 @@
329 status = "disabled"; 332 status = "disabled";
330 }; 333 };
331 334
335 thermal-zones {
336 soc_thermal: soc-thermal {
337 polling-delay-passive = <20>;
338 polling-delay = <1000>;
339 sustainable-power = <50>;
340 thermal-sensors = <&tsadc 0>;
341
342 trips {
343 threshold: trip-point0 {
344 temperature = <70000>;
345 hysteresis = <2000>;
346 type = "passive";
347 };
348 target: trip-point1 {
349 temperature = <85000>;
350 hysteresis = <2000>;
351 type = "passive";
352 };
353 soc_crit: soc-crit {
354 temperature = <95000>;
355 hysteresis = <2000>;
356 type = "critical";
357 };
358 };
359
360 cooling-maps {
361 map0 {
362 trip = <&target>;
363 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
364 contribution = <4096>;
365 };
366 };
367 };
368 };
369
332 tsadc: tsadc@10370000 { 370 tsadc: tsadc@10370000 {
333 compatible = "rockchip,rv1108-tsadc"; 371 compatible = "rockchip,rv1108-tsadc";
334 reg = <0x10370000 0x100>; 372 reg = <0x10370000 0x100>;