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

Commit ec090c69 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: Add thermal properties to MSM8937 devicetree



Add thermal properties to enable kernel thermal monitoring
and mitigations like hotplug, frequency mitigation,
thermal reset, vdd restriction etc for MSM8937.
Add mitigation profiles for each physical CPU which has information
like sensor and various mitigation types including boot frequency
mitigation, emergency hotplug mitigation and emergency frequency
mitigation for MSM8937.

Change-Id: I699a565fa9dd478cd9c366f055fc48bab3723d96
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 9bf28f2e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@
			reg = <0x100>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc0>;
			qcom,limits-info = <&mitigation_profile0>;
			next-level-cache = <&L2_1>;
			L2_1: l2-cache {
			      compatible = "arm,arch-cache";
@@ -67,6 +68,7 @@
			reg = <0x101>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc1>;
			qcom,limits-info = <&mitigation_profile1>;
			next-level-cache = <&L2_1>;
		};

@@ -76,6 +78,7 @@
			reg = <0x102>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc2>;
			qcom,limits-info = <&mitigation_profile2>;
			next-level-cache = <&L2_1>;
		};

@@ -85,6 +88,7 @@
			reg = <0x103>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc3>;
			qcom,limits-info = <&mitigation_profile3>;
			next-level-cache = <&L2_1>;
		};

@@ -94,6 +98,7 @@
			reg = <0x0>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc4>;
			qcom,limits-info = <&mitigation_profile4>;
			next-level-cache = <&L2_0>;
			L2_0: l2-cache {
			      compatible = "arm,arch-cache";
@@ -108,6 +113,7 @@
			reg = <0x1>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc5>;
			qcom,limits-info = <&mitigation_profile4>;
			next-level-cache = <&L2_0>;
		};

@@ -117,6 +123,7 @@
			reg = <0x2>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc6>;
			qcom,limits-info = <&mitigation_profile4>;
			next-level-cache = <&L2_0>;
		};

@@ -126,6 +133,7 @@
			reg = <0x3>;
			enable-method = "qcom,8937-arm-cortex-acc";
			qcom,acc = <&acc7>;
			qcom,limits-info = <&mitigation_profile4>;
			next-level-cache = <&L2_0>;
		};
	};
+78 −0
Original line number Diff line number Diff line
@@ -318,6 +318,84 @@
		};
	};

	mitigation_profile0: qcom,limit_info-0 {
		qcom,temperature-sensor = <&sensor_information5>;
		qcom,boot-frequency-mitigate;
		qcom,hotplug-mitigation-enable;
		qcom,emergency-frequency-mitigate;
	};

	mitigation_profile1: qcom,limit_info-1 {
		qcom,temperature-sensor = <&sensor_information6>;
		qcom,boot-frequency-mitigate;
		qcom,hotplug-mitigation-enable;
		qcom,emergency-frequency-mitigate;
	};

	mitigation_profile2: qcom,limit_info-2 {
		qcom,temperature-sensor = <&sensor_information7>;
		qcom,boot-frequency-mitigate;
		qcom,hotplug-mitigation-enable;
		qcom,emergency-frequency-mitigate;
	};

	mitigation_profile3: qcom,limit_info-3 {
		qcom,temperature-sensor = <&sensor_information8>;
		qcom,boot-frequency-mitigate;
		qcom,hotplug-mitigation-enable;
		qcom,emergency-frequency-mitigate;
	};

	mitigation_profile4: qcom,limit_info-4 {
		qcom,temperature-sensor = <&sensor_information9>;
		qcom,boot-frequency-mitigate;
		qcom,hotplug-mitigation-enable;
		qcom,emergency-frequency-mitigate;
	};

	qcom,msm-thermal {
		compatible = "qcom,msm-thermal";
		qcom,sensor-id = <5>;
		qcom,poll-ms = <250>;
		qcom,limit-temp = <60>;
		qcom,temp-hysteresis = <10>;
		qcom,freq-step = <2>;
		qcom,core-limit-temp = <80>;
		qcom,core-temp-hysteresis = <10>;
		qcom,hotplug-temp = <105>;
		qcom,hotplug-temp-hysteresis = <15>;
		qcom,freq-mitigation-temp = <105>;
		qcom,freq-mitigation-temp-hysteresis = <15>;
		qcom,freq-mitigation-value = <400000>;
		qcom,therm-reset-temp = <115>;
		qcom,online-hotplug-core;
		qcom,synchronous-cluster-id = <0 1>;
		qcom,synchronous-cluster-map = <1 4 &CPU0 &CPU1 &CPU2 &CPU3>,
						<0 4 &CPU4 &CPU5 &CPU6 &CPU7>;
		qcom,disable-cx-phase-ctrl;
		qcom,disable-gfx-phase-ctrl;
		qcom,disable-vdd-mx;
		qcom,disable-psm;
		qcom,disable-ocr;
		qcom,vdd-restriction-temp = <5>;
		qcom,vdd-restriction-temp-hysteresis = <10>;
		vdd-dig-supply = <&pm8937_s2_floor_level>;

		qcom,vdd-dig-rstr {
			qcom,vdd-rstr-reg = "vdd-dig";
			qcom,levels = <RPM_SMD_REGULATOR_LEVEL_NOM
					RPM_SMD_REGULATOR_LEVEL_TURBO
					RPM_SMD_REGULATOR_LEVEL_TURBO>;
			qcom,min-level = <RPM_SMD_REGULATOR_LEVEL_RETENTION>;
		};

		msm_thermal_freq: qcom,vdd-apps-rstr {
			qcom,vdd-rstr-reg = "vdd-apps";
			qcom,levels = <900000>;
			qcom,freq-req;
		};
	};

	blsp1_uart2: serial@78b0000 {
		compatible = "qcom,msm-lsuart-v14";
		reg = <0x78b0000 0x200>;