From 6eca9a4e95696276e231efbf64a4738c217b14ab Mon Sep 17 00:00:00 2001 From: Priyansh Jain Date: Tue, 7 Jun 2022 16:21:25 +0530 Subject: [PATCH] ARM: dts: msm: Add additional thermal zones for sdr pa sensors Add addtional thermal zones for sdr pa sensor to make compatibility on both modem versions. Change-Id: Ieaf14620cfca9894e76c2c8a9c28749c97ef25db --- qcom/sdxlemur-thermal-modem.dtsi | 44 +++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/qcom/sdxlemur-thermal-modem.dtsi b/qcom/sdxlemur-thermal-modem.dtsi index e54074abffd8..e04948b34a69 100644 --- a/qcom/sdxlemur-thermal-modem.dtsi +++ b/qcom/sdxlemur-thermal-modem.dtsi @@ -140,7 +140,9 @@ "mmw1", "mmw2", "mmw3", - "mmw_ific0"; + "mmw_ific0", + "sdr0_pa", + "sdr1_pa"; }; }; }; @@ -619,4 +621,44 @@ }; }; }; + + modem-sdr0-pa { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&qmi_sensor + (QMI_MODEM_INST_ID+QMI_SDR0_PA)>; + trips { + thermal-engine-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + thermal-hal-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + modem-sdr1-pa { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&qmi_sensor + (QMI_MODEM_INST_ID+QMI_SDR1_PA)>; + trips { + thermal-engine-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + thermal-hal-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; };