From 6bf436437cc8996c65d64557bbbe5a1b1f25ce68 Mon Sep 17 00:00:00 2001 From: Priyansh Jain Date: Mon, 15 Nov 2021 14:59:12 +0530 Subject: [PATCH] ARM: dts: msm: Add isense devicetree node and ddr cdev for diwali Add isense devicetree node for ref voltage regulator voting and add ddr cooling device support for diwali. Change-Id: I3bcc852b08fdf9e96078d6dceef698106746dbb4 --- qcom/diwali-thermal.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/qcom/diwali-thermal.dtsi b/qcom/diwali-thermal.dtsi index 7c7c43e2..2f08ae79 100644 --- a/qcom/diwali-thermal.dtsi +++ b/qcom/diwali-thermal.dtsi @@ -159,6 +159,26 @@ }; }; + 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,freq-table = <&thermal_ddr_freq_table>; + qcom,bus-width = <4>; + interconnects = <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>; + }; + + qcom,limits-dcvs { + compatible = "qcom,msm-hw-limits"; + isens_vref_0p8-supply = <&pm8350c_l10_ao>; + isens-vref-0p8-settings = <880000 880000 30000>; + isens_vref_1p8-supply = <&pm7325_l6_ao>; + isens-vref-1p8-settings = <1200000 1200000 8000>; + }; + qmi_tmd: qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; cdsp { @@ -1004,6 +1024,10 @@ THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + ddr_cdev { + trip = <&ddr_config0>; + cooling-device = <&ddr_cdev 1 1>; + }; }; };