OSDN Git Service

arm64: dts: msm8916: Add camera thermal zone
authorAmit Kucheria <amit.kucheria@linaro.org>
Mon, 20 Aug 2018 10:06:26 +0000 (15:36 +0530)
committerAndy Gross <andy.gross@linaro.org>
Wed, 14 Nov 2018 17:32:34 +0000 (09:32 -0800)
Initialise the camera thermal zone to export temperature to userspace.

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

index 392223e..42e72a3 100644 (file)
                        };
                };
 
+               camera-thermal {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens 1>;
+
+                       trips {
+                               cam_alert: trip0 {
+                                       temperature = <75000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cam_crit: trip1 {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+
+               };
+
        };
 
        cpu_opp_table: cpu_opp_table {