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

Commit 863731ef authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: qcom: Add BCL mitigation level config for lito

Add BCL mitigation level thermal zone config for lito. This config
will have the devices to be mitigated when any of the BCL mitigation
level interrupt fires.

Remove Vbat/Ibat thermal zone cooling device binding as it is
no longer required for lito.

Change-Id: I96cdd8959ebc627ed4f55c648a2dc0d0bb6bffa5
parent f2f241f7
Loading
Loading
Loading
Loading
+24 −52
Original line number Diff line number Diff line
@@ -128,116 +128,88 @@
		};
	};

	pm7250b-vbat-lvl0 {
	pm7250b-bcl-lvl0 {
		cooling-maps {
			vbat_cpu6 {
				trip = <&vbat_lvl0>;
			lbat0_cpu6 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vbat_cpu7 {
				trip = <&vbat_lvl0>;
			lbat0_cpu7 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
	};

	pm7250b-vbat-lvl1 {
	pm7250b-bcl-lvl1 {
		cooling-maps {
			vbat_cpu6 {
				trip = <&vbat_lvl1>;
			lbat1_cpu6 {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vbat_cpu7 {
				trip = <&vbat_lvl1>;
			lbat1_cpu7 {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
	};

	pm7250b-vbat-lvl2 {
	pm7250b-bcl-lvl2 {
		cooling-maps {
			vbat_cpu6 {
				trip = <&vbat_lvl2>;
			lbat2_cpu6 {
				trip = <&b_bcl_lvl2>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vbat_cpu7 {
				trip = <&vbat_lvl2>;
			lbat2_cpu7 {
				trip = <&b_bcl_lvl2>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
	};

	pm7250b-ibat-lvl0 {
		cooling-maps {
			ibat_cpu6 {
				trip = <&ibat_lvl0>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			ibat_cpu7 {
				trip = <&ibat_lvl0>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
	};

	pm7250b-ibat-lvl1 {
		cooling-maps {
			ibat_cpu6 {
				trip = <&ibat_lvl1>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			ibat_cpu7 {
				trip = <&ibat_lvl1>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
	};

	pm8150l-vph-lvl0 {
	pm8150l-bcl-lvl0 {
		disable-thermal-zone;
		cooling-maps {
			vph_cpu6 {
				trip = <&vph_lvl0>;
				trip = <&l_bcl_lvl0>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vph_cpu7 {
				trip = <&vph_lvl0>;
				trip = <&l_bcl_lvl0>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
	};

	pm8150l-vph-lvl1 {
	pm8150l-bcl-lvl1 {
		disable-thermal-zone;
		cooling-maps {
			vph_cpu6 {
				trip = <&vph_lvl1>;
				trip = <&l_bcl_lvl1>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vph_cpu7 {
				trip = <&vph_lvl1>;
				trip = <&l_bcl_lvl1>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
	};

	pm8150l-vph-lvl2 {
	pm8150l-bcl-lvl2 {
		disable-thermal-zone;
		cooling-maps {
			vph_cpu6 {
				trip = <&vph_lvl2>;
				trip = <&l_bcl_lvl2>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vph_cpu7 {
				trip = <&vph_lvl2>;
				trip = <&l_bcl_lvl2>;
				cooling-device = <&cpu7_isolate 1 1>;
			};
		};
+53 −12
Original line number Diff line number Diff line
@@ -425,15 +425,11 @@
			compatible = "qcom,bcl-v5";
			reg = <0x1d00 0x100>;
			interrupts = <0x2 0x1d 0x0 IRQ_TYPE_NONE>,
					<0x2 0x1d 0x1 IRQ_TYPE_NONE>,
					<0x2 0x1d 0x0 IRQ_TYPE_NONE>,
					<0x2 0x1d 0x1 IRQ_TYPE_NONE>,
					<0x2 0x1d 0x2 IRQ_TYPE_NONE>;
			interrupt-names = "bcl-ibat-lvl0",
						"bcl-ibat-lvl1",
						"bcl-vbat-lvl0",
						"bcl-vbat-lvl1",
						"bcl-vbat-lvl2";
			interrupt-names = "bcl-lvl0",
						"bcl-lvl1",
						"bcl-lvl2";
			#thermal-sensor-cells = <1>;
		};

@@ -488,7 +484,7 @@
	};

	pm7250b-ibat-lvl0 {
		polling-delay-passive = <100>;
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm7250b_bcl 0>;
@@ -504,7 +500,7 @@
	};

	pm7250b-ibat-lvl1 {
		polling-delay-passive = <100>;
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm7250b_bcl 1>;
@@ -520,7 +516,7 @@
	};

	pm7250b-vbat-lvl0 {
		polling-delay-passive = <100>;
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&pm7250b_bcl 2>;
@@ -537,7 +533,7 @@
	};

	pm7250b-vbat-lvl1 {
		polling-delay-passive = <100>;
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&pm7250b_bcl 3>;
@@ -554,7 +550,7 @@
	};

	pm7250b-vbat-lvl2 {
		polling-delay-passive = <100>;
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&pm7250b_bcl 4>;
@@ -570,6 +566,51 @@
		};
	};

	pm7250b-bcl-lvl0 {
		polling-delay-passive = <100>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm7250b_bcl 5>;

		trips {
			b_bcl_lvl0: b-bcl-lvl0 {
				temperature = <1>;
				hysteresis = <1>;
				type = "passive";
			};
		};
	};

	pm7250b-bcl-lvl1 {
		polling-delay-passive = <100>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm7250b_bcl 6>;

		trips {
			b_bcl_lvl1: b-bcl-lvl1 {
				temperature = <1>;
				hysteresis = <1>;
				type = "passive";
			};
		};
	};

	pm7250b-bcl-lvl2 {
		polling-delay-passive = <100>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm7250b_bcl 7>;

		trips {
			b_bcl_lvl2: b-bcl-lvl2 {
				temperature = <1>;
				hysteresis = <1>;
				type = "passive";
			};
		};
	};

	soc {
		polling-delay-passive = <100>;
		polling-delay = <0>;