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

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

ARM: dts: msm: Update stepwise and low limits thermal zones for TRINKET



Update stepwise and low limits floor thermal_zone sensors for TRINKET
based on latest TSENS floor plan recommendation.

Update virtual sensor config as well based on new TSENS floor plan
for TRINKET.

Change-Id: Ie79dd2d6fa37ddd5aba64123b61b0542f61cc0a1
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 0abc9ea7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@
	/delete-node/ camera-lowf;
	/delete-node/ video-lowf;
	/delete-node/ cpu-1-0-lowf;
	/delete-node/ cpu-0-0-lowf;
	/delete-node/ cpuss-2-lowf;
	/delete-node/ mdm-core-lowf;
	/delete-node/ display-lowf;
	/delete-node/ gpu-lowf;
+51 −43
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@
		};
	};

	octa-cpu-max-step {
	hepta-cpu-max-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
@@ -588,87 +588,95 @@
		};
	};

	cpu-0-0-step {
	cpuss-0-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 9>;
		thermal-sensors = <&tsens0 6>;
		trips {
			cpu0_config: cpu0-config {
			cpu5_7_config: cpu-5-7-config {
				temperature = <110000>;
				hysteresis = <10000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu0_cdev {
				trip = <&cpu0_config>;
			cpu5_cdev {
				trip = <&cpu5_7_config>;
				cooling-device =
					<&CPU0 THERMAL_MAX_LIMIT
					<&CPU5 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			cpu7_cdev {
				trip = <&cpu5_7_config>;
				cooling-device =
					<&CPU7 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
		};
	};

	cpu-0-1-step {
	cpuss-1-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 10>;
		thermal-sensors = <&tsens0 7>;
		trips {
			cpu1_config: cpu1-config {
			cpu4_6_config: cpu-4-6-config {
				temperature = <110000>;
				hysteresis = <10000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu1_cdev {
				trip = <&cpu1_config>;
			cpu4_cdev {
				trip = <&cpu4_6_config>;
				cooling-device =
					<&CPU1 THERMAL_MAX_LIMIT
					<&CPU4 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			cpu6_cdev {
				trip = <&cpu4_6_config>;
				cooling-device =
					<&CPU6 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
		};
	};

	cpu-0-2-step {
	cpuss-2-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 11>;
		thermal-sensors = <&tsens0 8>;
		trips {
			cpu2_config: cpu2-config {
			silv_cpus_config: silv-cpus-config {
				temperature = <110000>;
				hysteresis = <10000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu2_cdev {
				trip = <&cpu2_config>;
			cpu0_cdev {
				trip = <&silv_cpus_config>;
				cooling-device =
					<&CPU2 THERMAL_MAX_LIMIT
					<&CPU0 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			cpu1_cdev {
				trip = <&silv_cpus_config>;
				cooling-device =
					<&CPU1 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			cpu2_cdev {
				trip = <&silv_cpus_config>;
				cooling-device =
					<&CPU2 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};

	cpu-0-3-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 12>;
		trips {
			cpu3_config: cpu3-config {
				temperature = <110000>;
				hysteresis = <10000>;
				type = "passive";
			};
		};
		cooling-maps {
			cpu3_cdev {
				trip = <&cpu3_config>;
				trip = <&silv_cpus_config>;
				cooling-device =
					<&CPU3 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
@@ -680,7 +688,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 6>;
		thermal-sensors = <&tsens0 9>;
		trips {
			cpu4_config: cpu4-config {
				temperature = <110000>;
@@ -702,7 +710,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 7>;
		thermal-sensors = <&tsens0 10>;
		trips {
			cpu5_config: cpu5-config {
				temperature = <110000>;
@@ -724,7 +732,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 8>;
		thermal-sensors = <&tsens0 11>;
		trips {
			cpu6_config: cpu6-config {
				temperature = <110000>;
@@ -746,7 +754,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&tsens0 4>;
		thermal-sensors = <&tsens0 12>;
		trips {
			cpu7_config: cpu7-config {
				temperature = <110000>;
@@ -1076,7 +1084,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 5>;
		thermal-sensors = <&tsens0 4>;
		tracks-low;
		trips {
			video_trip: video-trip {
@@ -1153,7 +1161,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 6>;
		thermal-sensors = <&tsens0 9>;
		tracks-low;
		trips {
			cpu4_lowf_trip: cpu4-lowf-trip {
@@ -1226,11 +1234,11 @@
		};
	};

	cpu-0-0-lowf {
	cpuss-2-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 9>;
		thermal-sensors = <&tsens0 8>;
		tracks-low;
		trips {
			cpu0_lowf_trip: cpu0-lowf-trip {
@@ -1461,7 +1469,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 5>;
		thermal-sensors = <&tsens0 15>;
		tracks-low;
		trips {
			gpu_trip: gpu-trip {
+6 −7
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -161,16 +161,15 @@ static const struct virtual_sensor_data qti_virtual_sensors[] = {
		.logic = VIRT_MAXIMUM,
	},
	{
		.virt_zone_name = "octa-cpu-max-step",
		.num_sensors = 8,
		.virt_zone_name = "hepta-cpu-max-step",
		.num_sensors = 7,
		.sensor_names = {"cpu-1-0-usr",
				"cpu-1-1-usr",
				"cpu-1-2-usr",
				"cpu-1-3-usr",
				"cpu-0-0-usr",
				"cpu-0-1-usr",
				"cpu-0-2-usr",
				"cpu-0-3-usr"},
				"cpuss-0-usr",
				"cpuss-1-usr",
				"cpuss-2-usr"},
		.logic = VIRT_MAXIMUM,
	},
};