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

Commit 297ce837 authored by Gopala Krishna Nuthaki's avatar Gopala Krishna Nuthaki Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Update Ibat threshold and BCL thermal config for YUPIK

Update ibat level0 threshold to 5A based on latest
recommendation.

Remove GPU mitigation rules from BCL thermalzone config as
GPU driver itself monitors BCL irq on CB and mitigates its
frequency.

Change-Id: I73f3fbab2e949cee957c09325f6fb4364bdead60
parent 5125839a
Loading
Loading
Loading
Loading
+56 −38
Original line number Diff line number Diff line
@@ -33,6 +33,14 @@
		};
	};

	pm8350b-ibat-lvl0 {
		trips {
			ibat-lvl0 {
				temperature = <5000>;
			};
		};
	};

	pm8350b-bcl-lvl0 {
		cooling-maps {
			vbat_cpu4 {
@@ -45,50 +53,55 @@
				cooling-device = <&cpu5_isolate 1 1>;
			};

			vbat_gpu0 {
			vbat_cpu6 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&msm_gpu 2 2>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

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

			vbat_cdsp0 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&cdsp_sw 2 2>;
			};

			vbat_modem0 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&modem_pa 2 2>;
			};

			vbat_modem1 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&modem_tj 1 1>;
			};
		};
	};

	pm8350b-bcl-lvl1 {
		cooling-maps {
			vbat_cpu6 {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vbat_cpu7 {
			vbat_gpu {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&cpu7_isolate 1 1>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vbat_gpu1 {
			vbat_cdsp1 {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&msm_gpu 4 4>;
				cooling-device = <&cdsp_sw 4 4>;
			};

			vbat_cdsp1 {
			vbat_modem2 {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&cdsp_sw 4 4>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};

	pm8350b-bcl-lvl2 {
		cooling-maps {
			vbat_gpu2 {
				trip = <&b_bcl_lvl2>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vbat_cdsp2 {
				trip = <&b_bcl_lvl2>;
				cooling-device = <&cdsp_sw THERMAL_MAX_LIMIT
@@ -110,39 +123,50 @@
				cooling-device = <&cpu5_isolate 1 1>;
			};

			vph_gpu0 {
			vph_cpu6 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&msm_gpu 2 2>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

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

			vph_cdsp0 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&cdsp_sw 2 2>;
			};

			vph_modem0 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&modem_pa 2 2>;
			};

			vph_modem1 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&modem_tj 1 1>;
			};
		};
	};

	pm8350c-bcl-lvl1 {
		disable-thermal-zone;
		cooling-maps {
			vph_cpu6 {
			vph_gpu {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vph_cpu7 {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&cpu7_isolate 1 1>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vph_gpu1 {
			vph_cdsp1 {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&msm_gpu 4 4>;
				cooling-device = <&cdsp_sw 4 4>;
			};

			vph_cdsp1 {
			vph_modem2 {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&cdsp_sw 4 4>;
				cooling-device = <&modem_tj 3 3>;
			};
		};
	};
@@ -150,12 +174,6 @@
	pm8350c-bcl-lvl2 {
		disable-thermal-zone;
		cooling-maps {
			vph_gpu2 {
				trip = <&c_bcl_lvl2>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vph_cdsp2 {
				trip = <&c_bcl_lvl2>;
				cooling-device = <&cdsp_sw THERMAL_MAX_LIMIT
+32 −44
Original line number Diff line number Diff line
@@ -33,6 +33,14 @@
		};
	};

	pm7325b-ibat-lvl0 {
		trips {
			ibat-lvl0 {
				temperature = <5000>;
			};
		};
	};

	pm7325b-bcl-lvl0 {
		cooling-maps {
			vbat_cpu4 {
@@ -45,9 +53,14 @@
				cooling-device = <&cpu5_isolate 1 1>;
			};

			vbat_gpu0 {
			vbat_cpu6 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vbat_cpu7 {
				trip = <&b_bcl_lvl0>;
				cooling-device = <&msm_gpu 2 2>;
				cooling-device = <&cpu7_isolate 1 1>;
			};

			vbat_cdsp0 {
@@ -69,19 +82,10 @@

	pm7325b-bcl-lvl1 {
		cooling-maps {
			vbat_cpu6 {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

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

			vbat_gpu1 {
			vbat_gpu {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&msm_gpu 4 4>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vbat_cdsp1 {
@@ -89,7 +93,7 @@
				cooling-device = <&cdsp_sw 4 4>;
			};

			vbat_modem0 {
			vbat_modem2 {
				trip = <&b_bcl_lvl1>;
				cooling-device = <&modem_tj 3 3>;
			};
@@ -98,12 +102,6 @@

	pm7325b-bcl-lvl2 {
		cooling-maps {
			vbat_gpu2 {
				trip = <&b_bcl_lvl2>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vbat_cdsp2 {
				trip = <&b_bcl_lvl2>;
				cooling-device = <&cdsp_sw THERMAL_MAX_LIMIT
@@ -125,9 +123,14 @@
				cooling-device = <&cpu5_isolate 1 1>;
			};

			vph_gpu0 {
			vph_cpu6 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vph_cpu7 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&msm_gpu 2 2>;
				cooling-device = <&cpu7_isolate 1 1>;
			};

			vph_cdsp0 {
@@ -135,12 +138,12 @@
				cooling-device = <&cdsp_sw 2 2>;
			};

			vbat_modem0 {
			vph_modem0 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&modem_pa 2 2>;
			};

			vbat_modem1 {
			vph_modem1 {
				trip = <&c_bcl_lvl0>;
				cooling-device = <&modem_tj 1 1>;
			};
@@ -150,19 +153,10 @@
	pm8350c-bcl-lvl1 {
		disable-thermal-zone;
		cooling-maps {
			vph_cpu6 {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&cpu6_isolate 1 1>;
			};

			vph_cpu7 {
			vph_gpu {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&cpu7_isolate 1 1>;
			};

			vph_gpu1 {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&msm_gpu 4 4>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vph_cdsp1 {
@@ -170,7 +164,7 @@
				cooling-device = <&cdsp_sw 4 4>;
			};

			vbat_modem0 {
			vph_modem2 {
				trip = <&c_bcl_lvl1>;
				cooling-device = <&modem_tj 3 3>;
			};
@@ -180,12 +174,6 @@
	pm8350c-bcl-lvl2 {
		disable-thermal-zone;
		cooling-maps {
			vph_gpu2 {
				trip = <&c_bcl_lvl2>;
				cooling-device = <&msm_gpu THERMAL_MAX_LIMIT
							THERMAL_MAX_LIMIT>;
			};

			vph_cdsp2 {
				trip = <&c_bcl_lvl2>;
				cooling-device = <&cdsp_sw THERMAL_MAX_LIMIT