]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: msm8998: thermal: GPU has two sensors, add the second
authorAmit Kucheria <amit.kucheria@linaro.org>
Fri, 29 Mar 2019 10:12:13 +0000 (15:42 +0530)
committerAndy Gross <agross@kernel.org>
Wed, 10 Apr 2019 04:08:17 +0000 (23:08 -0500)
The first sensor is on top and the second sensor below the GPU

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Andy Gross <agross@kernel.org>
arch/arm64/boot/dts/qcom/msm8998.dtsi

index 56ca9ecdb0bffed59a0788cb9aa8eabde23894e1..b368da2356630bc4fa5cb48c8bd51d36d344ae83 100644 (file)
@@ -506,11 +506,34 @@ cpu_crit7: trip1 {
                        };
                };
 
-               gpu-thermal {
+               gpu-thermal-bottom {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens0 12>;
+
+                       trips {
+                               gpu1_alert0: trip-point@0 {
+                                       temperature = <90000>;
+                                       hysteresis = <2000>;
+                                       type = "hot";
+                               };
+                       };
+               };
+
+               gpu-thermal-top {
                        polling-delay-passive = <250>;
                        polling-delay = <1000>;
 
                        thermal-sensors = <&tsens0 13>;
+
+                       trips {
+                               gpu2_alert0: trip-point@0 {
+                                       temperature = <90000>;
+                                       hysteresis = <2000>;
+                                       type = "hot";
+                               };
+                       };
                };
        };