From c6abca418a3ed899f7f174adbdfe6efc3871658f Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 9 Aug 2024 11:08:58 +0530 Subject: [PATCH] ARM: dts: qcom: Add cold temperature mitigation cooling device Add cx regulator cooling device to handle cold interrupt case in parrot, it gets activated when cold temperatures interrupt triggers. Change-Id: I75c350ac3b30304e97e7bb2f2450f197b0a34900 Signed-off-by: Nitesh Kumar --- qcom/parrot-thermal.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qcom/parrot-thermal.dtsi b/qcom/parrot-thermal.dtsi index 76f426f8..42661ede 100644 --- a/qcom/parrot-thermal.dtsi +++ b/qcom/parrot-thermal.dtsi @@ -9,6 +9,12 @@ #cooling-cells = <2>; }; +&aoss_qmp { + cx_cdev: cx_cdev { + #cooling-cells = <2>; + }; +}; + &soc { tsens0: thermal-sensor@c263000 { compatible = "qcom,tsens-v2"; @@ -1129,6 +1135,13 @@ type = "passive"; }; }; + + cooling-maps { + wcss_cx_vdd_cdev { + trip = <&min_temp_0_trip>; + cooling-device = <&cx_cdev 1 1>; + }; + }; }; zeroc-1 { @@ -1148,5 +1161,12 @@ type = "passive"; }; }; + + cooling-maps { + wcss_cx_vdd_cdev { + trip = <&min_temp_1_trip>; + cooling-device = <&cx_cdev 1 1>; + }; + }; }; };