]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: allwinner: h616: add additional CPU OPPs for the H700
authorRyan Walklin <ryan@testtoast.com>
Fri, 7 Jun 2024 09:20:34 +0000 (21:20 +1200)
committerChen-Yu Tsai <wens@csie.org>
Sat, 22 Jun 2024 15:09:54 +0000 (23:09 +0800)
The H700 now shows stable operation with the 1.008, 1.032 and 1.512 GHz
DVFS operating points. The 1.5GHz OPP requires a VDD-CPU of 1.16V,
obtained from the vendor BSP. This voltage is slightly above the
recommended operating voltage for the H616 (H700 datasheet not publicly
available) but well within the absolute maximum of 1.3V.

Add the additional 1.032 GHz operating point to the H616 CPU-OPP table,
and enable the 1.008 and 1.512 points for the H700.

Signed-off-by: Ryan Walklin <ryan@testtoast.com>
Tested-by: Philippe Simons <simons.philippe@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20240607092140.33112-3-ryan@testtoast.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h616-cpu-opp.dtsi

index aca22a7f0191c27614ea6372cd636572837a204a..dd10aaf472b66883a10994b00ded6f1fdd4a65b5 100644 (file)
@@ -11,7 +11,7 @@
                        opp-hz = /bits/ 64 <480000000>;
                        opp-microvolt = <900000>;
                        clock-latency-ns = <244144>; /* 8 32k periods */
-                       opp-supported-hw = <0x1f>;
+                       opp-supported-hw = <0x3f>;
                };
 
                opp-600000000 {
@@ -25,7 +25,7 @@
                        opp-hz = /bits/ 64 <720000000>;
                        opp-microvolt = <900000>;
                        clock-latency-ns = <244144>; /* 8 32k periods */
-                       opp-supported-hw = <0x0d>;
+                       opp-supported-hw = <0x2d>;
                };
 
                opp-792000000 {
                        opp-microvolt-speed2 = <950000>;
                        opp-microvolt-speed3 = <950000>;
                        opp-microvolt-speed4 = <1020000>;
+                       opp-microvolt-speed5 = <900000>;
                        clock-latency-ns = <244144>; /* 8 32k periods */
-                       opp-supported-hw = <0x1f>;
+                       opp-supported-hw = <0x3f>;
+               };
+
+               opp-1032000000 {
+                       opp-hz = /bits/ 64 <1032000000>;
+                       opp-microvolt = <900000>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
+                       opp-supported-hw = <0x20>;
                };
 
                opp-1104000000 {
@@ -59,8 +67,9 @@
                        opp-microvolt-speed0 = <1000000>;
                        opp-microvolt-speed2 = <1000000>;
                        opp-microvolt-speed3 = <1000000>;
+                       opp-microvolt-speed5 = <950000>;
                        clock-latency-ns = <244144>; /* 8 32k periods */
-                       opp-supported-hw = <0x0d>;
+                       opp-supported-hw = <0x2d>;
                };
 
                opp-1200000000 {
@@ -70,8 +79,9 @@
                        opp-microvolt-speed2 = <1050000>;
                        opp-microvolt-speed3 = <1050000>;
                        opp-microvolt-speed4 = <1100000>;
+                       opp-microvolt-speed5 = <1020000>;
                        clock-latency-ns = <244144>; /* 8 32k periods */
-                       opp-supported-hw = <0x1f>;
+                       opp-supported-hw = <0x3f>;
                };
 
                opp-1320000000 {
                        opp-hz = /bits/ 64 <1416000000>;
                        opp-microvolt = <1100000>;
                        clock-latency-ns = <244144>; /* 8 32k periods */
-                       opp-supported-hw = <0x0d>;
+                       opp-supported-hw = <0x2d>;
                };
 
                opp-1512000000 {
                        opp-hz = /bits/ 64 <1512000000>;
                        opp-microvolt-speed1 = <1100000>;
                        opp-microvolt-speed3 = <1100000>;
+                       opp-microvolt-speed5 = <1160000>;
                        clock-latency-ns = <244144>; /* 8 32k periods */
-                       opp-supported-hw = <0x0a>;
+                       opp-supported-hw = <0x2a>;
                };
        };
 };