arm64: dts: exynos5433: Add CPU cooling binding for Exynos5433 SoC
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 17 Apr 2015 09:32:40 +0000 (18:32 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:43:02 +0000 (13:43 +0900)
This patch adds the CPU cooling binding information for Exynos5433 SoC.
Each cooling map has both trip property and cooling-device property.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi

index 7ff7b0e..5751f44 100644 (file)
@@ -53,6 +53,44 @@ thermal-zones {
                                type = "active";
                        };
                };
+
+               cooling-maps {
+                       map0 {
+                               /* Set maximum frequency as 1800MHz  */
+                               trip = <&atlas0_alert_0>;
+                               cooling-device = <&cpu4 1 1>;
+                       };
+                       map1 {
+                               /* Set maximum frequency as 1600MHz  */
+                               trip = <&atlas0_alert_1>;
+                               cooling-device = <&cpu4 3 3>;
+                       };
+                       map2 {
+                               /* Set maximum frequency as 1400MHz  */
+                               trip = <&atlas0_alert_2>;
+                               cooling-device = <&cpu4 5 5>;
+                       };
+                       map3 {
+                               /* Set maximum frequency as 1200MHz  */
+                               trip = <&atlas0_alert_3>;
+                               cooling-device = <&cpu4 7 7>;
+                       };
+                       map4 {
+                               /* Set maximum frequency as 1000MHz  */
+                               trip = <&atlas0_alert_4>;
+                               cooling-device = <&cpu4 9 9>;
+                       };
+                       map5 {
+                               /* Set maximum frequency as 800MHz  */
+                               trip = <&atlas0_alert_5>;
+                               cooling-device = <&cpu4 11 11>;
+                       };
+                       map6 {
+                               /* Set maximum frequency as 700MHz  */
+                               trip = <&atlas0_alert_6>;
+                               cooling-device = <&cpu4 12 12>;
+                       };
+               };
        };
 
        atlas1_thermal: atlas1-thermal {
@@ -183,6 +221,44 @@ thermal-zones {
                                type = "active";
                        };
                };
+
+               cooling-maps {
+                       map0 {
+                               /* Set maximum frequency as 1200MHz  */
+                               trip = <&apollo_alert_0>;
+                               cooling-device = <&cpu0 1 1>;
+                       };
+                       map1 {
+                               /* Set maximum frequency as 1000MHz  */
+                               trip = <&apollo_alert_1>;
+                               cooling-device = <&cpu0 3 3>;
+                       };
+                       map2 {
+                               /* Set maximum frequency as 800MHz  */
+                               trip = <&apollo_alert_2>;
+                               cooling-device = <&cpu0 5 5>;
+                       };
+                       map3 {
+                               /* Set maximum frequency as 700MHz  */
+                               trip = <&apollo_alert_3>;
+                               cooling-device = <&cpu0 6 6>;
+                       };
+                       map4 {
+                               /* Set maximum frequency as 600MHz  */
+                               trip = <&apollo_alert_4>;
+                               cooling-device = <&cpu0 7 7>;
+                       };
+                       map5 {
+                               /* Set maximum frequency as 500MHz  */
+                               trip = <&apollo_alert_5>;
+                               cooling-device = <&cpu0 8 8>;
+                       };
+                       map6 {
+                               /* Set maximum frequency as 400MHz  */
+                               trip = <&apollo_alert_6>;
+                               cooling-device = <&cpu0 9 9>;
+                       };
+               };
        };
 
        isp_thermal: isp-thermal {