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

Commit 01985c76 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: update thermal zone rule with battery mitigation for sdm670



Update thermal zone rules with battery charging mitigation based on
latest recommendation. Also update thresholds for cpu and modem
skin thermal zone rules.

Change-Id: Id60e4536cb27a044825214eada2ddf6b67543f9b
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent acbd53b4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -371,4 +371,7 @@
	xo-therm-mdm-step {
		status = "disabled";
	};
	xo-therm-batt-step {
		status = "disabled";
	};
};
+60 −0
Original line number Diff line number Diff line
@@ -382,3 +382,63 @@
&usb0 {
	extcon = <&pm660_pdphy>, <&pm660_pdphy>, <&eud>;
};

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

		trips {
			batt_trip1: batt-trip1 {
				temperature = <40000>;
				hysteresis = <2000>;
				type = "passive";
			};
			batt_trip2: batt-trip2 {
				temperature = <45000>;
				hysteresis = <2000>;
				type = "passive";
			};
			batt_trip3: batt-trip3 {
				temperature = <48000>;
				hysteresis = <3000>;
				type = "passive";
			};
			batt_trip4: batt-trip4 {
				temperature = <50000>;
				hysteresis = <2000>;
				type = "passive";
			};
			batt_trip5: batt-trip5 {
				temperature = <52000>;
				hysteresis = <2000>;
				type = "passive";
			};
		};

		cooling-maps {
			battery_lvl1 {
				trip = <&batt_trip1>;
				cooling-device = <&pm660_charger 1 1>;
			};
			battery_lvl2 {
				trip = <&batt_trip2>;
				cooling-device = <&pm660_charger 2 2>;
			};
			battery_lvl3 {
				trip = <&batt_trip3>;
				cooling-device = <&pm660_charger 3 3>;
			};
			battery_lvl4 {
				trip = <&batt_trip4>;
				cooling-device = <&pm660_charger 4 4>;
			};
			battery_lvl5 {
				trip = <&batt_trip5>;
				cooling-device = <&pm660_charger 5 5>;
			};
		};
	};
};
+2 −2
Original line number Diff line number Diff line
@@ -1539,7 +1539,7 @@
				type = "passive";
			};
			silver_trip1: silver-trip1 {
				temperature = <48000>;
				temperature = <50000>;
				hysteresis = <0>;
				type = "passive";
			};
@@ -1606,7 +1606,7 @@
			};
			modem_trip2: modem-trip2 {
				temperature = <48000>;
				hysteresis = <2000>;
				hysteresis = <3000>;
				type = "passive";
			};
			modem_trip3: modem-trip3 {