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

Commit c23868f2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: qcom: Add modem TSENS thermal zone mitigations for LITO"

parents 4c64f90e 626a8dc3
Loading
Loading
Loading
Loading
+10 −37
Original line number Diff line number Diff line
@@ -257,30 +257,12 @@
		thermal-sensors = <&pm8150_adc_tm ADC_XO_THERM_PU2>;
		wake-capable-sensor;
		trips {
			modem0_trip: modem0-trip {
				temperature = <48000>;
				hysteresis = <4000>;
				type = "passive";
			};

			modem1_trip: modem1-trip {
				temperature = <50000>;
				hysteresis = <2000>;
				type = "passive";
			};

			gold_plus_trip: gold-plus-trip {
				temperature = <50000>;
				hysteresis = <0>;
				type = "passive";
			};

			modem2_trip: modem2-trip {
				temperature = <52000>;
				hysteresis = <2000>;
				type = "passive";
			};

			gold_trip: gold-trip {
				temperature = <52000>;
				hysteresis = <0>;
@@ -299,11 +281,17 @@
				type = "passive";
			};

			modem_gpu_skin_trip: modem-gpu-skin-trip {
			gpu_skin_trip: gpu-skin-trip {
				temperature = <56000>;
				hysteresis = <4000>;
				type = "passive";
			};

			modem4_skin_trip: modem4-skin-trip {
				temperature = <60000>;
				hysteresis = <4000>;
				type = "passive";
			};
		};

		cooling-maps {
@@ -331,33 +319,18 @@
			};

			skin_gpu {
				trip = <&modem_gpu_skin_trip>;
				trip = <&gpu_skin_trip>;
				cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-1)
						(THERMAL_MAX_LIMIT-1)>;
			};

			skin_modem_proc1 {
				trip = <&modem0_trip>;
				cooling-device = <&modem_tj 1 1>;
			};

			skin_modem_pa1 {
				trip = <&modem1_trip>;
				cooling-device = <&modem_pa 1 1>;
			};

			skin_modem_pa2 {
				trip = <&modem2_trip>;
				cooling-device = <&modem_pa 2 2>;
			};

			skin_modem_pa3 {
				trip = <&modem_gpu_skin_trip>;
				trip = <&modem4_skin_trip>;
				cooling-device = <&modem_pa 3 3>;
			};

			skin_modem_proce2 {
				trip = <&modem_gpu_skin_trip>;
				trip = <&modem4_skin_trip>;
				cooling-device = <&modem_tj 3 3>;
			};

+176 −0
Original line number Diff line number Diff line
@@ -1224,6 +1224,182 @@
		};
	};

	mdm-vec-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 8>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			modem_vec_trip0: modem-vec-trip0 {
				temperature = <95000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_vec_trip1: modem-vec-trip1 {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_vec_trip2: modem-vec-trip2 {
				temperature = <115000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};

		cooling-maps {
			modem_tj1_cdev {
				trip = <&modem_vec_trip0>;
				cooling-device = <&modem_tj 1 1>;
			};

			modem_tj2_cdev {
				trip = <&modem_vec_trip1>;
				cooling-device = <&modem_tj 2 2>;
			};

			modem_tj3_cdev {
				trip = <&modem_vec_trip2>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};

	mdm-scl-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 9>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			modem_scl_trip0: modem-scl-trip0 {
				temperature = <95000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_scl_trip1: modem-scl-trip1 {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_scl_trip2: modem-scl-trip2 {
				temperature = <115000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};

		cooling-maps {
			modem_tj1_cdev {
				trip = <&modem_scl_trip0>;
				cooling-device = <&modem_tj 1 1>;
			};

			modem_tj2_cdev {
				trip = <&modem_scl_trip1>;
				cooling-device = <&modem_tj 2 2>;
			};

			modem_tj3_cdev {
				trip = <&modem_scl_trip2>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};

	mdm-core-0-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 10>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			modem_core_0_trip0: modem-core-0-trip0 {
				temperature = <95000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_core_0_trip1: modem-core-0-trip1 {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_core_0_trip2: modem-core-0-trip2 {
				temperature = <115000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};

		cooling-maps {
			modem_tj1_cdev {
				trip = <&modem_core_0_trip0>;
				cooling-device = <&modem_tj 1 1>;
			};

			modem_tj2_cdev {
				trip = <&modem_core_0_trip1>;
				cooling-device = <&modem_tj 2 2>;
			};

			modem_tj3_cdev {
				trip = <&modem_core_0_trip2>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};

	mdm-core-1-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 11>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			modem_core_1_trip0: modem-core-1-trip0 {
				temperature = <95000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_core_1_trip1: modem-core-1-trip1 {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};

			modem_core_1_trip2: modem-core-1-trip2 {
				temperature = <115000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};

		cooling-maps {
			modem_tj1_cdev {
				trip = <&modem_core_1_trip0>;
				cooling-device = <&modem_tj 1 1>;
			};

			modem_tj2_cdev {
				trip = <&modem_core_1_trip1>;
				cooling-device = <&modem_tj 2 2>;
			};

			modem_tj3_cdev {
				trip = <&modem_core_1_trip2>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};

	modem-lte-sub6-pa1 {
		polling-delay-passive = <0>;
		polling-delay = <0>;