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

Commit 68909502 authored by Gopala Krishna Nuthaki's avatar Gopala Krishna Nuthaki
Browse files

ARM: dts: qcom: Add quiet-therm thermal zone mitigation for HOLI

Add quiet-therm skin thermal zone mitigation rule with
gpu, cdsp and modem_skin as cooling devices based on
latest recommendations.

Change-Id: I25e18a1a693f3107be823ea6dd666084e4f84a2c
parent 5ce01ccf
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
@@ -320,6 +320,70 @@
				500000>;
};

&thermal_zones {
	quiet-therm-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>;

		trips {
			quiet_modem_trip0: quiet-modem-trip0 {
				temperature = <42000>;
				hysteresis = <4000>;
				type = "passive";
			};

			quiet_modem_trip1: quiet-modem-trip1 {
				temperature = <44000>;
				hysteresis = <4000>;
				type = "passive";
			};

			quiet_cx_trip: quiet-cx-trip {
				temperature = <55000>;
				hysteresis = <5000>;
				type = "passive";
			};

			quiet_modem_trip2: quiet-modem-trip2 {
				temperature = <56000>;
				hysteresis = <2000>;
				type = "passive";
			};
		};

		cooling-maps {
			gpu-cdev {
				trip = <&quiet_cx_trip>;
				/* throttle to 565000000Hz */
				cooling-device = <&msm_gpu (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
			};

			cdsp-cdev0 {
				trip = <&quiet_cx_trip>;
				cooling-device = <&cdsp_sw 4 4>;
			};

			modem-skin-cdev0 {
				trip = <&quiet_modem_trip0>;
				cooling-device = <&modem_skin 1 1>;
			};

			modem-skin-cdev1 {
				trip = <&quiet_modem_trip1>;
				cooling-device = <&modem_skin 2 2>;
			};

			modem-skin-cdev2 {
				trip = <&quiet_modem_trip2>;
				cooling-device = <&modem_skin 3 3>;
			};
		};
	};
};

&pm7250b_qg {
	status = "ok";
	#io-channel-cells = <1>;