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

Commit 0f5f106e authored by David Collins's avatar David Collins
Browse files

ARM: dts: msm: specify VDD_GFX CPR device properties for msm8996pro



Specify the MSM8996-Pro VDD_GFX CPR configurations.  This
includes a new corner mapping for the additional GPU frequencies
found on MSM8996-Pro as well as the voltage adjustments
appropriate for all of the frequencies.

Change-Id: Ic704b0e886de2aaffa4afb044704c21b6e8d24da
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 1918dcae
Loading
Loading
Loading
Loading
+148 −0
Original line number Diff line number Diff line
@@ -377,3 +377,151 @@

	qcom,cpr-dynamic-floor-corner = <1>;
};

&pmi8994_s2 {
	regulator-max-microvolt = <1065000>;
};

&pm8004_s2 {
	regulator-max-microvolt = <1065000>;
};

&gfx_cpr {
	compatible = "qcom,cpr3-msm8996pro-mmss-regulator";
};

&gfx_vreg {
	regulator-min-microvolt = <2>;
	regulator-max-microvolt = <9>;

	qcom,cpr-fuse-corners = <4>;
	qcom,cpr-fuse-combos = <16>;
	qcom,cpr-speed-bins = <2>;
	qcom,cpr-speed-bin-corners = <9 9>;
	qcom,cpr-corners =
		/* Speed bin 0 */
		<9 9 9 9 9 9 9 9>,

		/* Speed bin 1 */
		<9 9 9 9 9 9 9 9>;

	qcom,cpr-corner-fmax-map =
		/* Speed bin 0 */
		<2 4 6 9>,

		/* Speed bin 1 */
		<2 4 6 9>;

	qcom,cpr-voltage-ceiling =
		/* Speed bin 0 */
		<400000  670000  670000  745000  825000  905000  960000 1015000
		1065000>,

		/* Speed bin 1 */
		<400000  670000  670000  745000  825000  905000  960000 1015000
		1065000>;

	qcom,cpr-voltage-floor =
		/* Speed bin 0 */
		<400000  520000  520000  520000  520000  520000  520000  520000
		 520000>,

		/* Speed bin 1 */
		<400000  520000  520000  520000  520000  520000  520000  520000
		 520000>;

	qcom,mem-acc-voltage =
		/* Speed bin 0 */
		<1 1 1 1 2 2 2 2 2>,

		/* Speed bin 1 */
		<1 1 1 1 2 2 2 2 2>;

	qcom,corner-frequencies =
		/* Speed bin 0 */
		<0 133000000 214000000 315000000 401800000 510000000 560000000
		   624000000 652800000>,

		/* Speed bin 1 */
		<0 133000000 214000000 315000000 401800000 510000000 560000000
		   624000000 652800000>;

	qcom,cpr-target-quotients =
		/* Speed bin 0 */
		<0 0 0 0 0 0    0    0    0    0    0    0 0 0 0 0>,
		<0 0 0 0 0 0  185  179  291  299  304  319 0 0 0 0>,
		<0 0 0 0 0 0  287  273  425  426  443  453 0 0 0 0>,
		<0 0 0 0 0 0  414  392  584  576  608  612 0 0 0 0>,
		<0 0 0 0 0 0  459  431  684  644  692  679 0 0 0 0>,
		<0 0 0 0 0 0  577  543  798  768  823  810 0 0 0 0>,
		<0 0 0 0 0 0  669  629  886  864  924  911 0 0 0 0>,
		<0 0 0 0 0 0  771  725  984  970 1036 1024 0 0 0 0>,
		<0 0 0 0 0 0  908  868 1118 1106 1179 1174 0 0 0 0>,

		/* Speed bin 1 */
		<0 0 0 0 0 0    0    0    0    0    0    0 0 0 0 0>,
		<0 0 0 0 0 0  185  179  291  299  304  319 0 0 0 0>,
		<0 0 0 0 0 0  287  273  425  426  443  453 0 0 0 0>,
		<0 0 0 0 0 0  414  392  584  576  608  612 0 0 0 0>,
		<0 0 0 0 0 0  459  431  684  644  692  679 0 0 0 0>,
		<0 0 0 0 0 0  577  543  798  768  823  810 0 0 0 0>,
		<0 0 0 0 0 0  669  629  886  864  924  911 0 0 0 0>,
		<0 0 0 0 0 0  771  725  984  970 1036 1024 0 0 0 0>,
		<0 0 0 0 0 0  908  868 1118 1106 1179 1174 0 0 0 0>;

	qcom,cpr-ro-scaling-factor =
		/* Speed bin 0 */
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,

		/* Speed bin 1 */
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>,
		<0 0 0 0 0 0 2035 1917 1959 2131 2246 2253 0 0 0 0>;

	qcom,cpr-open-loop-voltage-fuse-adjustment =
		/* Speed bin 0 */
		<(-70000) 0 0 0>,

		/* Speed bin 1 */
		<(-70000) 0 0 0>;

	qcom,cpr-closed-loop-voltage-adjustment =
		/* Speed bin 0 */
		<0 0 30000 10000 10000 45000 25000 25000 25000>,

		/* Speed bin 1 */
		<0 0 30000 10000 10000 45000 25000 25000 25000>;

	qcom,cpr-floor-to-ceiling-max-range =
		/* Speed bin 0 */
		<0 70000 70000 75000 80000 90000 95000 100000 100000>,

		/* Speed bin 1 */
		<0 70000 70000 75000 80000 90000 95000 100000 100000>;

	qcom,cpr-fused-closed-loop-voltage-adjustment-map =
		/* Speed bin 0 */
		<0 2 2 2 2 0 0 4 4>,

		/* Speed bin 1 */
		<0 2 2 2 2 0 0 4 4>;

	qcom,cpr-aging-max-voltage-adjustment = <15000>;
	qcom,cpr-aging-ref-corner = <6>;
	qcom,cpr-aging-ro-scaling-factor = <2950>;
	qcom,allow-aging-voltage-adjustment = <1>;
};