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

Commit 6fa83c14 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: Enable CDSP thermal zone mitigation for TRINKET



Enable CDSP thermal mitigation for CDSP TSENS for TRINKET.
It throttles CDSP DCVS frequencies whenever preset trips are
violated.

Change-Id: If622105c02d1b393b317e88d03047f3b18840ce4
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 54b2e472
Loading
Loading
Loading
Loading
+22 −3
Original line number Diff line number Diff line
@@ -1536,22 +1536,41 @@
	};

	cdsp-step {
		polling-delay-passive = <0>;
		polling-delay-passive = <10>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 1>;
		thermal-governor = "step_wise";
		trips {
			cdsp_config: cdsp-config {
			cdsp_trip0: cdsp-trip0 {
				temperature = <95000>;
				hysteresis = <20000>;
				type = "passive";
			};
			cdsp_trip1: cdsp-trip1 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};
			cdsp_trip2: cdsp-trip2 {
				temperature = <105000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
		cooling-maps {
			cxip-cdev {
				trip = <&cdsp_config>;
				trip = <&cdsp_trip0>;
				cooling-device = <&cxip_cdev 1 1>;
			};
			cdsp-cdev0 {
				trip = <&cdsp_trip1>;
				cooling-device = <&msm_cdsp_rm
						THERMAL_NO_LIMIT 4>;
			};
			cdsp-cdev1 {
				trip = <&cdsp_trip2>;
				cooling-device = <&msm_cdsp_rm 4 4>;
			};
		};
	};
};