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

Commit e60f4ea0 authored by haihez's avatar haihez Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add support of speed-bin 3 for MSM8996v3



Add speed-bin 3 to support the fmax of 1.8GHz for perf clusters
respectively based on speed bin0.

Change-Id: I96d301005c5d00a46dcc20eb321b5552249b84c7
Signed-off-by: default avatarHaihe Zhang <haihez@codeaurora.org>
parent bb5a5822
Loading
Loading
Loading
Loading
+71 −0
Original line number Diff line number Diff line
@@ -51,6 +51,15 @@
		<  401800000  6  5 >,
		<  510000000  6  5 >,
		<  560000000  7  7 >;
	qcom,gfxfreq-speedbin3 =
		<          0  0  0 >,
		<  133000000  6  4 >,
		<  214000000  6  4 >,
		<  315000000  6  4 >,
		<  401800000  6  5 >,
		<  510000000  6  5 >,
		<  560000000  7  7 >,
		<  624000000  8  7 >;
};


@@ -105,6 +114,24 @@
		< 1324800000 13 >,
		< 1401600000 14 >,
		< 1497600000 15 >;
	qcom,pwrcl-speedbin3-v0 =
		<          0  0 >,
		<  307200000 12 >,
		<  422400000 12 >,
		<  480000000 12 >,
		<  556800000 12 >,
		<  652800000 12 >,
		<  729600000 12 >,
		<  844800000 12 >,
		<  960000000 12 >,
		< 1036800000 12 >,
		< 1113600000 12 >,
		< 1190400000 12 >,
		< 1228800000 12 >,
		< 1324800000 13 >,
		< 1401600000 14 >,
		< 1478400000 15 >,
		< 1593600000 16 >;
	qcom,perfcl-speedbin0-v0 =
		<          0  0 >,
		<  307200000 13 >,
@@ -179,6 +206,29 @@
		< 1785600000 20 >,
		< 1804800000 21 >,
		< 1900800000 22 >;
	qcom,perfcl-speedbin3-v0 =
		<          0  0 >,
		<  307200000 13 >,
		<  403200000 13 >,
		<  480000000 13 >,
		<  556800000 13 >,
		<  652800000 13 >,
		<  729600000 13 >,
		<  806400000 13 >,
		<  883200000 13 >,
		<  940800000 13 >,
		< 1036800000 13 >,
		< 1113600000 13 >,
		< 1190400000 13 >,
		< 1248000000 13 >,
		< 1324800000 14 >,
		< 1401600000 15 >,
		< 1478400000 16 >,
		< 1555200000 17 >,
		< 1632000000 18 >,
		< 1708800000 19 >,
		< 1785600000 20 >,
		< 1804800000 21 >;
	qcom,cbf-speedbin0-v0 =
		<          0  0 >,
		<  307200000 13 >,
@@ -234,6 +284,27 @@
		< 1190400000 13 >,
		< 1228800000 14 >,
		< 1305600000 15 >;
	qcom,cbf-speedbin3-v0 =
		<          0  0 >,
		<  307200000 13 >,
		<  384000000 13 >,
		<  460800000 13 >,
		<  537600000 13 >,
		<  595200000 13 >,
		<  672000000 13 >,
		<  748800000 13 >,
		<  825600000 13 >,
		<  902400000 13 >,
		<  979200000 13 >,
		< 1056000000 13 >,
		< 1132800000 13 >,
		< 1190400000 13 >,
		< 1228800000 14 >,
		< 1305600000 15 >,
		< 1382400000 16 >,
		< 1459200000 17 >,
		< 1536000000 18 >,
		< 1593600000 19 >;
};

&blsp1_uart2 {
+313 −15
Original line number Diff line number Diff line
@@ -623,9 +623,9 @@

				qcom,cpr-pd-bypass-mask = <0x07>;
				qcom,cpr-fuse-corners = <5>;
				qcom,cpr-fuse-combos = <24>;
				qcom,cpr-speed-bins = <3>;
				qcom,cpr-speed-bin-corners = <16 13 16>;
				qcom,cpr-fuse-combos = <32>;
				qcom,cpr-speed-bins = <4>;
				qcom,cpr-speed-bin-corners = <16 13 16 16>;
				qcom,cpr-corners =
					/* Speed bin 0 */
					<16 16 16 16 16 16 16 16>,
@@ -634,6 +634,9 @@
					<13 13 13 13 13 13 13 13>,

					/* Speed bin 2 */
					<16 16 16 16 16 16 16 16>,

					/* Speed bin 3 */
					<16 16 16 16 16 16 16 16>;

				qcom,ldo-min-headroom-voltage = <150000>;
@@ -649,8 +652,10 @@
					<1 2 7 12 13>,

					/* Speed bin 2 */
					<1 2 7 12 16>;
					<1 2 7 12 16>,

					/* Speed bin 3 */
					<1 2 7 12 16>;
				qcom,cpr-voltage-ceiling =
					/* Speed bin 0 */
					<670000  670000  745000  745000  745000
@@ -664,6 +669,12 @@
					 905000  905000 1140000>,

					/* Speed bin 2 */
					<670000  670000  745000  745000  745000
					 745000  745000  905000  905000  905000
					 905000  905000 1140000 1140000 1140000
					1140000>,

					/* Speed bin 3 */
					<670000  670000  745000  745000  745000
					 745000  745000  905000  905000  905000
					 905000  905000 1140000 1140000 1140000
@@ -731,6 +742,40 @@
					 470000  470000  470000>,

					/* Speed bin 2 */
					<625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000>,
					<625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000>,
					<625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000>,
					<625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000>,
					<625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000>,
					<625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000>,
					<470000  470000  470000  470000  470000
					 470000  470000  470000  470000  470000
					 470000  470000  470000  470000  470000
					 470000>,
					<470000  470000  470000  470000  470000
					 470000  470000  470000  470000  470000
					 470000  470000  470000  470000  470000
					 470000>,

					/* Speed bin 3 */
					<625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
					 625000  625000  625000  625000  625000
@@ -777,6 +822,12 @@
					  80000   80000   80000>,

					/* Speed bin 2 */
					 <50000   50000   80000   80000   80000
					  80000   80000   80000   80000   80000
					  80000   80000   80000   80000   80000
					  80000>,

					/* Speed bin 3 */
					 <50000   50000   80000   80000   80000
					  80000   80000   80000   80000   80000
					  80000   80000   80000   80000   80000
@@ -804,6 +855,14 @@
					 844800000  960000000 1036800000
					1113600000 1190400000 1228800000
					1324800000 1401600000 1478400000
					1593600000>,

					/* Speed bin 3 */
					<307200000  422400000  480000000
					 556800000  652800000  729600000
					 844800000  960000000 1036800000
					1113600000 1190400000 1228800000
					1324800000 1401600000 1478400000
					1593600000>;

				qcom,cpr-ro-scaling-factor =
@@ -847,6 +906,16 @@
					<35000     0 40000  10000     5000>,
					<35000     0 40000  10000     5000>,
					<35000     0 40000  10000     5000>,
					<35000     0 40000  10000     5000>,

					/* Speed bin 3 */
					<20000     0 25000 (-5000) (-10000)>,
					<20000     0 25000 (-5000) (-10000)>,
					<20000     0 25000 (-5000) (-10000)>,
					<35000     0 40000  10000     5000>,
					<35000     0 40000  10000     5000>,
					<35000     0 40000  10000     5000>,
					<35000     0 40000  10000     5000>,
					<35000     0 40000  10000     5000>;

				qcom,cpr-closed-loop-voltage-fuse-adjustment =
@@ -878,6 +947,16 @@
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,

					/* Speed bin 3 */
					<35000 35000 40000  40000   40000>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>,
					<20000 10000  5000 (-5000) (-5000)>;

				qcom,cpr-open-loop-voltage-adjustment =
@@ -894,6 +973,12 @@
					 (-26000)>,

					/* Speed bin 2 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-13000) (-14000) (-15000) (-18000)
					 (-20000) (-22000) (-24000) (-25000)
					 (-26000) (-27000) (-28000) (-30000)>,

					/* Speed bin 3 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-13000) (-14000) (-15000) (-18000)
					 (-20000) (-22000) (-24000) (-25000)
@@ -907,6 +992,9 @@
				       <0 0 0 0 (-50000) 0 0 0 0 0 0 0 0>,

					/* Speed bin 2 */
				       <0 0 0 0 (-50000) 0 0 0 0 0 0 0 0 0 0 0>,

					/* Speed bin 3 */
				       <0 0 0 0 (-50000) 0 0 0 0 0 0 0 0 0 0 0>;

				qcom,cpr-closed-loop-voltage-adjustment =
@@ -923,6 +1011,12 @@
					 (-26000)>,

					/* Speed bin 2 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-13000) (-14000) (-15000) (-18000)
					 (-20000) (-22000) (-24000) (-25000)
					 (-26000) (-27000) (-28000) (-30000)>,

					/* Speed bin 3 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-13000) (-14000) (-15000) (-18000)
					 (-20000) (-22000) (-24000) (-25000)
@@ -933,7 +1027,7 @@
				qcom,cpr-scaled-open-loop-voltage-as-ceiling;

				qcom,cpr-aging-max-voltage-adjustment = <15000>;
				qcom,cpr-aging-ref-corner = <12 12 12>;
				qcom,cpr-aging-ref-corner = <12 12 12 12>;
				qcom,cpr-aging-ro-scaling-factor = <3200>;
				qcom,allow-aging-voltage-adjustment =
					/* Speed bin 0 */
@@ -943,6 +1037,9 @@
					<0 0 0 1 1 1 1 1>,

					/* Speed bin 2 */
					<0 0 0 1 1 1 1 1>,

					/* Speed bin 3 */
					<0 0 0 1 1 1 1 1>;
			};

@@ -956,9 +1053,9 @@

				qcom,cpr-pd-bypass-mask = <0x18>;
				qcom,cpr-fuse-corners = <5>;
				qcom,cpr-fuse-combos = <24>;
				qcom,cpr-speed-bins = <3>;
				qcom,cpr-speed-bin-corners = <19 15 19>;
				qcom,cpr-fuse-combos = <32>;
				qcom,cpr-speed-bins = <4>;
				qcom,cpr-speed-bin-corners = <19 15 19 19>;
				qcom,cpr-corners =
					/* Speed bin 0 */
					<19 19 19 19 19 19 19 19>,
@@ -967,6 +1064,9 @@
					<15 15 15 15 15 15 15 15>,

					/* Speed bin 2 */
					<19 19 19 19 19 19 19 19>,

					/* Speed bin 3 */
					<19 19 19 19 19 19 19 19>;

				qcom,cpr-corner-fmax-map =
@@ -977,6 +1077,9 @@
					<1 2 5 13 15>,

					/* Speed bin 2 */
					<1 2 5 13 19>,

					/* Speed bin 3 */
					<1 2 5 13 19>;

				qcom,cpr-voltage-ceiling =
@@ -995,8 +1098,13 @@
				       <670000  670000  745000  745000  745000
					905000  905000  905000  905000  905000
					905000  905000  905000 1140000 1140000
				       1140000 1140000 1140000 1140000>;
				       1140000 1140000 1140000 1140000>,

				       /* Speed bin 3 */
				       <670000  670000  745000  745000  745000
					905000  905000  905000  905000  905000
					905000  905000  905000 1140000 1140000
				       1140000 1140000 1140000 1140000>;
				qcom,cpr-voltage-floor =
				       /* Speed bin 0 */
				       <625000  625000  625000  625000  625000
@@ -1059,6 +1167,40 @@
					470000  470000  470000  470000  470000>,

				       /* Speed bin 2 */
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000>,
				       <470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000>,
				       <470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000>,

				       /* Speed bin 3 */
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
@@ -1105,6 +1247,12 @@
					 80000   80000   80000   80000   80000>,

					/* Speed bin 2 */
					<50000   50000   80000   80000   80000
					 80000   80000   80000   80000   80000
					 80000   80000   80000   80000   80000
					 80000   80000   80000   80000>,

					/* Speed bin 3 */
					<50000   50000   80000   80000   80000
					 80000   80000   80000   80000   80000
					 80000   80000   80000   80000   80000
@@ -1134,6 +1282,15 @@
					 979200000 1056000000 1132800000
					1190400000 1228800000 1305600000
					1382400000 1459200000 1536000000
					1593600000>,

					/* Speed bin 3 */
					<307200000  384000000  460800000
					 537600000  595200000  672000000
					 748800000  825600000  902400000
					 979200000 1056000000 1132800000
					1190400000 1228800000 1305600000
					1382400000 1459200000 1536000000
					1593600000>;

				qcom,cpr-ro-scaling-factor =
@@ -1177,6 +1334,16 @@
					<45000    0    5000     5000  (-25000)>,
					<45000    0    5000     5000  (-25000)>,
					<45000    0    5000     5000  (-25000)>,
					<45000    0    5000     5000  (-25000)>,

					/* Speed bin 3 */
					<30000    0 (-10000) (-10000) (-40000)>,
					<30000    0 (-10000) (-10000) (-40000)>,
					<30000    0 (-10000) (-10000) (-40000)>,
					<45000    0    5000     5000  (-25000)>,
					<45000    0    5000     5000  (-25000)>,
					<45000    0    5000     5000  (-25000)>,
					<45000    0    5000     5000  (-25000)>,
					<45000    0    5000     5000  (-25000)>;

				qcom,cpr-closed-loop-voltage-fuse-adjustment =
@@ -1208,6 +1375,16 @@
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,

					/* Speed bin 3 */
					<10000 5000        0        0        0>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>,
					<10000 5000 (-20000)        0 (-35000)>;

				qcom,allow-voltage-interpolation;
@@ -1215,7 +1392,7 @@
				qcom,cpr-scaled-open-loop-voltage-as-ceiling;

				qcom,cpr-aging-max-voltage-adjustment = <15000>;
				qcom,cpr-aging-ref-corner = <13 13 13>;
				qcom,cpr-aging-ref-corner = <13 13 13 13>;
				qcom,cpr-aging-ro-scaling-factor = <3200>;
				qcom,allow-aging-voltage-adjustment =
					/* Speed bin 0 */
@@ -1225,6 +1402,9 @@
					<0 0 0 1 1 1 1 1>,

					/* Speed bin 2 */
					<0 0 0 1 1 1 1 1>,

					/* Speed bin 3 */
					<0 0 0 1 1 1 1 1>;
			};
		};
@@ -1243,9 +1423,9 @@

				qcom,cpr-pd-bypass-mask = <0xe0>;
				qcom,cpr-fuse-corners = <5>;
				qcom,cpr-fuse-combos = <24>;
				qcom,cpr-speed-bins = <3>;
				qcom,cpr-speed-bin-corners = <25 21 25>;
				qcom,cpr-fuse-combos = <32>;
				qcom,cpr-speed-bins = <4>;
				qcom,cpr-speed-bin-corners = <25 21 25 25>;
				qcom,cpr-corners =
					/* Speed bin 0 */
					<25 25 25 25 25 25 25 25>,
@@ -1253,7 +1433,10 @@
					/* Speed bin 1 */
					<21 21 21 21 21 21 21 21>,

					/* Speed bin 0 */
					/* Speed bin 2 */
					<25 25 25 25 25 25 25 25>,

					/* Speed bin 3 */
					<25 25 25 25 25 25 25 25>;

				qcom,ldo-min-headroom-voltage = <150000>;
@@ -1269,6 +1452,9 @@
					<1 4 9 13 21>,

					/* Speed bin 2 */
					<1 4 9 13 25>,

					/* Speed bin 3 */
					<1 4 9 13 25>;

				qcom,cpr-voltage-ceiling =
@@ -1291,6 +1477,13 @@
					745000  745000  745000  745000  905000
					905000  905000  905000 1140000 1140000
				       1140000 1140000 1140000 1140000 1140000
				       1140000 1140000 1140000 1140000 1140000>,

				       /* Speed bin 3 */
				       <670000  670000  670000  670000  745000
					745000  745000  745000  745000  905000
					905000  905000  905000 1140000 1140000
				       1140000 1140000 1140000 1140000 1140000
				       1140000 1140000 1140000 1140000 1140000>;


@@ -1380,6 +1573,48 @@
					470000>,

				       /* Speed bin 2 */
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000>,
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000>,
				       <470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000>,
				       <470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000
					470000  470000  470000  470000  470000>,

				       /* Speed bin 3 */
				       <625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
					625000  625000  625000  625000  625000
@@ -1437,6 +1672,13 @@
					 80000>,

					/* Speed bin 2 */
					<50000   50000   50000   50000   80000
					 80000   80000   80000   80000   80000
					 80000   80000   80000   80000   80000
					 80000   80000   80000   80000   80000
					 80000   80000   80000   80000   80000>,

					/* Speed bin 3 */
					<50000   50000   50000   50000   80000
					 80000   80000   80000   80000   80000
					 80000   80000   80000   80000   80000
@@ -1473,6 +1715,17 @@
					1478400000 1555200000 1632000000
					1708800000 1785600000 1824000000
					1920000000 1996800000 2073600000
					2150400000>,

					/* Speed bin 3 */
					<307200000  403200000  480000000
					 556800000  652800000  729600000
					 806400000  883200000  940800000
					1036800000 1113600000 1190400000
					1248000000 1324800000 1401600000
					1478400000 1555200000 1632000000
					1708800000 1785600000 1824000000
					1920000000 1996800000 2073600000
					2150400000>;

				qcom,cpr-ro-scaling-factor =
@@ -1516,6 +1769,16 @@
					<35000     0 30000   15000  15000>,
					<35000     0 30000   15000  15000>,
					<35000     0 30000   15000  15000>,
					<35000     0 30000   15000  15000>,

					/* Speed bin 3 */
					<20000     0 15000 (-55000)     0>,
					<20000     0 15000 (-55000)     0>,
					<20000     0 15000       0      0>,
					<35000     0 30000   15000  15000>,
					<35000     0 30000   15000  15000>,
					<35000     0 30000   15000  15000>,
					<35000     0 30000   15000  15000>,
					<35000     0 30000   15000  15000>;

				qcom,cpr-closed-loop-voltage-fuse-adjustment =
@@ -1547,6 +1810,16 @@
					<    0     0     0        0     0>,
					<    0     0     0        0     0>,
					<    0     0     0        0     0>,
					<    0     0     0        0     0>,

					/* Speed bin 3 */
					<35000 35000 40000 (-30000) 40000>,
					<    0     0     0 (-70000)     0>,
					<    0     0     0        0     0>,
					<    0     0     0        0     0>,
					<    0     0     0        0     0>,
					<    0     0     0        0     0>,
					<    0     0     0        0     0>,
					<    0     0     0        0     0>;

				qcom,cpr-open-loop-voltage-adjustment =
@@ -1568,6 +1841,15 @@
					 (-28000)>,

					/* Speed bin 2 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-11000) (-12000) (-13000) (-14000)
					 (-15000) (-18000) (-21000) (-23000)
					 (-25000) (-25000) (-26000) (-26000)
					 (-27000) (-27000) (-28000) (-28000)
					 (-28000) (-29000) (-29000) (-30000)
					 (-30000)>,

					/* Speed bin 3 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-11000) (-12000) (-13000) (-14000)
					 (-15000) (-18000) (-21000) (-23000)
@@ -1586,6 +1868,10 @@
					 0 0 0 0 0>,

					/* Speed bin 2 */
					<0 0 0 0 (-50000) 0 0 0 0 0 0 0 0 0 0 0
					 0 0 0 0 0 0 0 0 0>,

					/* Speed bin 3 */
					<0 0 0 0 (-50000) 0 0 0 0 0 0 0 0 0 0 0
					 0 0 0 0 0 0 0 0 0>;

@@ -1608,6 +1894,15 @@
					 (-28000)>,

					/* Speed bin 2 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-11000) (-12000) (-13000) (-14000)
					 (-15000) (-18000) (-21000) (-23000)
					 (-25000) (-25000) (-26000) (-26000)
					 (-27000) (-27000) (-28000) (-28000)
					 (-28000) (-29000) (-29000) (-30000)
					 (-30000)>,

					/* Speed bin 3 */
					<(-15000) (-15000) (-15000) (-15000)
					 (-11000) (-12000) (-13000) (-14000)
					 (-15000) (-18000) (-21000) (-23000)
@@ -1621,7 +1916,7 @@
				qcom,cpr-scaled-open-loop-voltage-as-ceiling;

				qcom,cpr-aging-max-voltage-adjustment = <15000>;
				qcom,cpr-aging-ref-corner = <13 13 13>;
				qcom,cpr-aging-ref-corner = <13 13 13 13>;
				qcom,cpr-aging-ro-scaling-factor = <3200>;
				qcom,allow-aging-voltage-adjustment =
					/* Speed bin 0 */
@@ -1631,6 +1926,9 @@
					<0 0 0 1 1 1 1 1>,

					/* Speed bin 2 */
					<0 0 0 1 1 1 1 1>,

					/* Speed bin 3 */
					<0 0 0 1 1 1 1 1>;

				qcom,cpr-dynamic-floor-corner = <1>;
+154 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -90,6 +90,24 @@
		<  401800000  5 >,
		<  510000000  5 >,
		<  560000000  7 >;
	qcom,gfxfreq-speedbin3 =
		<          0  0  0 >,
		<  133000000  2  4 >,
		<  214000000  3  4 >,
		<  315000000  4  4 >,
		<  401800000  5  5 >,
		<  510000000  6  5 >,
		<  560000000  7  7 >,
		<  624000000  8  7 >;
	qcom,gfxfreq-mx-speedbin3 =
		<          0  0 >,
		<  133000000  4 >,
		<  214000000  4 >,
		<  315000000  4 >,
		<  401800000  5 >,
		<  510000000  5 >,
		<  560000000  7 >,
		<  624000000  7 >;
};

&gdsc_gpu_gx {
@@ -324,6 +342,79 @@

			};
		};

		qcom,gpu-pwrlevels-3 {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,speed-bin = <3>;

			qcom,initial-pwrlevel = <5>;

			qcom,gpu-pwrlevel@0 {
				reg = <0>;
				qcom,gpu-freq = <624000000>;
				qcom,bus-freq = <12>;
				qcom,bus-min = <11>;
				qcom,bus-max = <12>;
			};

			qcom,gpu-pwrlevel@1 {
				reg = <1>;
				qcom,gpu-freq = <560000000>;
				qcom,bus-freq = <11>;
				qcom,bus-min = <9>;
				qcom,bus-max = <12>;
			};

			qcom,gpu-pwrlevel@2 {
				reg = <2>;
				qcom,gpu-freq = <510000000>;
				qcom,bus-freq = <9>;
				qcom,bus-min = <8>;
				qcom,bus-max = <11>;
			};

			qcom,gpu-pwrlevel@3 {
				reg = <3>;
				qcom,gpu-freq = <401800000>;
				qcom,bus-freq = <8>;
				qcom,bus-min = <7>;
				qcom,bus-max = <9>;
			};

			qcom,gpu-pwrlevel@4 {
				reg = <4>;
				qcom,gpu-freq = <315000000>;
				qcom,bus-freq = <6>;
				qcom,bus-min = <5>;
				qcom,bus-max = <7>;
			};

			qcom,gpu-pwrlevel@5 {
				reg = <5>;
				qcom,gpu-freq = <214000000>;
				qcom,bus-freq = <4>;
				qcom,bus-min = <3>;
				qcom,bus-max = <5>;
			};

			qcom,gpu-pwrlevel@6 {
				reg = <6>;
				qcom,gpu-freq = <133000000>;
				qcom,bus-freq = <3>;
				qcom,bus-min = <2>;
				qcom,bus-max = <4>;
			};

			qcom,gpu-pwrlevel@7 {
				reg = <7>;
				qcom,gpu-freq = <27000000>;
				qcom,bus-freq = <0>;
				qcom,bus-min = <0>;
				qcom,bus-max = <0>;
			};
		};
	};
};

@@ -515,6 +606,24 @@
			< 1324800000 13 >,
			< 1401600000 14 >,
			< 1497600000 15 >;
		qcom,pwrcl-speedbin3-v0 =
			<          0  0 >,
			<  307200000  1 >,
			<  422400000  2 >,
			<  480000000  3 >,
			<  556800000  4 >,
			<  652800000  5 >,
			<  729600000  6 >,
			<  844800000  7 >,
			<  960000000  8 >,
			< 1036800000  9 >,
			< 1113600000 10 >,
			< 1190400000 11 >,
			< 1228800000 12 >,
			< 1324800000 13 >,
			< 1401600000 14 >,
			< 1478400000 15 >,
			< 1593600000 16 >;
		qcom,perfcl-speedbin0-v0 =
			<          0  0 >,
			<  307200000  1 >,
@@ -589,6 +698,29 @@
			< 1785600000 20 >,
			< 1804800000 21 >,
			< 1900800000 22 >;
		qcom,perfcl-speedbin3-v0 =
			<          0  0 >,
			<  307200000  1 >,
			<  403200000  2 >,
			<  480000000  3 >,
			<  556800000  4 >,
			<  652800000  5 >,
			<  729600000  6 >,
			<  806400000  7 >,
			<  883200000  8 >,
			<  940800000  9 >,
			< 1036800000 10 >,
			< 1113600000 11 >,
			< 1190400000 12 >,
			< 1248000000 13 >,
			< 1324800000 14 >,
			< 1401600000 15 >,
			< 1478400000 16 >,
			< 1555200000 17 >,
			< 1632000000 18 >,
			< 1708800000 19 >,
			< 1785600000 20 >,
			< 1804800000 21 >;
		qcom,cbf-speedbin0-v0 =
			<	   0  0 >,
			<  307200000  1 >,
@@ -644,6 +776,27 @@
			< 1190400000 13 >,
			< 1228800000 14 >,
			< 1305600000 15 >;
		qcom,cbf-speedbin3-v0 =
			<	   0  0 >,
			<  307200000  1 >,
			<  384000000  2 >,
			<  460800000  3 >,
			<  537600000  4 >,
			<  595200000  5 >,
			<  672000000  6 >,
			<  748800000  7 >,
			<  825600000  8 >,
			<  902400000  9 >,
			<  979200000 10 >,
			< 1056000000 11 >,
			< 1132800000 12 >,
			< 1190400000 13 >,
			< 1228800000 14 >,
			< 1305600000 15 >,
			< 1382400000 16 >,
			< 1459200000 17 >,
			< 1536000000 18 >,
			< 1593600000 19 >;
};

&msm_cpufreq {