Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2369e107 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

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
parent 59f20fa6
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -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>;
			};
		};
	};
};
+1 −1
Original line number Diff line number Diff line
@@ -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";