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

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

ARM: dts: msm: Update thermal zone config rules for sdm670



Update thermal zone config rules for sdm670 qrd based on
latest recommendation. Update includes skin temperature
control for cpu and remote modem subsystem cooling devices.
The qrd config will be the default config for sdm670.

Change-Id: I0de213804869bf7743d96f2b51e7a4500ebba67a
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent c72aba63
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -363,3 +363,12 @@
&mdss_mdp {
	#cooling-cells = <2>;
};

&thermal_zones {
	xo-therm-cpu-step {
		status = "disabled";
	};
	xo-therm-mdm-step {
		status = "disabled";
	};
};
+114 −0
Original line number Diff line number Diff line
@@ -1504,4 +1504,118 @@
			};
		};
	};

	xo-therm-cpu-step {
		polling-delay-passive = <2000>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4c>;
		thermal-governor = "step_wise";

		trips {
			gold_trip0: gold-trip0 {
				temperature = <45000>;
				hysteresis = <0>;
				type = "passive";
			};
			silver_trip1: silver-trip1 {
				temperature = <48000>;
				hysteresis = <0>;
				type = "passive";
			};
		};

		cooling-maps {
			skin_cpu6 {
				trip = <&gold_trip0>;
				cooling-device =
					/* throttle from fmax to 1747200KHz */
					<&CPU6 THERMAL_NO_LIMIT
						(THERMAL_MAX_LIMIT-8)>;
			};
			skin_cpu7 {
				trip = <&gold_trip0>;
				cooling-device =
					<&CPU7 THERMAL_NO_LIMIT
						(THERMAL_MAX_LIMIT-8)>;
			};
			skin_cpu0 {
				trip = <&silver_trip1>;
				/* throttle from fmax to 1516800KHz */
				cooling-device = <&CPU0 THERMAL_NO_LIMIT 2>;
			};
			skin_cpu1 {
				trip = <&silver_trip1>;
				cooling-device = <&CPU1 THERMAL_NO_LIMIT 2>;
			};
			skin_cpu2 {
				trip = <&silver_trip1>;
				cooling-device = <&CPU2 THERMAL_NO_LIMIT 2>;
			};
			skin_cpu3 {
				trip = <&silver_trip1>;
				cooling-device = <&CPU3 THERMAL_NO_LIMIT 2>;
			};
			skin_cpu4 {
				trip = <&silver_trip1>;
				cooling-device = <&CPU4 THERMAL_NO_LIMIT 2>;
			};
			skin_cpu5 {
				trip = <&silver_trip1>;
				cooling-device = <&CPU5 THERMAL_NO_LIMIT 2>;
			};
		};
	};

	xo-therm-mdm-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4c>;
		thermal-governor = "step_wise";

		trips {
			modem_trip0: modem-trip0 {
				temperature = <44000>;
				hysteresis = <4000>;
				type = "passive";
			};
			modem_trip1: modem-trip1 {
				temperature = <46000>;
				hysteresis = <3000>;
				type = "passive";
			};
			modem_trip2: modem-trip2 {
				temperature = <48000>;
				hysteresis = <2000>;
				type = "passive";
			};
			modem_trip3: modem-trip3 {
				temperature = <55000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			modem_lvl1 {
				trip = <&modem_trip1>;
				cooling-device = <&modem_pa 1 1>;
			};
			modem_lvl2 {
				trip = <&modem_trip2>;
				cooling-device = <&modem_pa 2 2>;
			};
			modem_lvl3 {
				trip = <&modem_trip3>;
				cooling-device = <&modem_pa 3 3>;
			};
			modem_proc_lvl1 {
				trip = <&modem_trip0>;
				cooling-device = <&modem_proc 1 1>;
			};
			modem_proc_lvl3 {
				trip = <&modem_trip3>;
				cooling-device = <&modem_proc 3 3>;
			};
		};
	};
};