From 6823bbb8190de6703ad88a8d8f704241bf39dc58 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Mon, 27 Apr 2020 11:18:57 -0700 Subject: [PATCH] ARM: dts: msm: Add modem junction mitigation rule for Lahaina Add thermal zone to monitor modem junction temperature for 100C and trigger mitigation using the modem junction QMI cooling device for Lahaina. Change-Id: Ib28a46680fbdc19979aa3b72d34ccee73090ad1e --- qcom/lahaina-thermal-modem.dtsi | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/qcom/lahaina-thermal-modem.dtsi b/qcom/lahaina-thermal-modem.dtsi index 2f48298963ba..7b2e96e53b83 100644 --- a/qcom/lahaina-thermal-modem.dtsi +++ b/qcom/lahaina-thermal-modem.dtsi @@ -421,4 +421,46 @@ }; }; }; + + mdmss-1-step { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&tsens1 9>; + trips { + mdmss1_config: active-config0 { + temperature = <100000>; + hysteresis = <10000>; + type = "passive"; + }; + }; + + cooling-maps { + mdmss1_cdev { + trip = <&mdmss1_config>; + cooling-device = <&modem_tj 3 3>; + }; + }; + }; + + mdmss-2-step { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&tsens1 10>; + trips { + mdmss2_config: active-config0 { + temperature = <100000>; + hysteresis = <10000>; + type = "passive"; + }; + }; + + cooling-maps { + mdmss2_cdev { + trip = <&mdmss2_config>; + cooling-device = <&modem_tj 3 3>; + }; + }; + }; };