ARM: dts: msm: Add cooling device mapping for bcl for parrot

Add cooling device mapping for bcl and pmic die temperature
thermal zones for parrot.

Change-Id: I85034becbf7dd23cbbf8e0f3207136b68c8e76fc
This commit is contained in:
Priyansh Jain
2022-03-28 12:16:00 +05:30
parent f7c620ca4d
commit d7fb40d673
5 changed files with 258 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#include "parrot-pm7250b.dtsi"
#include "parrot-pmic-overlay.dtsi"
#include "parrot-thermal-overlay.dtsi"
&soc {
gpio_keys {

View File

@@ -2,6 +2,7 @@
#include <dt-bindings/input/input.h>
#include "parrot-pmic-overlay.dtsi"
#include "parrot-thermal-overlay.dtsi"
&soc {
gpio_keys {

View File

@@ -168,6 +168,123 @@
};
&thermal_zones {
socd {
cooling-maps {
socd_apc1 {
trip = <&socd_trip>;
cooling-device = <&APC1_pause 1 1>;
};
socd_cdsp1 {
trip = <&socd_trip>;
cooling-device = <&cdsp_sw 4 4>;
};
socd_gpu0 {
trip = <&socd_trip>;
cooling-device = <&msm_gpu 2 2>;
};
};
};
pm7250b-ibat-lvl0 {
trips {
ibat-lvl0 {
temperature = <6000>;
};
};
};
pm7250b-ibat-lvl1 {
trips {
ibat-lvl1 {
temperature = <7500>;
};
};
};
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_cdsp0 {
trip = <&b_bcl_lvl0>;
cooling-device = <&cdsp_sw 2 2>;
};
vbat_cpu_5 {
trip = <&b_bcl_lvl0>;
cooling-device = <&cpu5_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 10 10>;
};
vbat_nr1_scg {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_nr_scg_dsc 10 10>;
};
vbat_nr1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&modem_nr_dsc 9 9>;
};
vbat_cdsp1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&cdsp_sw 4 4>;
};
vbat_cpu_6_7 {
trip = <&b_bcl_lvl1>;
cooling-device = <&cpu_6_7_pause 1 1>;
};
vbat_gpu1 {
trip = <&b_bcl_lvl1>;
cooling-device = <&msm_gpu 2 2>;
};
};
};
pm7250b-bcl-lvl2 {
cooling-maps {
vbat_cdsp2 {
trip = <&b_bcl_lvl2>;
cooling-device = <&cdsp_sw 5 THERMAL_NO_LIMIT>;
};
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

@@ -2,6 +2,7 @@
#include <dt-bindings/input/input.h>
#include "parrot-pmic-overlay.dtsi"
#include "parrot-thermal-overlay.dtsi"
&soc {
gpio_keys {

View File

@@ -0,0 +1,138 @@
#include <dt-bindings/thermal/thermal_qti.h>
&thermal_zones {
pm6150l-bcl-lvl0 {
cooling-maps {
vph_lte0 {
trip = <&l_bcl_lvl0>;
cooling-device = <&modem_lte_dsc 8 8>;
};
vph_nr0_scg {
trip = <&l_bcl_lvl0>;
cooling-device = <&modem_nr_scg_dsc 3 3>;
};
vph_nr0 {
trip = <&l_bcl_lvl0>;
cooling-device = <&modem_nr_dsc 6 6>;
};
vph_cdsp0 {
trip = <&l_bcl_lvl0>;
cooling-device = <&cdsp_sw 2 2>;
};
vph_cpu_5 {
trip = <&l_bcl_lvl0>;
cooling-device = <&cpu5_pause 1 1>;
};
vph_gpu0 {
trip = <&l_bcl_lvl0>;
cooling-device = <&msm_gpu 1 1>;
};
};
};
pm6150l-bcl-lvl1 {
cooling-maps {
vph_lte1 {
trip = <&l_bcl_lvl1>;
cooling-device = <&modem_lte_dsc 10 10>;
};
vph_nr1_scg {
trip = <&l_bcl_lvl1>;
cooling-device = <&modem_nr_scg_dsc 10 10>;
};
vph_nr1 {
trip = <&l_bcl_lvl1>;
cooling-device = <&modem_nr_dsc 9 9>;
};
vph_cdsp1 {
trip = <&l_bcl_lvl1>;
cooling-device = <&cdsp_sw 4 4>;
};
vph_cpu_6_7 {
trip = <&l_bcl_lvl1>;
cooling-device = <&cpu_6_7_pause 1 1>;
};
vph_gpu1 {
trip = <&l_bcl_lvl1>;
cooling-device = <&msm_gpu 2 2>;
};
};
};
pm6150l-bcl-lvl2 {
cooling-maps {
vph_cdsp2 {
trip = <&l_bcl_lvl2>;
cooling-device = <&cdsp_sw 5 THERMAL_NO_LIMIT>;
};
vph_gpu2 {
trip = <&l_bcl_lvl2>;
cooling-device = <&msm_gpu 3 THERMAL_NO_LIMIT>;
};
};
};
pm6450_tz {
cooling-maps {
pm6450_gpu {
trip = <&pm6450_trip0>;
cooling-device = <&msm_gpu 3 THERMAL_NO_LIMIT>;
};
pm6450_cdsp {
trip = <&pm6450_trip0>;
cooling-device = <&cdsp_sw 5 THERMAL_NO_LIMIT>;
};
};
};
pm6150l_tz {
cooling-maps {
pm6150l_lte {
trip = <&pm6150l_trip0>;
cooling-device = <&modem_lte_dsc 255 255>;
};
pm6150l_nr {
trip = <&pm6150l_trip0>;
cooling-device = <&modem_nr_scg_dsc 255 255>;
};
pm6150l_cpu0 {
trip = <&pm6150l_trip0>;
cooling-device = <&cpu0_pause 1 1>;
};
pm6150l_cpu1 {
trip = <&pm6150l_trip0>;
cooling-device = <&cpu1_pause 1 1>;
};
pm6150l_cpu2 {
trip = <&pm6150l_trip0>;
cooling-device = <&cpu2_pause 1 1>;
};
pm6150l_cpu3 {
trip = <&pm6150l_trip0>;
cooling-device = <&cpu3_pause 1 1>;
};
pm6150l_apc1 {
trip = <&pm6150l_trip0>;
cooling-device = <&APC1_pause 1 1>;
};
};
};
};