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

Commit 43325d1c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents d1435f08 01985c76
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
@@ -385,3 +385,63 @@
	vbus_dwc3-supply = <&smb2_vbus>;
	qcom,no-vbus-vote-with-type-C;
};

&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 {