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

Commit 2f486614 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: qcom: Update thermal zone mitigations for LITO

Update thermal zone mitigation like CX mitigation, skin
thermal zone mitigation etc. based on latest recommendation
for LITO.

Change-Id: Ibecc49ad7a88fab449dad9647de8e43a456bc322
parent 9ffcfc40
Loading
Loading
Loading
Loading
+76 −0
Original line number Diff line number Diff line
@@ -234,6 +234,82 @@
	qcom,cl-feedback-on;
};

&thermal_zones {
	xo-therm-step {
		polling-delay-passive = <2000>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm8150_adc_tm ADC_XO_THERM_PU2>;
		wake-capable-sensor;
		trips {
			gold_plus_trip: gold-plus-trip {
				temperature = <46000>;
				hysteresis = <0>;
				type = "passive";
			};

			gold_trip: gold-trip {
				temperature = <48000>;
				hysteresis = <0>;
				type = "passive";
			};

			silver_trip: silver-trip {
				temperature = <52000>;
				hysteresis = <0>;
				type = "passive";
			};

			cx_emer_trip: cx-emer-trip {
				temperature = <52000>;
				hysteresis = <4000>;
				type = "passive";
			};
		};

		cooling-maps {
			skin_cpu7 {
				trip = <&gold_plus_trip>;
					/* throttle from fmax to 1516800KHz */
				cooling-device =
					<&CPU7 THERMAL_NO_LIMIT
						(THERMAL_MAX_LIMIT-3)>;
			};

			skin_cpu6 {
				trip = <&gold_trip>;
					/* throttle from fmax to 1478400KHz */
				cooling-device =
					<&CPU6 THERMAL_NO_LIMIT
						(THERMAL_MAX_LIMIT-3)>;
			};

			skin_cpu0 {
				trip = <&silver_trip>;
					/* throttle from fmax to 1459200KHz */
				cooling-device = <&CPU0 THERMAL_NO_LIMIT
						(THERMAL_MAX_LIMIT-5)>;
			};

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

			skin_modem {
				trip = <&cx_emer_trip>;
				cooling-device = <&modem_pa 3 3>;
			};

			skin_cdsp {
				trip = <&cx_emer_trip>;
				cooling-device = <&msm_cdsp_rm 5 5>;
			};
		};
	};
};

&wsa881x_0212 {
	compatible = "qcom,wsa881x";
	reg = <0x10 0x20170212>;
+19 −3
Original line number Diff line number Diff line
@@ -1309,7 +1309,7 @@
			};

			q6_hvx_trip1: q6-hvx-trip1 {
				temperature = <105000>;
				temperature = <100000>;
				hysteresis = <5000>;
				type = "passive";
			};
@@ -1319,12 +1319,28 @@
			cdsp-cdev0 {
				trip = <&q6_hvx_trip0>;
				cooling-device = <&msm_cdsp_rm
						THERMAL_NO_LIMIT 7>;
						THERMAL_NO_LIMIT 5>;
			};

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

			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>;
			};
		};
	};