From 1440afa5c8a68901a8b01ecd5b258abb116eadb6 Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Sat, 6 Jan 2024 00:19:08 +0530 Subject: [PATCH 1/2] ARM: dts: qcom: enable NSP qmi cooling devices Enable different NSP qmi thermal mitigation devices for sun. It enables to mitigate these devices during different thermal and limits violation. Change-Id: I8bad9da560df7033473c614af324f79c66cb7dac Signed-off-by: Manaf Meethalavalappu Pallikunhi --- qcom/sun-thermal.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/qcom/sun-thermal.dtsi b/qcom/sun-thermal.dtsi index 67840b87..18a22c63 100644 --- a/qcom/sun-thermal.dtsi +++ b/qcom/sun-thermal.dtsi @@ -238,6 +238,32 @@ qcom,cpus = <&CPU6 &CPU7>; }; }; + + qmi_tmd: qmi-tmd-devices { + cdsp { + qcom,instance-id = ; + + cdsp_sw: cdsp { + qcom,qmi-dev-name = "cdsp_sw"; + #cooling-cells = <2>; + }; + + cdsp_sw_hvx: cdsp_sw_hvx { + qcom,qmi-dev-name = "cdsp_sw_hvx"; + #cooling-cells = <2>; + }; + + cdsp_sw_hmx: cdsp_sw_hmx { + qcom,qmi-dev-name = "cdsp_sw_hmx"; + #cooling-cells = <2>; + }; + + cdsp_hw: cdsp_hw { + qcom,qmi-dev-name = "cdsp_hw"; + #cooling-cells = <2>; + }; + }; + }; }; #include "sun-thermal-modem.dtsi" From b530fb9d073c4c4d436d674a6071c9540b986223 Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Sat, 6 Jan 2024 00:34:50 +0530 Subject: [PATCH 2/2] ARM: dts: qcom: enable userspace cooling device for display fps Enable userspace cooling device for display fps mitigation. It enables to monitor any thermal zone sensor and trigger display fps mitigation. Change-Id: Ic2a0d0a2be462d9ed2032c8dbc49208d6c431a08 Signed-off-by: Manaf Meethalavalappu Pallikunhi --- qcom/sun-thermal.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcom/sun-thermal.dtsi b/qcom/sun-thermal.dtsi index 18a22c63..ccec009f 100644 --- a/qcom/sun-thermal.dtsi +++ b/qcom/sun-thermal.dtsi @@ -264,6 +264,15 @@ }; }; }; + + qcom,userspace-cdev { + compatible = "qcom,userspace-cooling-devices"; + + display_fps: display-fps { + qcom,max-level = <16>; + #cooling-cells = <2>; + }; + }; }; #include "sun-thermal-modem.dtsi"