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

Commit 447386f7 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Enable RPM SMD cooling device for QCS405"

parents 04019b5c bf86f061
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
Qualcomm Technologies, Inc. RPM SMD cooling device

The RPM shared memory(SMD) cooling device, will be used to set
different thermal band level to RPM hardware. When threshold violation
occurs, RPM SMD cooling device sends pre-configured thermal band level
to RPM hardware via SMD.

Required Parameters:
- compatible:
	Usage: required
	Value type: <string>
	Definition: should be "qcom,rpm-smd-cooling-device"

- #cooling-cells:
	Usage: required
	Value type: <integer>
	Definition: Must be 2. This is required by of-thermal and refer the doc
		<devicetree/bindings/thermal/thermal.txt> for more details.

Example:

&rpm_bus {
	rpm_smd_cdev: rpm-smd-cdev {
		compatible = "qcom,rpm-smd-cooling-device";
		#cooling-cells = <2>;
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -286,6 +286,7 @@ CONFIG_THERMAL_TSENS=y
CONFIG_QTI_VIRTUAL_SENSOR=y
CONFIG_QTI_QMI_COOLING_DEVICE=y
CONFIG_REGULATOR_COOLING_DEVICE=y
CONFIG_QTI_RPM_SMD_COOLING_DEVICE=y
CONFIG_MFD_SPMI_PMIC=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
+1 −0
Original line number Diff line number Diff line
@@ -296,6 +296,7 @@ CONFIG_THERMAL_TSENS=y
CONFIG_QTI_VIRTUAL_SENSOR=y
CONFIG_QTI_QMI_COOLING_DEVICE=y
CONFIG_REGULATOR_COOLING_DEVICE=y
CONFIG_QTI_RPM_SMD_COOLING_DEVICE=y
CONFIG_MFD_SPMI_PMIC=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
+28 −0
Original line number Diff line number Diff line
@@ -42,6 +42,13 @@
	};
};

&rpm_bus {
	rpm_smd_cdev: rpm-smd-cdev {
		compatible = "qcom,rpm-smd-cooling-device";
		#cooling-cells = <2>;
	};
};

&thermal_zones {
	aoss-usr {
		polling-delay-passive = <0>;
@@ -332,6 +339,27 @@
		};
	};

	aoss-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&tsens0 0>;
		tracks-low;
		trips {
			aoss_lowc: aoss-lowc {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
		cooling-maps {
			rpm_smd_cdev {
				trip = <&aoss_lowc>;
				cooling-device = <&rpm_smd_cdev 2 2>;
			};
		};
	};

	aoss-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
+1 −0
Original line number Diff line number Diff line
@@ -286,6 +286,7 @@ CONFIG_THERMAL_TSENS=y
CONFIG_QTI_VIRTUAL_SENSOR=y
CONFIG_QTI_QMI_COOLING_DEVICE=y
CONFIG_REGULATOR_COOLING_DEVICE=y
CONFIG_QTI_RPM_SMD_COOLING_DEVICE=y
CONFIG_MFD_SPMI_PMIC=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
Loading