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

Commit 8fd1f5ec authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

ARM: dts: msm: Add emergency skin rule for lahaina

Add emergency skin rule based on xo-therm to trigger frequency
mitigation and core isolation at 78C and hotplug at 80C.

Change-Id: I9fef2b9bdf827f9b660d7c1e34d55607cbd4b97b
parent e913d2e2
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -607,6 +607,27 @@
			};
		};
	};

	xo-therm-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>;

		trips {
			xo_config0: active-config0 {
				temperature = <78000>;
				hysteresis = <8000>;
				type = "passive";
			};

			xo_config1: active-config1 {
				temperature = <80000>;
				hysteresis = <10000>;
				type = "passive";
			};
		};
	};
};

&soc {
+56 −0
Original line number Diff line number Diff line
@@ -296,4 +296,60 @@
			};
		};
	};

	xo-therm-step {
		cooling-maps {
			cpu4_freq_cdev {
				trip = <&xo_config0>;
				cooling-device = <&CPU4 THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			cpu7_freq_cdev {
				trip = <&xo_config0>;
				cooling-device = <&CPU7 THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			cpu4_iso_cdev {
				trip = <&xo_config0>;
				cooling-device = <&cpu4_isolate 1 1>;
			};

			cpu5_iso_cdev {
				trip = <&xo_config0>;
				cooling-device = <&cpu5_isolate 1 1>;
			};

			cpu6_iso_cdev {
				trip = <&xo_config0>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			cpu7_iso_cdev {
				trip = <&xo_config0>;
				cooling-device = <&cpu7_isolate 1 1>;
			};

			cpu4_hot_cdev {
				trip = <&xo_config1>;
				cooling-device = <&cpu4_hotplug 1 1>;
			};

			cpu5_hot_cdev {
				trip = <&xo_config1>;
				cooling-device = <&cpu5_hotplug 1 1>;
			};

			cpu6_hot_cdev {
				trip = <&xo_config1>;
				cooling-device = <&cpu6_hotplug 1 1>;
			};

			cpu7_hot_cdev {
				trip = <&xo_config1>;
				cooling-device = <&cpu7_hotplug 1 1>;
			};
		};
	};
};