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

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

ARM: dts: msm: Update TSENS mappings for thermal zones for SDM632



Update TSENS mappings for different thermal zones for SDM632 based on
latest SDM632 TSENS floor plan recommendation.

Change-Id: I2a35ed68323a0f407038a74234fcb1257fd1dcda
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 097184be
Loading
Loading
Loading
Loading
+252 −20
Original line number Diff line number Diff line
@@ -49,12 +49,20 @@
	/delete-node/ gpu1-usr;
	/delete-node/ gpu1-step;
	/delete-node/ deca-cpu-max-step;
	/delete-node/ apc1-cpu0-step;
	/delete-node/ apc1-cpu1-step;
	/delete-node/ apc1-cpu2-step;
	/delete-node/ apc1-cpu3-step;
	/delete-node/ apc0-cpu0-step;
	/delete-node/ apc0-cpu1-step;
	/delete-node/ apc0-cpu2-step;
	/delete-node/ apc0-cpu3-step;
	/delete-node/ camera-lowf;
	/delete-node/ apc1-l2-lowf;
	/delete-node/ apc1-cpu0-lowf;
	/delete-node/ apc1-cpu1-lowf;
	/delete-node/ apc1-cpu2-lowf;
	/delete-node/ apc1-cpu3-lowf;
	/delete-node/ apc0-cpu0-lowf;
	/delete-node/ apc0-cpu1-lowf;
	/delete-node/ apc0-cpu2-lowf;
@@ -299,14 +307,102 @@
		};
	};

	cpuss3-step {
	apc1-cpu0-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 5>;
		thermal-governor = "step_wise";
		trips {
			apc1_cpu0_trip: apc1-cpu0-trip {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu4_cdev {
				trip = <&apc1_cpu0_trip>;
				cooling-device =
					<&CPU4 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
		};
	};

	apc1-cpu1-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 6>;
		thermal-governor = "step_wise";
		trips {
			apc1_cpu1_trip: apc1-cpu1-trip {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu5_cdev {
				trip = <&apc1_cpu1_trip>;
				cooling-device =
					<&CPU5 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
		};
	};

	apc1-cpu2-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 7>;
		thermal-governor = "step_wise";
		trips {
			apc1_cpu2_trip: apc1-cpu2-trip {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu6_cdev {
				trip = <&apc1_cpu2_trip>;
				cooling-device =
					<&CPU6 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
		};
	};

	apc1-cpu3-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 8>;
		thermal-governor = "step_wise";
		trips {
			apc1_cpu3_trip: apc1-cpu3-trip {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu7_cdev {
				trip = <&apc1_cpu3_trip>;
				cooling-device =
					<&CPU7 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
		};
	};

	cpuss0-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 13>;
		thermal-governor = "step_wise";

		trips {
			cpuss3_trip: cpuss3-trip {
			cpuss0_trip: cpuss0-trip {
				temperature = <105000>;
				hysteresis = <15000>;
				type = "passive";
@@ -314,25 +410,25 @@
		};
		cooling-maps {
			cpu0_cdev {
				trip = <&cpuss3_trip>;
				trip = <&cpuss0_trip>;
				cooling-device =
					<&CPU0 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			cpu1_cdev {
				trip = <&cpuss3_trip>;
				trip = <&cpuss0_trip>;
				cooling-device =
					<&CPU1 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			cpu2_cdev {
				trip = <&cpuss3_trip>;
				trip = <&cpuss0_trip>;
				cooling-device =
					<&CPU2 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			cpu3_cdev {
				trip = <&cpuss3_trip>;
				trip = <&cpuss0_trip>;
				cooling-device =
					<&CPU3 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
@@ -375,15 +471,15 @@
		};
	};

	cpuss0-lowf {
	apc1-mhm-low {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 8>;
		thermal-sensors = <&tsens0 4>;
		tracks-low;

		trips {
			sdm632_cpuss0_trip: cpuss0-trip {
			sdm632_cpuss1_trip: cpuss1-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
@@ -391,26 +487,162 @@
		};
		cooling-maps {
			cpu0_vdd_cdev {
				trip = <&sdm632_cpuss0_trip>;
				trip = <&sdm632_cpuss1_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
						(THERMAL_MAX_LIMIT - 4)>;
			};
			gpu_vdd_cdev {
				trip = <&sdm632_cpuss0_trip>;
				trip = <&sdm632_cpuss1_trip>;
				cooling-device = <&msm_gpu 2 2>;
			};
			cx_vdd_cdev {
				trip = <&sdm632_cpuss0_trip>;
				trip = <&sdm632_cpuss1_trip>;
				cooling-device = <&cx_cdev 0 0>;
			};
			modem_vdd_cdev {
				trip = <&sdm632_cpuss0_trip>;
				trip = <&sdm632_cpuss1_trip>;
				cooling-device = <&modem_vdd 0 0>;
			};
		};
	};

	apc1-cpu0-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 5>;
		tracks-low;
		trips {
			cpu4_trip: apc1-cpu0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu0_vdd_cdev {
				trip = <&cpu4_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
						(THERMAL_MAX_LIMIT - 4)>;
			};
			gpu_vdd_cdev {
				trip = <&cpu4_trip>;
				cooling-device = <&msm_gpu 2 2>;
			};
			cx_vdd_cdev {
				trip = <&cpu4_trip>;
				cooling-device = <&cx_cdev 0 0>;
			};
			modem_vdd_cdev {
				trip = <&cpu4_trip>;
				cooling-device = <&modem_vdd 0 0>;
			};
		};
	};

	apc1-cpu1-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 6>;
		tracks-low;
		trips {
			cpu5_trip: apc1-cpu0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu0_vdd_cdev {
				trip = <&cpu5_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
						(THERMAL_MAX_LIMIT - 4)>;
			};
			gpu_vdd_cdev {
				trip = <&cpu5_trip>;
				cooling-device = <&msm_gpu 2 2>;
			};
			cx_vdd_cdev {
				trip = <&cpu5_trip>;
				cooling-device = <&cx_cdev 0 0>;
			};
			modem_vdd_cdev {
				trip = <&cpu5_trip>;
				cooling-device = <&modem_vdd 0 0>;
			};
		};
	};

	apc1-cpu2-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 7>;
		tracks-low;
		trips {
			cpu6_trip: apc1-cpu2-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu0_vdd_cdev {
				trip = <&cpu6_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
						(THERMAL_MAX_LIMIT - 4)>;
			};
			gpu_vdd_cdev {
				trip = <&cpu6_trip>;
				cooling-device = <&msm_gpu 2 2>;
			};
			cx_vdd_cdev {
				trip = <&cpu6_trip>;
				cooling-device = <&cx_cdev 0 0>;
			};
			modem_vdd_cdev {
				trip = <&cpu6_trip>;
				cooling-device = <&modem_vdd 0 0>;
			};
		};
	};

	apc1-cpu3-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 8>;
		tracks-low;
		trips {
			cpu7_trip: apc1-cpu3-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu0_vdd_cdev {
				trip = <&cpu7_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
						(THERMAL_MAX_LIMIT - 4)>;
			};
			gpu_vdd_cdev {
				trip = <&cpu7_trip>;
				cooling-device = <&msm_gpu 2 2>;
			};
			cx_vdd_cdev {
				trip = <&cpu7_trip>;
				cooling-device = <&cx_cdev 0 0>;
			};
			modem_vdd_cdev {
				trip = <&cpu7_trip>;
				cooling-device = <&modem_vdd 0 0>;
			};
		};
	};

	cpuss1-lowf {
	apc1-l2-low {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
@@ -418,7 +650,7 @@
		tracks-low;

		trips {
			sdm632_cpuss1_trip: cpuss1-trip {
			sdm632_cpuss0_trip: cpuss0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
@@ -426,26 +658,26 @@
		};
		cooling-maps {
			cpu0_vdd_cdev {
				trip = <&sdm632_cpuss1_trip>;
				trip = <&sdm632_cpuss0_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4)
						(THERMAL_MAX_LIMIT - 4)>;
			};
			gpu_vdd_cdev {
				trip = <&sdm632_cpuss1_trip>;
				trip = <&sdm632_cpuss0_trip>;
				cooling-device = <&msm_gpu 2 2>;
			};
			cx_vdd_cdev {
				trip = <&sdm632_cpuss1_trip>;
				trip = <&sdm632_cpuss0_trip>;
				cooling-device = <&cx_cdev 0 0>;
			};
			modem_vdd_cdev {
				trip = <&sdm632_cpuss1_trip>;
				trip = <&sdm632_cpuss0_trip>;
				cooling-device = <&modem_vdd 0 0>;
			};
		};
	};

	cpuss3-lowf {
	cpuss0-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
+3 −3
Original line number Diff line number Diff line
@@ -86,9 +86,9 @@ static const struct virtual_sensor_data qti_virtual_sensors[] = {
				"apc1-cpu1-usr",
				"apc1-cpu2-usr",
				"apc1-cpu3-usr",
				"cpuss0-usr",
				"cpuss1-usr",
				"cpuss3-usr"},
				"apc1-mhm-usr",
				"apc1-l2-usr",
				"cpuss0-usr"},
		.logic = VIRT_MAXIMUM,
	},
};