]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: allwinner: rg35xx: Enable DVFS CPU frequency scaling
authorRyan Walklin <ryan@testtoast.com>
Fri, 7 Jun 2024 09:20:35 +0000 (21:20 +1200)
committerChen-Yu Tsai <wens@csie.org>
Sat, 22 Jun 2024 15:10:08 +0000 (23:10 +0800)
The Anbernic RG35XX device variants (-2024, -H, -Plus and -SP) are the
only currently known devices to have an Allwinner H700 SoC. The closely
related RG28XX also has the H700 but a mainline DT for this device has
not yet been submitted.

Include the H616 CPU OPP table in the base device DTS, and increase the
DCDC1 regulator (vdd-cpu) upper voltage range to 1.16V, allowing the
CPU to reach 1.5GHz.

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-4-ryan@testtoast.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts

index ee30584b6ad7060df7c78cd9c8bd05a912e10ae6..afb49e65859f9894f0873f15ea10db8a09e3ab48 100644 (file)
@@ -6,7 +6,7 @@
 /dts-v1/;
 
 #include "sun50i-h616.dtsi"
-
+#include "sun50i-h616-cpu-opp.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/linux-event-codes.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
                        reg_dcdc1: dcdc1 {
                                regulator-always-on;
                                regulator-min-microvolt = <900000>;
-                               regulator-max-microvolt = <1100000>;
+                               regulator-max-microvolt = <1160000>;
                                regulator-name = "vdd-cpu";
                        };