From 90aab65a7648a6a31aad7bf3c6f27052d546530c Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Sun, 20 Mar 2022 00:17:18 +0530 Subject: [PATCH] ARM: dts: qcom: Add emergency mitigation for xo-therm thermal zone Add emergency mitigation rule for xo-therm thermal zone for kalama. It also adds dummy trip and mitigation for display cooling device. Change-Id: I61c99bf9951be62518d951216002a8aa5622c0f6 --- qcom/kalama-pmic-overlay.dtsi | 36 ++++++++++++++++ qcom/kalama-thermal-overlay.dtsi | 74 ++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/qcom/kalama-pmic-overlay.dtsi b/qcom/kalama-pmic-overlay.dtsi index e3f021b4..b4bb0068 100644 --- a/qcom/kalama-pmic-overlay.dtsi +++ b/qcom/kalama-pmic-overlay.dtsi @@ -429,6 +429,42 @@ hysteresis = <1000>; type = "passive"; }; + + xo_config0: xo-config0 { + temperature = <78000>; + hysteresis = <8000>; + type = "passive"; + }; + + xo_config1: xo-config1 { + temperature = <80000>; + hysteresis = <10000>; + type = "passive"; + }; + + display_test_config1: display-test-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + display_test_config2: display-test-config2 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + display_test_config3: display-test-config3 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + display_test_config4: display-test-config4 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; }; }; }; diff --git a/qcom/kalama-thermal-overlay.dtsi b/qcom/kalama-thermal-overlay.dtsi index 9419c462..def2e5c9 100644 --- a/qcom/kalama-thermal-overlay.dtsi +++ b/qcom/kalama-thermal-overlay.dtsi @@ -125,4 +125,78 @@ }; }; }; + + xo-therm { + cooling-maps { + apc1_cdev { + trip = <&xo_config0>; + cooling-device = <&APC1_pause 1 1>; + }; + + cdsp_cdev { + trip = <&xo_config0>; + cooling-device = <&cdsp_sw 5 THERMAL_NO_LIMIT>; + }; + + gpu_cdev { + trip = <&xo_config0>; + cooling-device = <&msm_gpu 5 THERMAL_NO_LIMIT>; + }; + + cpu3_hot_cdev { + trip = <&xo_config1>; + cooling-device = <&cpu3_hotplug 1 1>; + }; + + cpu4_hot_cdev { + trip = <&xo_config1>; + cooling-device = <&cpu4_hotplug 1 1>; + }; + + cpu5_hot_cdev { + trip = <&xo_config1>; + cooling-device = <&cpu5_hotplug 1 1>; + }; + + cpu6_hot_cdev { + trip = <&xo_config1>; + cooling-device = <&cpu6_hotplug 1 1>; + }; + + cpu7_hot_cdev { + trip = <&xo_config1>; + cooling-device = <&cpu7_hotplug 1 1>; + }; + + lte_cdev { + trip = <&xo_config1>; + cooling-device = <&modem_lte_dsc 255 255>; + }; + + nr_cdev { + trip = <&xo_config1>; + cooling-device = <&modem_nr_scg_dsc 255 255>; + }; + + display_cdev1 { + trip = <&display_test_config1>; + cooling-device = <&display_fps 1 1>; + }; + + display_cdev2 { + trip = <&display_test_config2>; + cooling-device = <&display_fps 2 2>; + }; + + display_cdev3 { + trip = <&display_test_config3>; + cooling-device = <&display_fps 3 3>; + }; + + display_cdev4 { + trip = <&display_test_config4>; + cooling-device = <&display_fps 4 4>; + }; + }; + }; };