diff options
author | Gopala Krishna Nuthaki <gnuthaki@qti.qualcomm.com> | 2021-10-06 00:24:23 +0530 |
---|---|---|
committer | Gopala Krishna Nuthaki <gnuthaki@qti.qualcomm.com> | 2021-10-06 15:50:22 +0530 |
commit | 2de4181fb42ce43c321c5623329cbbad204abfad (patch) | |
tree | 3a4148e28986f491b1cc461e438cce7855f9b22f | |
parent | 3e412c3599291fb40bc26cab1e66ac2452f081cc (diff) | |
download | devicetree-2de4181fb42ce43c321c5623329cbbad204abfad.tar.gz |
ARM: dts: msm: Update skin thermal zone mitigations for KHAJE
Update quiet-therm and pa-therm0 skin thermal zone mitigations
for khaje based on latest recommendation.
Change-Id: I49ae664112e8eb4aba3d17da4d19c7d4e3edd169
-rw-r--r-- | qcom/khaje-qrd-pm7250b.dtsi | 31 | ||||
-rw-r--r-- | qcom/khaje-qrd.dtsi | 151 |
2 files changed, 181 insertions, 1 deletions
diff --git a/qcom/khaje-qrd-pm7250b.dtsi b/qcom/khaje-qrd-pm7250b.dtsi index 25dd2d97..cbe8509a 100644 --- a/qcom/khaje-qrd-pm7250b.dtsi +++ b/qcom/khaje-qrd-pm7250b.dtsi @@ -159,3 +159,34 @@ &usb0 { extcon = <&pm7250b_pdphy>, <&pm7250b_charger>, <&eud>; }; + +&thermal_zones { + quiet-therm-step { + cooling-maps { + quiet_batt_cdev1 { + trip = <&skin_batt_trip0>; + cooling-device = <&pm7250b_charger 8 8>; + }; + + quiet_batt_cdev2 { + trip = <&skin_batt_trip1>; + cooling-device = <&pm7250b_charger 12 12>; + }; + + quiet_batt_cdev3 { + trip = <&skin_batt_trip2>; + cooling-device = <&pm7250b_charger 14 14>; + }; + + quiet_batt_cdev4 { + trip = <&skin_batt_trip3>; + cooling-device = <&pm7250b_charger 16 16>; + }; + + quiet_batt_cdev5 { + trip = <&skin_batt_trip4>; + cooling-device = <&pm7250b_charger 18 18>; + }; + }; + }; +}; diff --git a/qcom/khaje-qrd.dtsi b/qcom/khaje-qrd.dtsi index 51df295e..711676c9 100644 --- a/qcom/khaje-qrd.dtsi +++ b/qcom/khaje-qrd.dtsi @@ -323,15 +323,164 @@ }; &thermal_zones { + /delete-node/ quiet-therm-step; + quiet-therm-step { - status = "ok"; + polling-delay-passive = <2000>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM2_PU2>; + wake-capable-sensor; + + trips { + skin_batt_trip0: batt-trip0 { + temperature = <41000>; + hysteresis = <2000>; + type = "passive"; + }; + + skin_modem_trip0: modem-trip0 { + temperature = <42000>; + hysteresis = <2000>; + type = "passive"; + }; + + skin_batt_trip1: batt-trip1 { + temperature = <43000>; + hysteresis = <2000>; + type = "passive"; + }; + + skin_batt_trip2: batt-trip2 { + temperature = <45000>; + hysteresis = <2000>; + type = "passive"; + }; + + skin_gold_trip: gold-trip { + temperature = <47000>; + hysteresis = <0>; + type = "passive"; + }; + + skin_batt_trip3: batt-trip3 { + temperature = <47000>; + hysteresis = <2000>; + type = "passive"; + }; + + skin_batt_trip4: batt-trip4 { + temperature = <48000>; + hysteresis = <1000>; + type = "passive"; + }; + + skin_gpu_trip: gpu-trip { + temperature = <48000>; + hysteresis = <4000>; + type = "passive"; + }; + + skin_silver_trip: silver-trip { + temperature = <50000>; + hysteresis = <0>; + type = "passive"; + }; + + skin_hvx_trip: hvx-trip { + temperature = <52000>; + hysteresis = <4000>; + type = "passive"; + }; + + skin_modem_trip1: modem-trip1 { + temperature = <60000>; + hysteresis = <4000>; + type = "passive"; + }; + }; cooling-maps { + gold_cdev { + trip = <&skin_gold_trip>; + /* limit to 1766400khz */ + cooling-device = <&CPU4 THERMAL_NO_LIMIT + (THERMAL_MAX_LIMIT-4)>; + }; + silver_cdev { + trip = <&skin_silver_trip>; /* limit to 1516800khz */ cooling-device = <&CPU0 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-4)>; }; + + gpu_cdev { + trip = <&skin_gpu_trip>; + /* limit 785000000hz */ + cooling-device = <&msm_gpu THERMAL_NO_LIMIT + (THERMAL_MAX_LIMIT-3)>; + }; + + hvx_cdev { + trip = <&skin_hvx_trip>; + cooling-device = <&cdsp_sw 4 4>; + }; + + mdm_cdev0 { + trip = <&skin_modem_trip0>; + cooling-device = <&modem_proc 1 1>; + }; + + mdm_cdev1 { + trip = <&skin_modem_trip1>; + cooling-device = <&modem_proc 3 3>; + }; + }; + }; + + pa-therm0-step { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&pm6125_adc_tm ADC_AMUX_THM1_PU2>; + wake-capable-sensor; + + trips { + pa_therm0_trip0: pa-therm0-trip0 { + temperature = <52000>; + hysteresis = <2000>; + type = "passive"; + }; + + pa_therm0_trip1: pa-therm0-trip1 { + temperature = <54000>; + hysteresis = <2000>; + type = "passive"; + }; + + pa_therm0_trip2: pa-therm0-trip2 { + temperature = <60000>; + hysteresis = <4000>; + type = "passive"; + }; + }; + + cooling-maps { + modem_cdev0 { + trip = <&pa_therm0_trip0>; + cooling-device = <&modem_pa 1 1>; + }; + + modem_cdev1 { + trip = <&pa_therm0_trip1>; + cooling-device = <&modem_pa 2 2>; + }; + + modem_cdev2 { + trip = <&pa_therm0_trip2>; + cooling-device = <&modem_pa 3 3>; + }; }; }; }; |