mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 08:51:30 +00:00
ARM: dts: msm: Enable CPU and GPU mitigation config in waipio
Enable CPU emergency mitigation and GPU Tj mitigation for waipio. Also add trip config dedicated for thermal HAL. Change-Id: I3f223f281617a266960b54c8416da61aae497449
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
#include <dt-bindings/thermal/thermal_qti.h>
|
||||
|
||||
&msm_gpu {
|
||||
#cooling-cells = <2>;
|
||||
};
|
||||
|
||||
&soc {
|
||||
tsens0: thermal-sensor@c263000 {
|
||||
compatible = "qcom,tsens-v2";
|
||||
@@ -255,11 +261,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu4_emerg0: cpu4-emerg0-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu10_cdev {
|
||||
trip = <&cpu4_emerg0>;
|
||||
cooling-device = <&cpu4_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -274,11 +299,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu4_emerg1: cpu4-emerg1-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu11_cdev {
|
||||
trip = <&cpu4_emerg1>;
|
||||
cooling-device = <&cpu4_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -293,11 +337,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu5_emerg0: cpu5-emerg0-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu12_cdev {
|
||||
trip = <&cpu5_emerg0>;
|
||||
cooling-device = <&cpu5_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -312,11 +375,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu5_emerg1: cpu5-emerg1-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu13_cdev {
|
||||
trip = <&cpu5_emerg1>;
|
||||
cooling-device = <&cpu5_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -331,11 +413,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu6_emerg0: cpu6-emerg0-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu14_cdev {
|
||||
trip = <&cpu6_emerg0>;
|
||||
cooling-device = <&cpu6_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -350,11 +451,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu6_emerg1: cpu6-emerg1-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu15_cdev {
|
||||
trip = <&cpu6_emerg1>;
|
||||
cooling-device = <&cpu6_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -369,11 +489,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu7_emerg0: cpu7-emerg0-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu16_cdev {
|
||||
trip = <&cpu7_emerg0>;
|
||||
cooling-device = <&cpu7_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -388,11 +527,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu7_emerg1: cpu7-emerg1-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu17_cdev {
|
||||
trip = <&cpu7_emerg1>;
|
||||
cooling-device = <&cpu7_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -407,16 +565,35 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu7_emerg2: cpu7-emerg2-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu18_cdev {
|
||||
trip = <&cpu7_emerg2>;
|
||||
cooling-device = <&cpu7_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gpuss-0 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay-passive = <10>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 14>;
|
||||
trips {
|
||||
@@ -426,20 +603,7 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gpuss-1 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 15>;
|
||||
trips {
|
||||
thermal-engine-config {
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
@@ -450,6 +614,57 @@
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
gpu0_tj_cfg: tj_cfg {
|
||||
temperature = <95000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
gpu0_cdev {
|
||||
trip = <&gpu0_tj_cfg>;
|
||||
cooling-device = <&msm_gpu 0 THERMAL_NO_LIMIT>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gpuss-1 {
|
||||
polling-delay-passive = <10>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&tsens0 15>;
|
||||
trips {
|
||||
thermal-engine-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
gpu1_tj_cfg: tj_cfg {
|
||||
temperature = <95000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
gpu1_cdev {
|
||||
trip = <&gpu1_tj_cfg>;
|
||||
cooling-device = <&msm_gpu 0 THERMAL_NO_LIMIT>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -483,11 +698,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu0_emerg: cpu0-emerg-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu00_cdev {
|
||||
trip = <&cpu0_emerg>;
|
||||
cooling-device = <&cpu0_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -502,11 +736,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu1_emerg: cpu1-emerg-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu01_cdev {
|
||||
trip = <&cpu1_emerg>;
|
||||
cooling-device = <&cpu1_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -521,11 +774,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu2_emerg: cpu2-emerg-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu02_cdev {
|
||||
trip = <&cpu2_emerg>;
|
||||
cooling-device = <&cpu2_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -540,11 +812,30 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
cpu3_emerg: cpu3-emerg-cfg {
|
||||
temperature = <110000>;
|
||||
hysteresis = <10000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
cpu03_cdev {
|
||||
trip = <&cpu3_emerg>;
|
||||
cooling-device = <&cpu3_pause 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -559,6 +850,12 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
@@ -578,6 +875,12 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
@@ -597,6 +900,12 @@
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
|
||||
@@ -3170,8 +3170,8 @@
|
||||
#include "waipio-audio.dtsi"
|
||||
#include "waipio-pcie.dtsi"
|
||||
#include "msm-rdbg.dtsi"
|
||||
#include "waipio-thermal.dtsi"
|
||||
#include "waipio-gpu.dtsi"
|
||||
#include "waipio-thermal.dtsi"
|
||||
|
||||
&pcie0_rp {
|
||||
#address-cells = <5>;
|
||||
|
||||
Reference in New Issue
Block a user