diff mbox series

[v2] arm64: dts: msm8916: Add cpu cooling maps

Message ID 4d134dee2154ae3fa56b375aaed9568e21b1a777.1520398076.git.amit.kucheria@linaro.org
State New
Headers show
Series [v2] arm64: dts: msm8916: Add cpu cooling maps | expand

Commit Message

Amit Kucheria March 7, 2018, 5 a.m. UTC
From: Rajendra Nayak <rnayak@codeaurora.org>


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>

---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Amit Kucheria March 7, 2018, 11:26 a.m. UTC | #1
On Wed, Mar 7, 2018 at 10:44 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On Wed, Mar 7, 2018 at 10:30 AM, Amit Kucheria <amit.kucheria@linaro.org> wrote:

>> From: Rajendra Nayak <rnayak@codeaurora.org>

>>

>> 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>

>> ---

>>  arch/arm64/boot/dts/qcom/msm8916.dtsi | 19 +++++++++++++++++++

>>  1 file changed, 19 insertions(+)

>>

>> diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi

>> index e468277..66b318e 100644

>> --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi

>> +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi

>> @@ -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";

>> @@ -115,6 +116,7 @@

>>                         cpu-idle-states = <&CPU_SPC>;

>>                         clocks = <&apcs 0>;

>>                         operating-points-v2 = <&cpu_opp_table>;

>> +                       #cooling-cells = <2>;

>

> LGTM.


Can I take that as a Reviewed-by?
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index e468277..66b318e 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -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";
@@ -115,6 +116,7 @@ 
 			cpu-idle-states = <&CPU_SPC>;
 			clocks = <&apcs 0>;
 			operating-points-v2 = <&cpu_opp_table>;
+			#cooling-cells = <2>;
 		};
 
 		CPU1: cpu@1 {
@@ -126,6 +128,7 @@ 
 			cpu-idle-states = <&CPU_SPC>;
 			clocks = <&apcs 0>;
 			operating-points-v2 = <&cpu_opp_table>;
+			#cooling-cells = <2>;
 		};
 
 		CPU2: cpu@2 {
@@ -137,6 +140,7 @@ 
 			cpu-idle-states = <&CPU_SPC>;
 			clocks = <&apcs 0>;
 			operating-points-v2 = <&cpu_opp_table>;
+			#cooling-cells = <2>;
 		};
 
 		CPU3: cpu@3 {
@@ -148,6 +152,7 @@ 
 			cpu-idle-states = <&CPU_SPC>;
 			clocks = <&apcs 0>;
 			operating-points-v2 = <&cpu_opp_table>;
+			#cooling-cells = <2>;
 		};
 
 		L2_0: l2-cache {
@@ -196,6 +201,13 @@ 
 					type = "critical";
 				};
 			};
+
+			cooling-maps {
+				map0 {
+					trip = <&cpu_alert0>;
+					cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 
 		cpu-thermal1 {
@@ -216,6 +228,13 @@ 
 					type = "critical";
 				};
 			};
+
+			cooling-maps {
+				map0 {
+					trip = <&cpu_alert1>;
+					cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 
 	};