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

Commit 20763dda authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: Update BCL configs with BCL-LMH level for pmi632



Move BCL devicetree configs to BCL level based configs for pmi632.
Update the same for BCL thermal zones for each level Ibat and Vbat.

Change-Id: I0fc3a83173b8daf21d9a9a3523e82b2b90b7092b
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 7b5c6929
Loading
Loading
Loading
Loading
+60 −7
Original line number Diff line number Diff line
@@ -417,9 +417,15 @@
			compatible = "qcom,bcl-v5";
			reg = <0x3d00 0x100>;
			interrupts = <0x2 0x3d 0x0 IRQ_TYPE_NONE>,
					<0x2 0x3d 0x1 IRQ_TYPE_NONE>;
			interrupt-names = "bcl-high-ibat",
						"bcl-low-vbat";
					<0x2 0x3d 0x1 IRQ_TYPE_NONE>,
					<0x2 0x3d 0x0 IRQ_TYPE_NONE>,
					<0x2 0x3d 0x1 IRQ_TYPE_NONE>,
					<0x2 0x3d 0x2 IRQ_TYPE_NONE>;
			interrupt-names = "bcl-ibat-lvl0",
						"bcl-ibat-lvl1",
						"bcl-vbat-lvl0",
						"bcl-vbat-lvl1",
						"bcl-vbat-lvl2";
			#thermal-sensor-cells = <1>;
		};

@@ -596,14 +602,14 @@
};

&thermal_zones {
	ibat-high {
	pmi-ibat-lvl0 {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&bcl_sensor 0>;

		trips {
			pmi632_ibat:ibat-high {
			pmi632_ibat:ibat-lvl0 {
				temperature = <3500>;
				hysteresis = <200>;
				type = "passive";
@@ -611,7 +617,22 @@
		};
	};

	vbat_low {
	pmi-ibat-lvl1 {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&bcl_sensor 1>;

		trips {
			ibat-lvl1 {
				temperature = <4000>;
				hysteresis = <200>;
				type = "passive";
			};
		};
	};

	pmi-vbat-lvl0 {
		polling-delay-passive = <100>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
@@ -619,7 +640,7 @@
		tracks-low;

		trips {
			pmi632_vbat_low: vbat-low {
			pmi632_vbat_lvl0: vbat-lvl0 {
				temperature = <3000>;
				hysteresis = <100>;
				type = "passive";
@@ -627,6 +648,38 @@
		};
	};

	pmi-vbat-lvl1 {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&bcl_sensor 3>;
		tracks-low;

		trips {
			vbat-lvl1 {
				temperature = <2800>;
				hysteresis = <100>;
				type = "passive";
			};
		};
	};

	pmi-vbat-lvl2 {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&bcl_sensor 4>;
		tracks-low;

		trips {
			vbat-lvl1 {
				temperature = <2600>;
				hysteresis = <100>;
				type = "passive";
			};
		};
	};

	soc {
		polling-delay-passive = <100>;
		polling-delay = <0>;
+5 −5
Original line number Diff line number Diff line
@@ -62,28 +62,28 @@
};

&thermal_zones {
	vbat_low {
	pmi-vbat-lvl0 {
		cooling-maps {
			vbat_map4 {
				trip = <&pmi632_vbat_low>;
				trip = <&pmi632_vbat_lvl0>;
				cooling-device =
					<&CPU4 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			vbat_map5 {
				trip = <&pmi632_vbat_low>;
				trip = <&pmi632_vbat_lvl0>;
				cooling-device =
					<&CPU5 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			vbat_map6 {
				trip = <&pmi632_vbat_low>;
				trip = <&pmi632_vbat_lvl0>;
				cooling-device =
					<&CPU6 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;
			};
			vbat_map7 {
				trip = <&pmi632_vbat_low>;
				trip = <&pmi632_vbat_lvl0>;
				cooling-device =
					<&CPU7 THERMAL_MAX_LIMIT
						THERMAL_MAX_LIMIT>;