From 2369e107db7735302dfe94768dec3918476fec6f Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Tue, 3 Mar 2020 09:42:28 -0800 Subject: [PATCH] ARM: dts: msm: Add GPU thermal zone configuration for lahaina Add a virtual sensor configuration to monitor the maximum temperature of two GPU sensors and then mitigate GPU cooling device. Change-Id: I14265fb06d453ae56a0dcf00ed37742139f71d68 --- qcom/lahaina-thermal.dtsi | 27 +++++++++++++++++++++++++++ qcom/lahaina.dtsi | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/qcom/lahaina-thermal.dtsi b/qcom/lahaina-thermal.dtsi index ccc49d150210..03839e109937 100644 --- a/qcom/lahaina-thermal.dtsi +++ b/qcom/lahaina-thermal.dtsi @@ -46,6 +46,10 @@ }; }; +&msm_gpu { + #cooling-cells = <2>; +}; + &thermal_zones { aoss-0-usr { polling-delay-passive = <0>; @@ -944,5 +948,28 @@ }; }; }; + + gpuss-max-step { + polling-delay-passive = <10>; + polling-delay = <100>; + thermal-governor = "step_wise"; + thermal-sensors = <&tsens1 1>, <&tsens1 2>; + sensor-aggregation = ; + trips { + gpuss_config: active-config0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + }; + + cooling-maps { + gpu_cdev { + trip = <&gpuss_config>; + cooling-device = <&msm_gpu THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + }; + }; + }; }; diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index 9eb219fcfe9b..5cf784d5ef52 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -3773,7 +3773,6 @@ }; }; -#include "lahaina-thermal.dtsi" #include "ipcc-test.dtsi" #include "lahaina-regulators.dtsi" #include "lahaina-pinctrl.dtsi" @@ -3813,6 +3812,7 @@ #include "lahaina-gpu.dtsi" #include "display/lahaina-sde.dtsi" +#include "lahaina-thermal.dtsi" &qupv3_se18_4uart { status = "ok";