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

Commit 10292461 authored by Ke Liu's avatar Ke Liu
Browse files

ARM: dts: update frequency to corner and quot mapping for CPR on msm8226v2



Some devices need to adjust their CPR quotient value according to the cpu
frequency. The existing configuration uses the same fuse target quotient
for each frequency in a given corner. This configuration is not power
efficient as some corners have a large range of frequencies. Hence use a
virtual corner for each frequency for power saving purposes.

CRs-Fixed: 583719
Change-Id: I90113c4ad26c792c849378ec192bfde4ff2ec199
Signed-off-by: default avatarKe Liu <keliu@codeaurora.org>
parent caad63c6
Loading
Loading
Loading
Loading
+39 −21
Original line number Diff line number Diff line
@@ -63,9 +63,20 @@
	qti,pvs-corner-ceiling-nom  = <1050000 1080000 1200000>;
	qti,pvs-corner-ceiling-fast = <1050000 1050000 1100000>;
	qti,cpr-step-quotient = <30>;
	regulator-min-microvolt = <1>;
	regulator-max-microvolt = <12>;
	qti,cpr-up-threshold = <0>;
	qti,cpr-down-threshold = <5>;
	qti,cpr-apc-volt-step = <10000>;
	qti,cpr-corner-map = <1 1 2 2 3 3 3 3 3 3 3 3>;
	qti,cpr-quot-adjust-table =
				<1 5 450>,
				<1 6 375>,
				<1 7 300>,
				<1 8 225>,
				<1 9 187>,
				<1 10 150>,
				<1 11 75>;
};

&msm_gpu {
@@ -80,39 +91,46 @@
		reg-names = "rcg-base", "efuse";
		qcom,speed0-bin-v2 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1190400000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1190400000 7>;
		qcom,speed6-bin-v2 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1190400000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1190400000 7>;
		qcom,speed2-bin-v2 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed5-bin-v2 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed4-bin-v2 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed7-bin-v2 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed1-bin-v2 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1593600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			< 998400000 5>,
			<1094400000 6>,
			<1190400000 7>,
			<1305600000 8>,
			<1344000000 9>,
			<1401600000 10>,
			<1497600000 11>,
			<1593600000 12>;
	};
};

+39 −21
Original line number Diff line number Diff line
@@ -45,39 +45,46 @@
		reg-names = "rcg-base", "efuse";
		qcom,speed0-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1190400000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1190400000 7>;
		qcom,speed6-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1190400000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1190400000 7>;
		qcom,speed2-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed5-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed4-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed7-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1401600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			<1401600000 10>;
		qcom,speed1-bin-v1 =
			<         0 0>,
			< 384000000 1>,
			< 787200000 2>,
			<1593600000 3>;
			< 384000000 2>,
			< 787200000 4>,
			< 998400000 5>,
			<1094400000 6>,
			<1190400000 7>,
			<1305600000 8>,
			<1344000000 9>,
			<1401600000 10>,
			<1497600000 11>,
			<1593600000 12>;
	};

	qcom,msm-thermal {
@@ -171,6 +178,17 @@
	qti,cpr-up-threshold = <0>;
	qti,cpr-down-threshold = <5>;
	qti,cpr-apc-volt-step = <10000>;
	regulator-min-microvolt = <1>;
	regulator-max-microvolt = <12>;
	qti,cpr-corner-map = <1 1 2 2 3 3 3 3 3 3 3 3>;
	qti,cpr-quot-adjust-table =
				<1 5 450>,
				<1 6 375>,
				<1 7 300>,
				<1 8 225>,
				<1 9 187>,
				<1 10 150>,
				<1 11 75>;
};

&tsens {