From 244a101b212ae138bdfc5838a8c5a9be035994bd Mon Sep 17 00:00:00 2001 From: Priyansh Jain Date: Thu, 28 Nov 2024 12:25:59 +0530 Subject: [PATCH] ARM: dts: qcom: Add thermal overlay support for kera and tuna Add thermal overlay support for kera and tuna. Change-Id: I87a87a173715e9d748e8bab7250d34530be03554 Signed-off-by: Priyansh Jain --- qcom/kera.dtsi | 1 + qcom/tuna-cdp.dtsi | 1 - qcom/tuna-mtp.dtsi | 1 - qcom/tuna-pm7550ba.dtsi | 19 +++++++++++++++++++ qcom/tuna-pmih010x.dtsi | 19 +++++++++++++++++++ qcom/tuna-pmiv0108.dtsi | 19 +++++++++++++++++++ qcom/tuna-qrd.dtsi | 1 - qcom/tuna-thermal-overlay.dtsi | 19 ------------------- qcom/tuna.dtsi | 2 ++ 9 files changed, 60 insertions(+), 22 deletions(-) diff --git a/qcom/kera.dtsi b/qcom/kera.dtsi index 3986b5d3..65164f1d 100644 --- a/qcom/kera.dtsi +++ b/qcom/kera.dtsi @@ -3217,3 +3217,4 @@ vdd-usb-cp-supply = <&L7B>; }; }; +#include "tuna-thermal-overlay.dtsi" diff --git a/qcom/tuna-cdp.dtsi b/qcom/tuna-cdp.dtsi index eb92e52c..c188cee7 100644 --- a/qcom/tuna-cdp.dtsi +++ b/qcom/tuna-cdp.dtsi @@ -4,7 +4,6 @@ */ #include -#include "tuna-thermal-overlay.dtsi" &qupv3_se4_i2c { #address-cells = <1>; diff --git a/qcom/tuna-mtp.dtsi b/qcom/tuna-mtp.dtsi index 20a874ec..c5878f76 100644 --- a/qcom/tuna-mtp.dtsi +++ b/qcom/tuna-mtp.dtsi @@ -5,7 +5,6 @@ #include #include -#include "tuna-thermal-overlay.dtsi" &qupv3_se4_i2c { #address-cells = <1>; diff --git a/qcom/tuna-pm7550ba.dtsi b/qcom/tuna-pm7550ba.dtsi index bb7acad2..f9ba9b63 100644 --- a/qcom/tuna-pm7550ba.dtsi +++ b/qcom/tuna-pm7550ba.dtsi @@ -315,6 +315,25 @@ }; }; }; + + socd { + cooling-maps { + socd_apc1 { + trip = <&socd_trip>; + cooling-device = <&APC1_MX_CX_PAUSE 1 1>; + }; + + socd_cdsp1 { + trip = <&socd_trip>; + cooling-device = <&cdsp_sw 4 4>; + }; + + socd_gpu0 { + trip = <&socd_trip>; + cooling-device = <&msm_gpu 4 4>; + }; + }; + }; }; &pm7550ba_eusb2_repeater { diff --git a/qcom/tuna-pmih010x.dtsi b/qcom/tuna-pmih010x.dtsi index f2ac1b7d..d9a16fe6 100644 --- a/qcom/tuna-pmih010x.dtsi +++ b/qcom/tuna-pmih010x.dtsi @@ -298,6 +298,25 @@ }; }; }; + + socd { + cooling-maps { + socd_apc1 { + trip = <&socd_trip>; + cooling-device = <&APC1_MX_CX_PAUSE 1 1>; + }; + + socd_cdsp1 { + trip = <&socd_trip>; + cooling-device = <&cdsp_sw 4 4>; + }; + + socd_gpu0 { + trip = <&socd_trip>; + cooling-device = <&msm_gpu 4 4>; + }; + }; + }; }; &pmih010x_eusb2_repeater { diff --git a/qcom/tuna-pmiv0108.dtsi b/qcom/tuna-pmiv0108.dtsi index 15c2767c..1cfe6696 100644 --- a/qcom/tuna-pmiv0108.dtsi +++ b/qcom/tuna-pmiv0108.dtsi @@ -240,6 +240,25 @@ }; }; }; + + socd { + cooling-maps { + socd_apc1 { + trip = <&socd_trip>; + cooling-device = <&APC1_MX_CX_PAUSE 1 1>; + }; + + socd_cdsp1 { + trip = <&socd_trip>; + cooling-device = <&cdsp_sw 4 4>; + }; + + socd_gpu0 { + trip = <&socd_trip>; + cooling-device = <&msm_gpu 4 4>; + }; + }; + }; }; &pmiv010x_eusb2_repeater { diff --git a/qcom/tuna-qrd.dtsi b/qcom/tuna-qrd.dtsi index f5b69fc1..52f76c03 100644 --- a/qcom/tuna-qrd.dtsi +++ b/qcom/tuna-qrd.dtsi @@ -4,7 +4,6 @@ */ #include #include -#include "tuna-thermal-overlay.dtsi" &qupv3_se4_spi { #address-cells = <1>; diff --git a/qcom/tuna-thermal-overlay.dtsi b/qcom/tuna-thermal-overlay.dtsi index c0f874df..e0c1e053 100644 --- a/qcom/tuna-thermal-overlay.dtsi +++ b/qcom/tuna-thermal-overlay.dtsi @@ -6,25 +6,6 @@ #include &thermal_zones { - socd { - cooling-maps { - socd_apc1 { - trip = <&socd_trip>; - cooling-device = <&APC1_MX_CX_PAUSE 1 1>; - }; - - socd_cdsp1 { - trip = <&socd_trip>; - cooling-device = <&cdsp_sw 4 4>; - }; - - socd_gpu0 { - trip = <&socd_trip>; - cooling-device = <&msm_gpu 4 4>; - }; - }; - }; - pmxr2230-bcl-lvl0 { cooling-maps { lbat_0_nr_scg { diff --git a/qcom/tuna.dtsi b/qcom/tuna.dtsi index 5080d089..58bbc1f8 100644 --- a/qcom/tuna.dtsi +++ b/qcom/tuna.dtsi @@ -3667,3 +3667,5 @@ vdd-usb-cp-supply = <&L7B>; }; }; + +#include "tuna-thermal-overlay.dtsi"