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

Commit 0439a999 authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

ARM: dts: msm: Enable APC0/1 CPR closed-loop operation for sdm660



Configure APC0/1 CPR instances to operate in closed-loop operation
to maintain an optimal voltage set point on the APC0/1 voltage rails.

Also, add static open-loop and closed-loop voltage margins as per
the early voltage characterization results.

CRs-Fixed: 2006437
Change-Id: Iea42d16d2e7c19a2779090d767dd37b0865b24c2
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 3a7e7526
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
@@ -670,6 +670,9 @@
		qcom,cpr-panic-reg-name-list =
			"PWR_CPRH_STATUS", "APCLUS0_L2_SAW4_PMIC_STS";

		qcom,cpr-enable;
		qcom,cpr-hw-closed-loop;

		thread@0 {
			qcom,cpr-thread-id = <0>;
			qcom,cpr-consecutive-up = <0>;
@@ -705,6 +708,33 @@
				qcom,allow-voltage-interpolation;
				qcom,allow-quotient-interpolation;
				qcom,cpr-scaled-open-loop-voltage-as-ceiling;

				qcom,cpr-ro-scaling-factor =
					<3600 3600 3830 2430 2520 2700 1790
					 1760 1970 1880 2110 2010 2510 4900
					 4370 4780>,
					<3600 3600 3830 2430 2520 2700 1790
					 1760 1970 1880 2110 2010 2510 4900
					 4370 4780>,
					<3600 3600 3830 2430 2520 2700 1790
					 1760 1970 1880 2110 2010 2510 4900
					 4370 4780>,
					<3600 3600 3830 2430 2520 2700 1790
					 1760 1970 1880 2110 2010 2510 4900
					 4370 4780>,
					<3600 3600 3830 2430 2520 2700 1790
					 1760 1970 1880 2110 2010 2510 4900
					 4370 4780>;

				qcom,cpr-open-loop-voltage-fuse-adjustment =
					<13000 31000 27000 37000 21000>;

				qcom,cpr-closed-loop-voltage-fuse-adjustment =
					<0     0     0     0      8000>;

				qcom,cpr-floor-to-ceiling-max-range =
					<32000  32000  32000  40000  40000
					 40000  40000  40000>;
			};
		};
	};
@@ -744,6 +774,9 @@
		qcom,cpr-panic-reg-name-list =
			"PERF_CPRH_STATUS", "APCLUS1_L2_SAW4_PMIC_STS";

		qcom,cpr-enable;
		qcom,cpr-hw-closed-loop;

		thread@0 {
			qcom,cpr-thread-id = <0>;
			qcom,cpr-consecutive-up = <0>;
@@ -785,6 +818,33 @@
				qcom,allow-voltage-interpolation;
				qcom,allow-quotient-interpolation;
				qcom,cpr-scaled-open-loop-voltage-as-ceiling;

				qcom,cpr-ro-scaling-factor =
					<4040 4230 0000 2210 2560 2450 2230
					 2220 2410 2300 2560 2470 1600 3120
					 2620 2280>,
					<4040 4230 0000 2210 2560 2450 2230
					 2220 2410 2300 2560 2470 1600 3120
					 2620 2280>,
					<4040 4230 0000 2210 2560 2450 2230
					 2220 2410 2300 2560 2470 1600 3120
					 2620 2280>,
					<4040 4230 0000 2210 2560 2450 2230
					 2220 2410 2300 2560 2470 1600 3120
					 2620 2280>,
					<4040 4230 0000 2210 2560 2450 2230
					 2220 2410 2300 2560 2470 1600 3120
					 2620 2280>;

				qcom,cpr-open-loop-voltage-fuse-adjustment =
					<31000 39000 53000 40000 29000>;

				qcom,cpr-closed-loop-voltage-fuse-adjustment =
					<0      3000 19000 23000 28000>;

				qcom,cpr-floor-to-ceiling-max-range =
					<40000  40000  40000  40000
					 40000  40000  40000>;
			};
		};
	};