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

Commit 5dd19638 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: enable LMH CPU voltage cooling devices for LITO

Enable LMH CPU voltage cooling devices and thermal zone mitigation
configurations for LITO.

Change-Id: Id920606bffd42ad9fbe40f6951f7281c5777e0e0
parent a29c8664
Loading
Loading
Loading
Loading
+137 −74
Original line number Diff line number Diff line
@@ -118,6 +118,19 @@
			};
		};
	};

	lmh_cpu_vdd0: qcom,lmh-cpu-vdd@18358800 {
		compatible = "qcom,lmh-cpu-vdd";
		reg =  <0x18358800 0x1000>;
		#cooling-cells = <2>;
	};

	lmh_cpu_vdd1: qcom,lmh-cpu-vdd@18350800 {
		compatible = "qcom,lmh-cpu-vdd";
		reg =  <0x18350800 0x1000>;
		#cooling-cells = <2>;
	};

};

&thermal_zones {
@@ -950,6 +963,34 @@
		};
	};

	aoss0-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 0>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			aoss0_cap: aoss0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&aoss0_cap>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			};

			lmh_cpu6_cdev {
				trip = <&aoss0_cap>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			};
		};
	};

	aoss0-lowf {
		polling-delay-passive = <0>;
		polling-delay = <0>;
@@ -966,27 +1007,37 @@
		};

		cooling-maps {
			cpu0_cdev {
			lpi_cx_vdd_cdev {
				trip = <&aoss0_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-4)
							(THERMAL_MAX_LIMIT-4)>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

			cpu6_cdev {
				trip = <&aoss0_trip>;
				cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
	cpu-1-3-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 12>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			cpu_1_3_cap: cpu-1-3-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

			cpu7_cdev {
				trip = <&aoss0_trip>;
				cooling-device = <&CPU7 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&cpu_1_3_cap>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			};

			lpi_cx_vdd_cdev {
				trip = <&aoss0_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			lmh_cpu6_cdev {
				trip = <&cpu_1_3_cap>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			};
		};
	};
@@ -1007,27 +1058,37 @@
		};

		cooling-maps {
			cpu0_cdev {
			lpi_cx_vdd_cdev {
				trip = <&cpu_1_3_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-4)
							(THERMAL_MAX_LIMIT-4)>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

			cpu6_cdev {
				trip = <&cpu_1_3_trip>;
				cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
	gpuss-0-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 13>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			gpuss0_cap: gpuss0-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

			cpu7_cdev {
				trip = <&cpu_1_3_trip>;
				cooling-device = <&CPU7 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&gpuss0_cap>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			};

			lpi_cx_vdd_cdev {
				trip = <&cpu_1_3_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			lmh_cpu6_cdev {
				trip = <&gpuss0_cap>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			};
		};
	};
@@ -1048,27 +1109,37 @@
		};

		cooling-maps {
			cpu0_cdev {
			lpi_cx_vdd_cdev {
				trip = <&gpuss0_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-4)
							(THERMAL_MAX_LIMIT-4)>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

			cpu6_cdev {
				trip = <&gpuss0_trip>;
				cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
	camera-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 7>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			camera_cap: camera-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

			cpu7_cdev {
				trip = <&gpuss0_trip>;
				cooling-device = <&CPU7 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&camera_cap>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			};

			lpi_cx_vdd_cdev {
				trip = <&gpuss0_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			lmh_cpu6_cdev {
				trip = <&camera_cap>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			};
		};
	};
@@ -1089,27 +1160,37 @@
		};

		cooling-maps {
			cpu0_cdev {
			lpi_cx_vdd_cdev {
				trip = <&camera_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-4)
							(THERMAL_MAX_LIMIT-4)>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			};
		};
	};

			cpu6_cdev {
				trip = <&camera_trip>;
				cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
	mdm-scl-lowc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 9>;
		thermal-governor = "low_limits_cap";
		wake-capable-sensor;
		tracks-low;
		trips {
			mdm_scl_cap: mdm-scl-trip {
				temperature = <5000>;
				hysteresis = <5000>;
				type = "passive";
			};
		};

			cpu7_cdev {
				trip = <&camera_trip>;
				cooling-device = <&CPU7 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
		cooling-maps {
			lmh_cpu0_cdev {
				trip = <&mdm_scl_cap>;
				cooling-device = <&lmh_cpu_vdd0 1 1>;
			};

			lpi_cx_vdd_cdev {
				trip = <&camera_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;
			lmh_cpu6_cdev {
				trip = <&mdm_scl_cap>;
				cooling-device = <&lmh_cpu_vdd1 1 1>;
			};
		};
	};
@@ -1130,24 +1211,6 @@
		};

		cooling-maps {
			cpu0_cdev {
				trip = <&mdm_scl_trip>;
				cooling-device = <&CPU0 (THERMAL_MAX_LIMIT-4)
							(THERMAL_MAX_LIMIT-4)>;
			};

			cpu6_cdev {
				trip = <&mdm_scl_trip>;
				cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
			};

			cpu7_cdev {
				trip = <&mdm_scl_trip>;
				cooling-device = <&CPU7 (THERMAL_MAX_LIMIT-3)
							(THERMAL_MAX_LIMIT-3)>;
			};

			lpi_cx_vdd_cdev {
				trip = <&mdm_scl_trip>;
				cooling-device = <&lpi_cx_cdev 0 0>;