ARM: dts: qcom: Add BCL mitigation support and GPU cooling device

Add BCL mitigation support and GPU cooling devices for ravelin.

Change-Id: I1195413f8405229079ffa4ab50ba0943a90baf1b
This commit is contained in:
Priyansh Jain
2022-12-05 16:43:36 +05:30
parent a417704867
commit 4f1f205f19
7 changed files with 212 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
#include "ravelin-pmic-overlay.dtsi"
#include "ravelin-pm7250b.dtsi"
#include "ravelin-thermal-overlay.dtsi"
&soc {
};

View File

@@ -1,5 +1,6 @@
#include "ravelin-pmic-overlay.dtsi"
#include "ravelin-pm7250b.dtsi"
#include "ravelin-thermal-overlay.dtsi"
&soc {
};

View File

@@ -137,6 +137,103 @@
};
&thermal_zones {
socd {
cooling-maps {
socd_cpu_6_7 {
trip = <&socd_trip>;
cooling-device = <&cpu_6_7_pause 1 1>;
};
socd_gpu0 {
trip = <&socd_trip>;
cooling-device = <&msm_gpu 2 2>;
};
};
};
pm7250b-ibat-lvl0 {
trips {
ibat-lvl0 {
temperature = <4000>;
};
};
};
pm7250b-ibat-lvl1 {
trips {
ibat-lvl1 {
temperature = <5000>;
};
};
};
pm7250b-bcl-lvl0 {
cooling-maps {
vbat_lte0 {
trip = <&b_bcl_lvl0>;
cooling-device = <&modem_lte_dsc 8 8>;
};
vbat_nr0_scg {
trip = <&b_bcl_lvl0>;
cooling-device = <&modem_nr_scg_dsc 3 3>;
};
vbat_nr0 {
trip = <&b_bcl_lvl0>;
cooling-device = <&modem_nr_dsc 6 6>;
};
vbat_cpu_5 {
trip = <&b_bcl_lvl0>;
cooling-device = <&cpu6_pause 1 1>;
};
vbat_gpu0 {
trip = <&b_bcl_lvl0>;
cooling-device = <&msm_gpu 1 1>;
};
};
};
pm7250b-bcl-lvl1 {
cooling-maps {
vbat_lte1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_lte_dsc 255 255>;
};
vbat_nr1_scg {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_nr_scg_dsc 255 255>;
};
vbat_nr1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_nr_dsc 255 255>;
};
vbat_cpu_6_7 {
trip = <&b_bcl_lvl1>;
cooling-device = <&cpu7_pause 1 1>;
};
vbat_gpu1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&msm_gpu 2 2>;
};
};
};
pm7250b-bcl-lvl2 {
cooling-maps {
vbat_gpu2 {
trip = <&b_bcl_lvl2>;
cooling-device = <&msm_gpu 3 THERMAL_NO_LIMIT>;
};
};
};
sys-therm-6 {
polling-delay-passive = <0>;
polling-delay = <0>;

View File

@@ -163,6 +163,87 @@
};
&thermal_zones {
socd {
cooling-maps {
socd_cpu_6_7 {
trip = <&socd_trip>;
cooling-device = <&cpu_6_7_pause 1 1>;
};
socd_gpu0 {
trip = <&socd_trip>;
cooling-device = <&msm_gpu 2 2>;
};
};
};
pmi632-bcl-lvl0 {
cooling-maps {
vbat_lte0 {
trip = <&b_bcl_lvl0>;
cooling-device = <&modem_lte_dsc 8 8>;
};
vbat_nr0_scg {
trip = <&b_bcl_lvl0>;
cooling-device = <&modem_nr_scg_dsc 3 3>;
};
vbat_nr0 {
trip = <&b_bcl_lvl0>;
cooling-device = <&modem_nr_dsc 6 6>;
};
vbat_cpu_5 {
trip = <&b_bcl_lvl0>;
cooling-device = <&cpu6_pause 1 1>;
};
vbat_gpu0 {
trip = <&b_bcl_lvl0>;
cooling-device = <&msm_gpu 1 1>;
};
};
};
pmi632-bcl-lvl1 {
cooling-maps {
vbat_lte1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_lte_dsc 255 255>;
};
vbat_nr1_scg {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_nr_scg_dsc 255 255>;
};
vbat_nr1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_nr_dsc 255 255>;
};
vbat_cpu_6_7 {
trip = <&b_bcl_lvl1>;
cooling-device = <&cpu7_pause 1 1>;
};
vbat_gpu1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&msm_gpu 2 2>;
};
};
};
pmi632-bcl-lvl2 {
cooling-maps {
vbat_gpu2 {
trip = <&b_bcl_lvl2>;
cooling-device = <&msm_gpu 3 THERMAL_NO_LIMIT>;
};
};
};
sys-therm-5 {
polling-delay-passive = <0>;
polling-delay = <0>;

View File

@@ -1,5 +1,6 @@
#include "ravelin-pmic-overlay.dtsi"
#include "ravelin-pmi632.dtsi"
#include "ravelin-thermal-overlay.dtsi"
&soc {
};

View File

@@ -1,24 +1,18 @@
#include <dt-bindings/thermal/thermal_qti.h>
&thermal_zones {
pm7250b-ibat-lvl0 {
trips {
ibat-lvl0 {
temperature = <4000>;
};
};
};
pm7250b-ibat-lvl1 {
trips {
ibat-lvl1 {
temperature = <5000>;
};
};
};
pm6450_tz {
cooling-maps {
pm6450_lte {
trip = <&pm6450_trip0>;
cooling-device = <&modem_lte_dsc 255 255>;
};
pm6450_nr {
trip = <&pm6450_trip0>;
cooling-device = <&modem_nr_scg_dsc 255 255>;
};
pm6450_cpu0 {
trip = <&pm6450_trip0>;
cooling-device = <&cpu0_pause 1 1>;
@@ -53,6 +47,11 @@
trip = <&pm6450_trip0>;
cooling-device = <&cpu_6_7_pause 1 1>;
};
pm6450_gpu {
trip = <&pm6450_trip0>;
cooling-device = <&msm_gpu 3 THERMAL_NO_LIMIT>;
};
};
};
};

View File

@@ -1,5 +1,9 @@
#include <dt-bindings/thermal/thermal_qti.h>
&msm_gpu {
#cooling-cells = <2>;
};
&soc {
tsens0: thermal-sensor@c263000 {
compatible = "qcom,tsens-v2";
@@ -176,6 +180,11 @@
qcom,cpus = <&CPU0 &CPU6>;
};
qcom,devfreq-cdev {
compatible = "qcom,devfreq-cdev";
qcom,devfreq = <&msm_gpu>;
};
qcom,userspace-cdev {
compatible = "qcom,userspace-cooling-devices";
@@ -655,6 +664,13 @@
type = "passive";
};
};
cooling-maps {
gpu_cdev {
trip = <&gpu_tj_cfg>;
cooling-device = <&msm_gpu 0 THERMAL_NO_LIMIT>;
};
};
};
camera {