arm64: dts: rockchip: update thermal config for rk3368
authorRocky Hao <rocky.hao@rock-chips.com>
Tue, 21 Mar 2017 02:54:12 +0000 (10:54 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 21 Mar 2017 10:00:29 +0000 (18:00 +0800)
add cpus' dynamic power coefficient and update alert temperature

Change-Id: I502e49d52268b63625e01103b50e6c18fb8da8b0
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368.dtsi

index 1c3eae584871268ab43332b2cb0565f3967dba1c..c34900d36c09094368b6455b17e344ccac8c84f8 100644 (file)
                        enable-method = "psci";
                        clocks = <&cru ARMCLKL>;
                        operating-points-v2 = <&cluster0_opp>;
-
                        #cooling-cells = <2>; /* min followed by max */
+                       dynamic-power-coefficient = <149>;
                };
 
                cpu_l1: cpu@1 {
                        enable-method = "psci";
                        clocks = <&cru ARMCLKB>;
                        operating-points-v2 = <&cluster1_opp>;
-
                        #cooling-cells = <2>; /* min followed by max */
+                       dynamic-power-coefficient = <160>;
                };
 
                cpu_b1: cpu@101 {
 
        thermal-zones {
                cpu {
-                       polling-delay-passive = <100>; /* milliseconds */
-                       polling-delay = <5000>; /* milliseconds */
+                       polling-delay-passive = <300>; /* milliseconds */
+                       polling-delay = <300>; /* milliseconds */
+                       sustainable-power = <600>; /* milliwatts */
 
                        thermal-sensors = <&tsadc 0>;
-
                        trips {
                                cpu_alert0: cpu_alert0 {
-                                       temperature = <75000>; /* millicelsius */
+                                       temperature = <70000>; /* millicelsius */
                                        hysteresis = <2000>; /* millicelsius */
                                        type = "passive";
                                };
                                        type = "passive";
                                };
                                cpu_crit: cpu_crit {
-                                       temperature = <95000>; /* millicelsius */
+                                       temperature = <90000>; /* millicelsius */
                                        hysteresis = <2000>; /* millicelsius */
                                        type = "critical";
                                };
 
                        cooling-maps {
                                map0 {
-                                       trip = <&cpu_alert0>;
+                                       trip = <&cpu_alert1>;
                                        cooling-device =
-                                       <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                                       <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                                       contribution = <1024>;
                                };
                                map1 {
                                        trip = <&cpu_alert1>;
                                        cooling-device =
-                                       <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                                       <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                                       contribution = <1024>;
                                };
                        };
                };
 
-               gpu {
-                       polling-delay-passive = <100>; /* milliseconds */
-                       polling-delay = <5000>; /* milliseconds */
-
+               gpu_thermal: gpu-thermal {
+                       polling-delay-passive = <300>; /* milliseconds */
+                       polling-delay = <300>; /* milliseconds */
                        thermal-sensors = <&tsadc 1>;
-
-                       trips {
-                               gpu_alert0: gpu_alert0 {
-                                       temperature = <80000>; /* millicelsius */
-                                       hysteresis = <2000>; /* millicelsius */
-                                       type = "passive";
-                               };
-                               gpu_crit: gpu_crit {
-                                       temperature = <115000>; /* millicelsius */
-                                       hysteresis = <2000>; /* millicelsius */
-                                       type = "critical";
-                               };
-                       };
-
-                       cooling-maps {
-                               map0 {
-                                       trip = <&gpu_alert0>;
-                                       cooling-device =
-                                       <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
-                               };
-                       };
                };
        };