From 1603d09964d14ccdb3f2ab7592e3fc85d36b8500 Mon Sep 17 00:00:00 2001
From: Ansuel Smith <ansuelsmth@gmail.com>
Date: Tue, 23 Mar 2021 17:41:11 +0100
Subject: ipq806x: apply correct voltage tolerance

Voltage tolerance was 5%, not 5000. Update min and max voltage of the target opp.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
---
 .../files/arch/arm/boot/dts/qcom-ipq8062.dtsi      | 16 ++--
 .../files/arch/arm/boot/dts/qcom-ipq8065.dtsi      | 86 +++++++++++-----------
 2 files changed, 51 insertions(+), 51 deletions(-)

(limited to 'target/linux/ipq806x/files/arch')

diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8062.dtsi b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8062.dtsi
index 09aa081737..4b007130aa 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8062.dtsi
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8062.dtsi
@@ -46,29 +46,29 @@
 	/delete-node/opp-1400000000;
 
 	opp-384000000 {
-		opp-microvolt-speed0-pvs0-v0 = <945000 950000 955000>;
-		opp-microvolt-speed0-pvs1-v0 = <985000 900000 905000>;
-		opp-microvolt-speed0-pvs2-v0 = <845000 850000 855000>;
-		opp-microvolt-speed0-pvs3-v0 = <795000 800000 805000>;
+		opp-microvolt-speed0-pvs0-v0 = <902500 950000 997500>;
+		opp-microvolt-speed0-pvs1-v0 = <855000 900000 945000>;
+		opp-microvolt-speed0-pvs2-v0 = <807500 850000 892500>;
+		opp-microvolt-speed0-pvs3-v0 = <760000 800000 840000>;
 	};
 
 	opp-600000000 {
-		opp-microvolt-speed0-pvs0-v0 = <995000 1000000 1005000>;
+		opp-microvolt-speed0-pvs0-v0 = <950000 1000000 1050000>;
 		opp-microvolt-speed0-pvs1-v0 = <945000  950000  955000>;
 		opp-microvolt-speed0-pvs2-v0 = <895000  900000  905000>;
 		opp-microvolt-speed0-pvs3-v0 = <845000  850000  855000>;
 	};
 
 	opp-800000000 {
-		opp-microvolt-speed0-pvs0-v0 = <1045000 1050000 1055000>;
+		opp-microvolt-speed0-pvs0-v0 = <997500 1050000 1102500>;
 		opp-microvolt-speed0-pvs1-v0 = < 995000 1000000 1005000>;
 		opp-microvolt-speed0-pvs2-v0 = < 945000  950000  955000>;
 		opp-microvolt-speed0-pvs3-v0 = < 895000  900000  905000>;
 	};
 
 	opp-1000000000 {
-		opp-microvolt-speed0-pvs0-v0 = <1095000 1100000 1105000>;
-		opp-microvolt-speed0-pvs1-v0 = <1045000 1050000 1055000>;
+		opp-microvolt-speed0-pvs0-v0 = <1045000 1100000 1155000>;
+		opp-microvolt-speed0-pvs1-v0 = <997500 1050000 1102500>;
 		opp-microvolt-speed0-pvs2-v0 = < 995000 1000000 1005000>;
 		opp-microvolt-speed0-pvs3-v0 = < 945000  950000  955000>;
 	};
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi
index f215181470..9c3a24f600 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi
@@ -86,66 +86,66 @@
 
 	/delete-node/opp-1200000000;
 
-		opp-384000000 {
-		opp-microvolt-speed0-pvs0-v0 = <970000 975000 980000>;
-		opp-microvolt-speed0-pvs1-v0 = <945000 950000 955000>;
-		opp-microvolt-speed0-pvs2-v0 = <920000 925000 930000>;
-		opp-microvolt-speed0-pvs3-v0 = <985000 900000 905000>;
-		opp-microvolt-speed0-pvs4-v0 = <870000 875000 880000>;
-		opp-microvolt-speed0-pvs5-v0 = <820000 825000 830000>;
-		opp-microvolt-speed0-pvs6-v0 = <770000 775000 780000>;
+	opp-384000000 {
+		opp-microvolt-speed0-pvs0-v0 = <926250 975000 1023750>;
+		opp-microvolt-speed0-pvs1-v0 = <902500 950000 997500>;
+		opp-microvolt-speed0-pvs2-v0 = <878750 925000 971250>;
+		opp-microvolt-speed0-pvs3-v0 = <855000 900000 945000>;
+		opp-microvolt-speed0-pvs4-v0 = <831250 875000 918750>;
+		opp-microvolt-speed0-pvs5-v0 = <783750 825000 866250>;
+		opp-microvolt-speed0-pvs6-v0 = <736250 775000 813750>;
 	};
 
 	opp-600000000 {
-		opp-microvolt-speed0-pvs0-v0 = <995000 1000000 1005000>;
-		opp-microvolt-speed0-pvs1-v0 = <970000 975000 980000>;
-		opp-microvolt-speed0-pvs2-v0 = <945000 950000 955000>;
-		opp-microvolt-speed0-pvs3-v0 = <920000 925000 930000>;
-		opp-microvolt-speed0-pvs4-v0 = <895000 900000 905000>;
-		opp-microvolt-speed0-pvs5-v0 = <845000 850000 855000>;
-		opp-microvolt-speed0-pvs6-v0 = <795000 800000 805000>;
+		opp-microvolt-speed0-pvs0-v0 = <950000 1000000 1050000>;
+		opp-microvolt-speed0-pvs1-v0 = <926250 975000 1023750>;
+		opp-microvolt-speed0-pvs2-v0 = <902500 950000 997500>;
+		opp-microvolt-speed0-pvs3-v0 = <878750 925000 971250>;
+		opp-microvolt-speed0-pvs4-v0 = <855000 900000 945000>;
+		opp-microvolt-speed0-pvs5-v0 = <807500 850000 892500>;
+		opp-microvolt-speed0-pvs6-v0 = <760000 800000 840000>;
 	};
 
 	opp-800000000 {
-		opp-microvolt-speed0-pvs0-v0 = <1045000 1050000 1055000>;
-		opp-microvolt-speed0-pvs1-v0 = <1020000 1025000 1030000>;
-		opp-microvolt-speed0-pvs2-v0 = <995000 1000000 1005000>;
-		opp-microvolt-speed0-pvs3-v0 = <970000 975000 980000>;
-		opp-microvolt-speed0-pvs4-v0 = <945000 950000 955000>;
-		opp-microvolt-speed0-pvs5-v0 = <895000 900000 905000>;
-		opp-microvolt-speed0-pvs6-v0 = <845000 850000 855000>;
+		opp-microvolt-speed0-pvs0-v0 = <997500 1050000 1102500>;
+		opp-microvolt-speed0-pvs1-v0 = <973750 1025000 1076250>;
+		opp-microvolt-speed0-pvs2-v0 = <950000 1000000 1050000>;
+		opp-microvolt-speed0-pvs3-v0 = <926250 975000 1023750>;
+		opp-microvolt-speed0-pvs4-v0 = <902500 950000 997500>;
+		opp-microvolt-speed0-pvs5-v0 = <855000 900000 945000>;
+		opp-microvolt-speed0-pvs6-v0 = <807500 850000 892500>;
 	};
 
 	opp-1000000000 {
-		opp-microvolt-speed0-pvs0-v0 = <1095000 1100000 1105000>;
-		opp-microvolt-speed0-pvs1-v0 = <1070000 1075000 1080000>;
-		opp-microvolt-speed0-pvs2-v0 = <1045000 1050000 1055000>;
-		opp-microvolt-speed0-pvs3-v0 = <1020000 1025000 1030000>;
-		opp-microvolt-speed0-pvs4-v0 = <995000 1000000 1005000>;
-		opp-microvolt-speed0-pvs5-v0 = <945000 950000 955000>;
-		opp-microvolt-speed0-pvs6-v0 = <895000 900000 905000>;
+		opp-microvolt-speed0-pvs0-v0 = <1045000 1100000 1155000>;
+		opp-microvolt-speed0-pvs1-v0 = <1021250 1075000 1128750>;
+		opp-microvolt-speed0-pvs2-v0 = <997500 1050000 1102500>;
+		opp-microvolt-speed0-pvs3-v0 = <973750 1025000 1076250>;
+		opp-microvolt-speed0-pvs4-v0 = <950000 1000000 1050000>;
+		opp-microvolt-speed0-pvs5-v0 = <902500 950000 997500>;
+		opp-microvolt-speed0-pvs6-v0 = <855000 900000 945000>;
 	};
 
 	opp-1400000000 {
-		opp-microvolt-speed0-pvs0-v0 = <1170000 1175000 1180000>;
-		opp-microvolt-speed0-pvs1-v0 = <1145000 1150000 1155000>;
-		opp-microvolt-speed0-pvs2-v0 = <1120000 1125000 1130000>;
-		opp-microvolt-speed0-pvs3-v0 = <1095000 1100000 1105000>;
-		opp-microvolt-speed0-pvs4-v0 = <1070000 1075000 1080000>;
-		opp-microvolt-speed0-pvs5-v0 = <1020000 1025000 1030000>;
-		opp-microvolt-speed0-pvs6-v0 = <970000 975000 980000>;
+		opp-microvolt-speed0-pvs0-v0 = <1116250 1175000 1233750>;
+		opp-microvolt-speed0-pvs1-v0 = <1092500 1150000 1207500>;
+		opp-microvolt-speed0-pvs2-v0 = <1068750 1125000 1181250>;
+		opp-microvolt-speed0-pvs3-v0 = <1045000 1100000 1155000>;
+		opp-microvolt-speed0-pvs4-v0 = <1021250 1075000 1128750>;
+		opp-microvolt-speed0-pvs5-v0 = <973750 1025000 1076250>;
+		opp-microvolt-speed0-pvs6-v0 = <926250 975000 1023750>;
 		opp-level = <1>;
 	};
 
 	opp-1725000000 {
 		opp-hz = /bits/ 64 <1725000000>;
-		opp-microvolt-speed0-pvs0-v0 = <1257500 1262500 1267500>;
-		opp-microvolt-speed0-pvs1-v0 = <1220000 1225000 1230000>;
-		opp-microvolt-speed0-pvs2-v0 = <1195000 1200000 1205000>;
-		opp-microvolt-speed0-pvs3-v0 = <1170000 1175000 1180000>;
-		opp-microvolt-speed0-pvs4-v0 = <1145000 1150000 1155000>;
-		opp-microvolt-speed0-pvs5-v0 = <1095000 1100000 1105000>;
-		opp-microvolt-speed0-pvs6-v0 = <1045000 1050000 1055000>;
+		opp-microvolt-speed0-pvs0-v0 = <1199375 1262500 1325625>;
+		opp-microvolt-speed0-pvs1-v0 = <1163750 1225000 1286250>;
+		opp-microvolt-speed0-pvs2-v0 = <1140000 1200000 1260000>;
+		opp-microvolt-speed0-pvs3-v0 = <1116250 1175000 1233750>;
+		opp-microvolt-speed0-pvs4-v0 = <1092500 1150000 1207500>;
+		opp-microvolt-speed0-pvs5-v0 = <1045000 1100000 1155000>;
+		opp-microvolt-speed0-pvs6-v0 = <997500 1050000 1102500>;
 		opp-supported-hw = <0x1>;
 		clock-latency-ns = <100000>;
 		opp-level = <2>;
-- 
cgit v1.2.3