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

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

ARM: dts: qcom: use min temp TSENS for thermal VDD restriction for LITO

Use min temp TSENS thermal zone of each TSENS controller instead of
individual TSENS for cold temperature VDD restriction rules for LITO.
It avoids interrupt storm at cold temperature due to interrupt
from each individual TSENS for VDD restriction.

Change-Id: Ieee21af14b9256244767c16852efb245054c98e5
parent 44505c52
Loading
Loading
Loading
Loading
+74 −256
Original line number Diff line number Diff line
@@ -518,19 +518,56 @@
		};
	};

	min-temp-0-usr {
	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 {
			active-config0 {
			min_temp_0_lowf: active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			lpi_cx_vdd_cdev {
				trip = <&min_temp_0_lowf>;
				cooling-device = <&lpi_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>;
			};
		};
	};

	aoss-1-usr {
@@ -1055,196 +1092,65 @@
		};
	};

	aoss0-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 0>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			aoss0_cap: aoss0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

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

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

	aoss0-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 0>;
		thermal-governor = "low_limits_floor";
		wake-capable-sensor;
		tracks-low;
		trips {
			aoss0_trip: aoss0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			lpi_cx_vdd_cdev {
				trip = <&aoss0_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

	cpu-1-3-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 12>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			cpu_1_3_cap: cpu-1-3-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

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

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

	cpu-1-3-lowf {
		polling-delay-passive = <0>;
	q6-hvx-step {
		polling-delay-passive = <10>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 12>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens1 4>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		tracks-low;
		trips {
			cpu_1_3_trip: cpu-1-3-trip {
				temperature = <5000>;
				hysteresis = <5000>;
			q6_hvx_trip0: q6-hvx-trip0 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};
		};

		cooling-maps {
			lpi_cx_vdd_cdev {
				trip = <&cpu_1_3_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

	gpuss-0-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 13>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			gpuss0_cap: gpuss0-trip {
				temperature = <5000>;
			q6_hvx_trip1: q6-hvx-trip1 {
				temperature = <100000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

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

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

	gpuss-0-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 13>;
		thermal-governor = "low_limits_floor";
		wake-capable-sensor;
		tracks-low;
		trips {
			gpuss0_trip: gpuss0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
			cdsp-cdev0 {
				trip = <&q6_hvx_trip0>;
				cooling-device = <&msm_cdsp_rm
						THERMAL_NO_LIMIT 7>;
			};

		cooling-maps {
			lpi_cx_vdd_cdev {
				trip = <&gpuss0_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
			cdsp-cdev1 {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&msm_cdsp_rm 7 7>;
			};

	camera-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 7>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			camera_cap: camera-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
			gpu-cdev {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-1)
							(THERMAL_MAX_LIMIT-1)>;
			};

		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&camera_cap>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			modem-pa-cdev {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&modem_pa 3 3>;
			};

			lmh_cpu6_cdev {
				trip = <&camera_cap>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			modem-tj-cdev {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};

	camera-lowf {
	min-temp-1-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 7>;
		thermal-sensors = <&tsens1 16>;
		thermal-governor = "low_limits_floor";
		wake-capable-sensor;
		tracks-low;
		trips {
			camera_trip: camera-trip {
			min_temp_1_lowf: active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
@@ -1253,21 +1159,21 @@

		cooling-maps {
			lpi_cx_vdd_cdev {
				trip = <&camera_trip>;
				trip = <&min_temp_1_lowf>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

	mdm-scl-lowc {
	min-temp-1-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 9>;
		thermal-sensors = <&tsens1 16>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			mdm_scl_cap: mdm-scl-trip {
			min_temp_1_lowc: active-config0 {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
@@ -1276,105 +1182,17 @@

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

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

	mdm-scl-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 9>;
		thermal-governor = "low_limits_floor";
		wake-capable-sensor;
		tracks-low;
		trips {
			mdm_scl_trip: mdm-scl-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			lpi_cx_vdd_cdev {
				trip = <&mdm_scl_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

	q6-hvx-step {
		polling-delay-passive = <10>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 4>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			q6_hvx_trip0: q6-hvx-trip0 {
				temperature = <95000>;
				hysteresis = <0>;
				type = "passive";
			};

			q6_hvx_trip1: q6-hvx-trip1 {
				temperature = <100000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			cdsp-cdev0 {
				trip = <&q6_hvx_trip0>;
				cooling-device = <&msm_cdsp_rm
						THERMAL_NO_LIMIT 7>;
			};

			cdsp-cdev1 {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&msm_cdsp_rm 7 7>;
			};

			gpu-cdev {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-1)
							(THERMAL_MAX_LIMIT-1)>;
			};

			modem-pa-cdev {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&modem_pa 3 3>;
			};

			modem-tj-cdev {
				trip = <&q6_hvx_trip1>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};

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

	npu-step {
		polling-delay-passive = <10>;
		polling-delay = <0>;