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

Commit edd59c10 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: qcom: Add vdd restriction thermal zone configs for LAGOON

Add cold temperature vdd restriction thermal zone configs for
TSENS min temp sensors for LAGOON. It places vdd restriction
vote for cpu LMH and wcss_cx railway at cold temperature.

Change-Id: I2cea57b2e4435133c064104558694245c3ce91a2
parent 6c90ff2e
Loading
Loading
Loading
Loading
+102 −0
Original line number Diff line number Diff line
@@ -972,4 +972,106 @@
			};
		};
	};

	min-temp-0-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 16>;
		thermal-governor = "low_limits_floor";
		wake-capable-sensor;
		tracks-low;
		trips {
			min_temp_0_lowf: active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			wcss_cx_vdd_cdev {
				trip = <&min_temp_0_lowf>;
				cooling-device = <&cx_cdev 0 0>;
			};
		};
	};

	min-temp-0-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 16>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			min_temp_0_lowc: active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&min_temp_0_lowc>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			};

			lmh_cpu6_cdev {
				trip = <&min_temp_0_lowc>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			};
		};
	};

	min-temp-1-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 16>;
		thermal-governor = "low_limits_floor";
		wake-capable-sensor;
		tracks-low;
		trips {
			min_temp_1_lowf: active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			wcss_cx_vdd_cdev {
				trip = <&min_temp_1_lowf>;
				cooling-device = <&cx_cdev 0 0>;
			};
		};
	};

	min-temp-1-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 16>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			min_temp_1_lowc: active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&min_temp_1_lowc>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			};

			lmh_cpu6_cdev {
				trip = <&min_temp_1_lowc>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			};
		};
	};
};