]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: msm8996: Add gpu cooling support
authorYassine Oudjana <y.oudjana@protonmail.com>
Wed, 10 Feb 2021 11:40:45 +0000 (11:40 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 5 Aug 2021 15:27:33 +0000 (10:27 -0500)
Add cooling-cells property and cooling maps for the GPU.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Link: https://lore.kernel.org/r/Ku7mRZ_q2mYDZQ048IPlAc8VOVhH8N4uENhMI-JXxjeiZxjbRRs40ZJYwREb_ScgCvtQgtdl1VRjoDd7CR_8vCrbWVe8n3MwyB1S3VbSDis=@protonmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8996.dtsi

index 491b9b73b0928b7f8211b0dfce1114ba542a546c..31686950004ed0b06dde9ed509a9ecd547a902e6 100644 (file)
 
                        status = "disabled";
 
+                       #cooling-cells = <2>;
+
                        gpu_opp_table: opp-table {
                                compatible  ="operating-points-v2";
 
                                gpu1_alert0: trip-point0 {
                                        temperature = <90000>;
                                        hysteresis = <2000>;
-                                       type = "hot";
+                                       type = "passive";
+                               };
+                       };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu1_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
                                };
                        };
                };
                                gpu2_alert0: trip-point0 {
                                        temperature = <90000>;
                                        hysteresis = <2000>;
-                                       type = "hot";
+                                       type = "passive";
+                               };
+                       };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu2_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
                                };
                        };
                };