From 2b3b55923e4b581f68d113130b1dd34761b95291 Mon Sep 17 00:00:00 2001 From: Gopala Krishna Nuthaki Date: Fri, 12 Feb 2021 11:31:56 +0530 Subject: [PATCH] ARM: dts: msm: Update NSP and skin sensor thermal config for YUPIK Update thermal zone config for NSP and quiet-therm sensors based on latest recommendation. Change-Id: I157704547fb428f4097647dea14f791f71da7864 --- qcom/yupik-qrd.dtsi | 35 +++++++++++++++++++++++++++++++++++ qcom/yupik-thermal.dtsi | 10 ++++++---- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/qcom/yupik-qrd.dtsi b/qcom/yupik-qrd.dtsi index 7797428256d9..a1423ec2a430 100644 --- a/qcom/yupik-qrd.dtsi +++ b/qcom/yupik-qrd.dtsi @@ -264,6 +264,41 @@ }; }; }; + + quiet-therm-step { + polling-delay-passive = <2000>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&pmk8350_adc_tm PM7325_ADC7_AMUX_THM1_100K_PU>; + + trips { + quiet_cx_trip: quiet-cx-trip { + temperature = <55000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + + cooling-maps { + gpu-cdev { + trip = <&quiet_cx_trip>; + /* throttle to 315000000Hz */ + cooling-device = <&msm_gpu THERMAL_MAX_LIMIT + THERMAL_MAX_LIMIT>; + }; + + cdsp-cdev { + trip = <&quiet_cx_trip>; + cooling-device = <&cdsp_sw (THERMAL_MAX_LIMIT-2) + (THERMAL_MAX_LIMIT-2)>; + }; + + modem-pa-cdev { + trip = <&quiet_cx_trip>; + cooling-device = <&modem_pa 3 3>; + }; + }; + }; }; &apps_rsc { diff --git a/qcom/yupik-thermal.dtsi b/qcom/yupik-thermal.dtsi index 09800af991a3..44d153ae5721 100644 --- a/qcom/yupik-thermal.dtsi +++ b/qcom/yupik-thermal.dtsi @@ -1243,12 +1243,13 @@ cooling-maps { cdsp-cdev { trip = <&nspss0_trip>; - cooling-device = <&cdsp_sw THERMAL_MAX_LIMIT - THERMAL_MAX_LIMIT>; + cooling-device = <&cdsp_sw (THERMAL_MAX_LIMIT-2) + (THERMAL_MAX_LIMIT-2)>; }; gpu_cdev { trip = <&nspss0_trip>; + /* throttle to 315000000Hz */ cooling-device = <&msm_gpu THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; }; @@ -1276,12 +1277,13 @@ cooling-maps { cdsp-cdev { trip = <&nspss1_trip>; - cooling-device = <&cdsp_sw THERMAL_MAX_LIMIT - THERMAL_MAX_LIMIT>; + cooling-device = <&cdsp_sw (THERMAL_MAX_LIMIT-2) + (THERMAL_MAX_LIMIT-2)>; }; gpu_cdev { trip = <&nspss1_trip>; + /* throttle to 315000000Hz */ cooling-device = <&msm_gpu THERMAL_MAX_LIMIT THERMAL_MAX_LIMIT>; };