]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
arm64: dts: msm8916: Add gpu thermal zone
authorAmit Kucheria <amit.kucheria@linaro.org>
Mon, 10 Sep 2018 07:09:53 +0000 (12:39 +0530)
committerAndy Gross <andy.gross@linaro.org>
Wed, 14 Nov 2018 17:32:30 +0000 (09:32 -0800)
Initialise the gpu 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 2288826de3cd4fc383b3868799a3a2eece87ea16..392223e68b00be15226a3baf3fe29cd6bb3ac8f0 100644 (file)
                        };
                };
 
+               gpu-thermal {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens 2>;
+
+                       trips {
+                               gpu_alert: trip0 {
+                                       temperature = <75000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               gpu_crit: trip1 {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
        };
 
        cpu_opp_table: cpu_opp_table {