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

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

ARM: dts: msm: Update default thermal zone configs for QM215



Add xo_therm based skin thermal zone rule for QM215. It includes
cpu mitigation, gpu mitigation, modem mitigation and charger
mitigation.

Update gpu TSENS trip threshold for QM215.

Change-Id: I2c62630109fc26466eb03b3b29661440db40262b
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 3ae2f21f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2013-2014, 2016-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2014, 2016-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -180,6 +180,7 @@
			compatible = "qcom,qpnp-linear-charger";
			#address-cells = <1>;
			#size-cells = <1>;
			#cooling-cells = <2>;

			qcom,vddmax-mv = <4200>;
			qcom,vddsafe-mv = <4200>;
+97 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -476,6 +476,102 @@
				};
			};
		};

		xo-therm-step {
			polling-delay-passive = <1000>;
			polling-delay = <5000>;
			thermal-sensors = <&pm8916_vadc 0x32>;
			thermal-governor = "step_wise";

			trips {
				qm215_batt_trip0: qm215-batt-trip0 {
					temperature = <41000>;
					hysteresis = <2000>;
					type = "passive";
				};
				qm215_modem_trip0: qm215-modem-trip0 {
					temperature = <44000>;
					hysteresis = <4000>;
					type = "passive";
				};
				qm215_batt_trip1: qm215-batt-trip1 {
					temperature = <45000>;
					hysteresis = <4000>;
					type = "passive";
				};
				qm215_modem_trip1: qm215-modem-trip1 {
					temperature = <46000>;
					hysteresis = <2000>;
					type = "passive";
				};
				qm215_cpu_trip: qm215-cpu-trip {
					temperature = <48000>;
					hysteresis = <0>;
					type = "passive";
				};
				qm215_gpu_trip: qm215-gpu-trip {
					temperature = <50000>;
					hysteresis = <0>;
					type = "passive";
				};
				qm215_modem_trip2: qm215-modem-trip2 {
					temperature = <60000>;
					hysteresis = <5000>;
					type = "passive";
				};
			};

			cooling-maps {
				skin_cpu0 {
					trip = <&qm215_cpu_trip>;
					/* throttle from fmax to 1094400KHz */
					cooling-device = <&CPU0 THERMAL_NO_LIMIT
							(THERMAL_MAX_LIMIT-2)>;
				};
				skin_cpu1 {
					trip = <&qm215_cpu_trip>;
					cooling-device = <&CPU1 THERMAL_NO_LIMIT
							(THERMAL_MAX_LIMIT-2)>;
				};
				skin_cpu2 {
					trip = <&qm215_cpu_trip>;
					cooling-device = <&CPU2 THERMAL_NO_LIMIT
							(THERMAL_MAX_LIMIT-2)>;
				};
				skin_cpu3 {
					trip = <&qm215_cpu_trip>;
					cooling-device = <&CPU3 THERMAL_NO_LIMIT
							(THERMAL_MAX_LIMIT-2)>;
				};
				skin_gpu {
					trip = <&qm215_gpu_trip>;
					/* throttle from fmax to 400000000Hz */
					cooling-device = <&msm_gpu
							THERMAL_NO_LIMIT
							(THERMAL_MAX_LIMIT-1)>;
				};
				modem_lvl1 {
					trip = <&qm215_modem_trip0>;
					cooling-device = <&modem_pa 1 1>;
				};
				modem_lvl2 {
					trip = <&qm215_modem_trip1>;
					cooling-device = <&modem_pa 2 2>;
				};
				modem_lvl3 {
					trip = <&qm215_modem_trip2>;
					cooling-device = <&modem_pa 3 3>;
				};
				battery_lvl1 {
					trip = <&qm215_batt_trip0>;
					cooling-device = <&pm8916_chg 1 1>;
				};
				battery_lvl2 {
					trip = <&qm215_batt_trip1>;
					cooling-device = <&pm8916_chg 2 2>;
				};
			};
		};
	};
};

+11 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -264,3 +264,13 @@
		};
	};
};

&thermal_zones {
	gpu0-step {
		trips {
			gpu-step-trip {
				temperature = <85000>;
			};
		};
	};
};