ARM: dts: msm: Add GPU thermal zone configuration for lahaina

Add a virtual sensor configuration to monitor the maximum temperature of
two GPU sensors and then mitigate GPU cooling device.

Change-Id: I14265fb06d453ae56a0dcf00ed37742139f71d68
This commit is contained in:
Ram Chandrasekar 2020-03-03 09:42:28 -08:00
commit 2369e107db
2 changed files with 28 additions and 1 deletions

View file

@ -46,6 +46,10 @@
};
};
&msm_gpu {
#cooling-cells = <2>;
};
&thermal_zones {
aoss-0-usr {
polling-delay-passive = <0>;
@ -944,5 +948,28 @@
};
};
};
gpuss-max-step {
polling-delay-passive = <10>;
polling-delay = <100>;
thermal-governor = "step_wise";
thermal-sensors = <&tsens1 1>, <&tsens1 2>;
sensor-aggregation = <AGGREGATE_MAX_VALUE>;
trips {
gpuss_config: active-config0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
};
cooling-maps {
gpu_cdev {
trip = <&gpuss_config>;
cooling-device = <&msm_gpu THERMAL_NO_LIMIT
THERMAL_NO_LIMIT>;
};
};
};
};

View file

@ -3773,7 +3773,6 @@
};
};
#include "lahaina-thermal.dtsi"
#include "ipcc-test.dtsi"
#include "lahaina-regulators.dtsi"
#include "lahaina-pinctrl.dtsi"
@ -3813,6 +3812,7 @@
#include "lahaina-gpu.dtsi"
#include "display/lahaina-sde.dtsi"
#include "lahaina-thermal.dtsi"
&qupv3_se18_4uart {
status = "ok"