From c7e571971c01dfef535b483b2ef6da1962eceda7 Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Mon, 8 Jan 2024 13:57:07 +0530 Subject: [PATCH] ARM: dts: qcom: Enable DDR cooling device for sun Enable DDR cooling device for sun which allows it to vote for specific DDR bandwidth under thermal conditions. Change-Id: I55b8c61d4cf580392cf76ae1ed6328b69cca6487 Signed-off-by: Rashid Zafar Signed-off-by: Manaf Meethalavalappu Pallikunhi --- qcom/sun-thermal.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/qcom/sun-thermal.dtsi b/qcom/sun-thermal.dtsi index bb689745..05adc166 100644 --- a/qcom/sun-thermal.dtsi +++ b/qcom/sun-thermal.dtsi @@ -204,6 +204,18 @@ }; }; + thermal_ddr_freq_table: thermal-ddr-freq-table { + qcom,freq-tbl = < 2092800 >; + }; + + ddr_cdev: qcom,ddr-cdev { + compatible = "qcom,ddr-cooling-device"; + #cooling-cells = <2>; + qcom,bus-width = <4>; + qcom,freq-table = <&thermal_ddr_freq_table>; + interconnects = <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>; + }; + qcom,devfreq-cdev { compatible = "qcom,devfreq-cdev"; qcom,devfreq = <&msm_gpu>; @@ -1320,6 +1332,13 @@ type = "passive"; }; }; + + cooling-maps { + ddr_cdev { + trip = <&ddr_config0>; + cooling-device = <&ddr_cdev 1 1>; + }; + }; }; aoss-2 {