]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: msm8916: thermal: Add sensor for modem
authorAmit Kucheria <amit.kucheria@linaro.org>
Fri, 29 Mar 2019 10:12:09 +0000 (15:42 +0530)
committerAndy Gross <agross@kernel.org>
Wed, 10 Apr 2019 04:08:17 +0000 (23:08 -0500)
On platforms that have a modem, sensor 0 monitors the modem.

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

index 0803ca8c02da371dbd4670757988453eabee82ec..c8aa9a0986d2a561dd794c7cf5c1b6bee38b47cb 100644 (file)
@@ -278,7 +278,21 @@ cam_crit: trip1 {
                                        type = "critical";
                                };
                        };
+               };
+
+               modem-thermal {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens 0>;
 
+                       trips {
+                               modem_alert0: trip-point@0 {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "hot";
+                               };
+                       };
                };
 
        };