From a6f0ab4b2b89d54eafeb11add144e8785710a248 Mon Sep 17 00:00:00 2001 From: Minghao Zhang Date: Wed, 4 Nov 2020 13:59:34 +0800 Subject: [PATCH] ARM: dts: msm: Add GPU mitigation rules for Lahaina QRD Add gpu-skin-avg sensor thermal zone mitigation rule with gpu based on the latest recommendation. Change-Id: I4186f2d0c6fd6aa37f7eabf117b063b0c4891448 --- qcom/lahaina-qrd-common.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qcom/lahaina-qrd-common.dtsi b/qcom/lahaina-qrd-common.dtsi index 935146de871d..692d5fa395b6 100644 --- a/qcom/lahaina-qrd-common.dtsi +++ b/qcom/lahaina-qrd-common.dtsi @@ -347,3 +347,28 @@ &pm8350c_flash { status = "ok"; }; + +&thermal_zones { + gpu-skin-avg-step { + polling-delay-passive = <5000>; + polling-delay = <1000>; + thermal-governor = "step_wise"; + thermal-sensors = <&tsens1 1>, <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + sensor-aggregation = ; + coefficients = <3 7 0>; + trips { + gpuss_skin_config: active-config0 { + temperature = <570000>; + hysteresis = <20000>; + type = "passive"; + }; + }; + + cooling-maps { + gpu_cdev { + trip = <&gpuss_skin_config>; + cooling-device = <&msm_gpu THERMAL_NO_LIMIT 5>; + }; + }; + }; +};