From 8cbe2642c8891358b965fd361ae6469a0f4aef48 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Thu, 5 Aug 2021 09:04:37 -0700 Subject: [PATCH] ARM: dts: msm: Add test thermal zone config for display fps mitigation Add test thermal zone configs with very high trip temperature to trigger display fps mitigation. Change-Id: Ibfc931687c58ef7f5e5d2acbcee1bf318ecb8e69 --- qcom/waipio-pmic-overlay.dtsi | 24 ++++++++++++++++++++++++ qcom/waipio-thermal-overlay.dtsi | 20 ++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/qcom/waipio-pmic-overlay.dtsi b/qcom/waipio-pmic-overlay.dtsi index 5f919cae..c512ffaf 100644 --- a/qcom/waipio-pmic-overlay.dtsi +++ b/qcom/waipio-pmic-overlay.dtsi @@ -462,6 +462,30 @@ hysteresis = <10000>; type = "critical"; }; + + 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/waipio-thermal-overlay.dtsi b/qcom/waipio-thermal-overlay.dtsi index 85037c9d..f982cd7e 100644 --- a/qcom/waipio-thermal-overlay.dtsi +++ b/qcom/waipio-thermal-overlay.dtsi @@ -257,6 +257,26 @@ 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>; + }; }; }; };