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

Commit b1c625a0 authored by Anji Jonnala's avatar Anji Jonnala Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add msm-thermal mitigation device for MSM Samarium



Add kernel msm-thermal mitigation device for MSM Samarium SoC.
This enables the Kernel Thermal Monitor(KTM) during boot-up,
which provides basic thermal mitigation. The KTM is enabled
till the userspace thermal mitigation takes over.

Change-Id: I0ce041d3ddde8d75a3a46084ecbc908a40a3847b
Signed-off-by: default avatarAnji Jonnala <anjir@codeaurora.org>
parent 54938e72
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
@@ -405,6 +405,49 @@
		compatible = "qcom,tz-log";
		reg = <0xfe800734 0x1000>;
	};

	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,freq-control-mask = <0xf>;
		qcom,core-limit-temp = <80>;
		qcom,core-temp-hysteresis = <10>;
		qcom,core-control-mask = <0xe>;
		qcom,hotplug-temp = <110>;
		qcom,hotplug-temp-hysteresis = <20>;
		qcom,cpu-sensors = "tsens_tz_sensor5", "tsens_tz_sensor6",
			      "tsens_tz_sensor7", "tsens_tz_sensor8";
		qcom,vdd-restriction-temp = <5>;
		qcom,vdd-restriction-temp-hysteresis = <10>;
		qcom,pmic-sw-mode-temp = <85>;
		qcom,pmic-sw-mode-temp-hysteresis = <75>;
		qcom,pmic-sw-mode-regs = "vdd-dig";

		vdd-dig-supply = <&pma8084_s2_floor_corner>;
		vdd-gfx-supply = <&pma8084_s7_floor_corner>;

		qcom,vdd-dig-rstr{
			qcom,vdd-rstr-reg = "vdd-dig";
			qcom,levels = <5 7 7>; /* Nominal, Super Turbo, Super Turbo */
			qcom,min-level = <1>; /* No Request */
		};

		qcom,vdd-gfx-rstr{
			qcom,vdd-rstr-reg = "vdd-gfx";
			qcom,levels = <5 7 7>; /* Nominal, Super Turbo, Super Turbo */
			qcom,min-level = <1>; /* No Request */
		};

		qcom,vdd-apps-rstr{
			qcom,vdd-rstr-reg = "vdd-apps";
			qcom,levels = <1958400 2150400 2150400>;
			qcom,freq-req;
		};
	};
};

&gdsc_venus {