arm64: dts: msm8916: Add cpu cooling maps
authorRajendra Nayak <rnayak@codeaurora.org>
Wed, 7 Mar 2018 05:00:02 +0000 (10:30 +0530)
committerAndy Gross <andy.gross@linaro.org>
Fri, 9 Mar 2018 00:36:33 +0000 (18:36 -0600)
Add cpu cooling maps for cpu passive trip points. The cpu cooling
device states are mapped to cpufreq based scaling frequencies.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8916.dtsi

index e468277..66b318e 100644 (file)
@@ -15,6 +15,7 @@
 #include <dt-bindings/clock/qcom,gcc-msm8916.h>
 #include <dt-bindings/reset/qcom,gcc-msm8916.h>
 #include <dt-bindings/clock/qcom,rpmcc.h>
+#include <dt-bindings/thermal/thermal.h>
 
 / {
        model = "Qualcomm Technologies, Inc. MSM8916";
                        cpu-idle-states = <&CPU_SPC>;
                        clocks = <&apcs 0>;
                        operating-points-v2 = <&cpu_opp_table>;
+                       #cooling-cells = <2>;
                };
 
                CPU1: cpu@1 {
                        cpu-idle-states = <&CPU_SPC>;
                        clocks = <&apcs 0>;
                        operating-points-v2 = <&cpu_opp_table>;
+                       #cooling-cells = <2>;
                };
 
                CPU2: cpu@2 {
                        cpu-idle-states = <&CPU_SPC>;
                        clocks = <&apcs 0>;
                        operating-points-v2 = <&cpu_opp_table>;
+                       #cooling-cells = <2>;
                };
 
                CPU3: cpu@3 {
                        cpu-idle-states = <&CPU_SPC>;
                        clocks = <&apcs 0>;
                        operating-points-v2 = <&cpu_opp_table>;
+                       #cooling-cells = <2>;
                };
 
                L2_0: l2-cache {
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&cpu_alert0>;
+                                       cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                cpu-thermal1 {
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&cpu_alert1>;
+                                       cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
        };