arm64: dts: exynos5433: Adjust the temperture of trip-point for G3D and add cooling...
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 14 Jul 2015 07:16:45 +0000 (16:16 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:46:47 +0000 (13:46 +0900)
This patch adjust the temperature of trip-point of G3D and add the cooling
device as mali device to protect the critical overheating problem.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi
arch/arm64/boot/dts/exynos/exynos5433.dtsi

index dd4f919..105dc63 100644 (file)
@@ -142,42 +142,79 @@ thermal-zones {
                polling-delay = <0>;
                trips {
                        g3d_alert_0: g3d-alert-0 {
-                               temperature = <80000>;  /* millicelsius */
+                               temperature = <20000>;  /* millicelsius */
                                hysteresis = <10000>;   /* millicelsius */
                                type = "active";
                        };
                        g3d_alert_1: g3d-alert-1 {
-                               temperature = <85000>;  /* millicelsius */
+                               temperature = <25000>;  /* millicelsius */
                                hysteresis = <10000>;   /* millicelsius */
                                type = "active";
                        };
                        g3d_alert_2: g3d-alert-2 {
-                               temperature = <90000>;  /* millicelsius */
+                               temperature = <30000>;  /* millicelsius */
                                hysteresis = <10000>;   /* millicelsius */
                                type = "active";
                        };
                        g3d_alert_3: g3d-alert-3 {
-                               temperature = <95000>;  /* millicelsius */
+                               temperature = <35000>;  /* millicelsius */
                                hysteresis = <10000>;   /* millicelsius */
                                type = "active";
                        };
                        g3d_alert_4: g3d-alert-4 {
-                               temperature = <100000>; /* millicelsius */
+                               temperature = <400000>; /* millicelsius */
                                hysteresis = <10000>;   /* millicelsius */
                                type = "active";
                        };
                        g3d_alert_5: g3d-alert-5 {
-                               temperature = <105000>; /* millicelsius */
+                               temperature = <45000>;  /* millicelsius */
                                hysteresis = <10000>;   /* millicelsius */
                                type = "active";
                        };
                        g3d_alert_6: g3d-alert-6 {
-                               temperature = <110000>; /* millicelsius */
+                               temperature = <50000>;  /* millicelsius */
                                hysteresis = <10000>;   /* millicelsius */
                                type = "active";
                        };
                };
 
+               cooling-maps {
+                       map0 {
+                               /* Set maximum frequency as 550MHz  */
+                               trip = <&g3d_alert_0>;
+                               cooling-device = <&mali 2 2>;
+                       };
+                       map1 {
+                               /* Set maximum frequency as 600MHz  */
+                               trip = <&g3d_alert_1>;
+                               cooling-device = <&mali 3 3>;
+                       };
+                       map2 {
+                               /* Set maximum frequency as 420MHz  */
+                               trip = <&g3d_alert_2>;
+                               cooling-device = <&mali 4 4>;
+                       };
+                       map3 {
+                               /* Set maximum frequency as 350MHz  */
+                               trip = <&g3d_alert_3>;
+                               cooling-device = <&mali 5 5>;
+                       };
+                       map4 {
+                               /* Set maximum frequency as 2660MHz  */
+                               trip = <&g3d_alert_4>;
+                               cooling-device = <&mali 6 6>;
+                       };
+                       map5 {
+                               /* Set maximum frequency as 160MHz  */
+                               trip = <&g3d_alert_5>;
+                               cooling-device = <&mali 7 7>;
+                       };
+                       map6 {
+                               /* Set maximum frequency as 160MHz  */
+                               trip = <&g3d_alert_6>;
+                               cooling-device = <&mali 7 7>;
+                       };
+               };
        };
 
        apollo_thermal: apollo-thermal {
index c0c2b9a..2aa93af 100644 (file)
                        assigned-clocks = <&cmu_g3d CLK_FOUT_G3D_PLL>;
                        assigned-clock-rates = <160000000>;
 
+                       #cooling-cells = <2>;
+
                        operating-points = <
                                700000 1150000
                                600000 1150000