arm64: dts: allwinner: h6: Enable GPU and CPU DVFS on more boards
Subsystems (2)
Jernej Skrabec
maintainerv2 cover arm64: dts: allwinner: h6: Enable GPU and CPU DVFS on more boards
Most H6 boards don't use the GPU OPP table, and the Orange Pi One Plus and Lite2 lack CPU DVFS as well, so their GPU and CPU run at a fixed clock rate. This series enables both.
Changes in v2:
- new patch 1: add regulator-ramp-delay to vdd-cpu and vdd-gpu on the Orange Pi One Plus and Lite2, like on the other AXP805-based H6 boards
Link to v1: https://lore.kernel.org/linux-sunxi/[email protected]/
Jernej Skrabec (3):
arm64: dts: allwinner: h6: orangepi: Add regulator ramp delays
arm64: dts: allwinner: h6: Add GPU OPP table to all boards
arm64: dts: allwinner: h6: orangepi: Enable CPU frequency scaling
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 1 + arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 8 ++++++++ arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 1 + arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi | 1 + 4 files changed, 11 insertions(+)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
Signature · 1 line
2.43.0
Jernej Skrabec
maintainerPATCH v2 1/3 arm64: dts: allwinner: h6: orangepi: Add regulator ramp delays
The vdd-cpu and vdd-gpu regulators on the Orange Pi One Plus and Lite2 have no ramp delay, and the AXP805 driver provides none either. Once DVFS is enabled, the OPP core would raise the clock rate right after setting a higher voltage, before the regulator output has settled.
Add the same 2500 uV/us ramp delay that the other AXP805-based H6 boards use.
--- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +2 -0
@@ -202,6 +202,7 @@ reg_dcdca: dcdca { regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; + regulator-ramp-delay = <2500>; regulator-name = "vdd-cpu"; };
@@ -209,6 +210,7 @@ reg_dcdcc: dcdcc { regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; + regulator-ramp-delay = <2500>; regulator-name = "vdd-gpu"; };
Signature · 1 line
2.43.0
Jernej Skrabec
maintainerPATCH v2 2/3 arm64: dts: allwinner: h6: Add GPU OPP table to all boards
In reply to Jernej SkrabecOnly the Beelink GS1 and TaiQiCat A01 include the H6 GPU OPP table, so the GPU on all other H6 boards runs at a fixed clock rate. Include it on the remaining boards, so devfreq can scale the GPU clock for either better performance or lower power consumption.
The table also works with a fixed GPU supply, as on Tanix boards.
--- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 1 + arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 1 + arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 1 + arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi | 1 + 4 files changed, 4 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +1 -0
@@ -5,6 +5,7 @@ #include "sun50i-h6.dtsi" #include "sun50i-h6-cpu-opp.dtsi" +#include "sun50i-h6-gpu-opp.dtsi" #include <dt-bindings/gpio/gpio.h>
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +1 -0
@@ -5,6 +5,7 @@ /dts-v1/; #include "sun50i-h6.dtsi" +#include "sun50i-h6-gpu-opp.dtsi" #include <dt-bindings/gpio/gpio.h>
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +1 -0
@@ -5,6 +5,7 @@ #include "sun50i-h6.dtsi" #include "sun50i-h6-cpu-opp.dtsi" +#include "sun50i-h6-gpu-opp.dtsi" #include <dt-bindings/gpio/gpio.h>
arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi +1 -0
@@ -5,6 +5,7 @@ #include "sun50i-h6.dtsi" #include "sun50i-h6-cpu-opp.dtsi" +#include "sun50i-h6-gpu-opp.dtsi" #include <dt-bindings/gpio/gpio.h>
Signature · 1 line
2.43.0
Jernej Skrabec
maintainerPATCH v2 3/3 arm64: dts: allwinner: h6: orangepi: Enable CPU frequency scaling
In reply to Jernej SkrabecThe Orange Pi One Plus and Lite2 lack the CPU OPP table and CPU supply, so the CPU never scales its frequency. Add both, like on Orange Pi 3. OPPs above the regulator constraints stay unused.
--- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +5 -0
@@ -5,6 +5,7 @@ /dts-v1/; #include "sun50i-h6.dtsi" +#include "sun50i-h6-cpu-opp.dtsi" #include "sun50i-h6-gpu-opp.dtsi" #include <dt-bindings/gpio/gpio.h>
@@ -65,6 +66,10 @@ reg_vcc5v: vcc5v { }; }; +&cpu0 { + cpu-supply = <®_dcdca>; +}; + &de { status = "okay"; };
Signature · 1 line
2.43.0
Chen-Yu Tsai
maintainerRe: [PATCH v2 3/3] arm64: dts: allwinner: h6: orangepi: Enable CPU frequency scaling
Quoted 4 lines · Jernej Skrabec
The Orange Pi One Plus and Lite2 lack the CPU OPP table and CPU supply, so the CPU never scales its frequency. Add both, like on Orange Pi 3. OPPs above the regulator constraints stay unused.
My review agent noted that some of the other boards raised the constraints when CPU DVFS was enabled. Do you think it's reasonable to do the same for the OrangePi? Or do you want to be more conservative?
Note that I already applied this series.
Quoted 31 lines
Signed-off-by Jernej Skrabec <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +5
-1@@ -5,6 +5,7 @@ /dts-v1/; #include "sun50i-h6.dtsi" +#include "sun50i-h6-cpu-opp.dtsi" #include "sun50i-h6-gpu-opp.dtsi" #include <dt-bindings/gpio/gpio.h>@@ -65,6 +66,10 @@ reg_vcc5v: vcc5v { }; }; +&cpu0 { + cpu-supply = <®_dcdca>; +}; + &de { status = "okay"; }; --2.43.0
Jernej Škrabec
maintainerRe: [PATCH v2 3/3] arm64: dts: allwinner: h6: orangepi: Enable CPU frequency scaling
Dne nedelja, 15. november 2026 ob 16:09:23 Srednjeevropski standardni čas je Chen-Yu Tsai napisal(a):
Quoted 9 lines · Jernej Skrabec
Quoted 4 lines
The Orange Pi One Plus and Lite2 lack the CPU OPP table and CPU supply, so the CPU never scales its frequency. Add both, like on Orange Pi 3. OPPs above the regulator constraints stay unused.
My review agent noted that some of the other boards raised the constraints when CPU DVFS was enabled. Do you think it's reasonable to do the same for the OrangePi? Or do you want to be more conservative?
Yes, I'll prepare patches for raising constraints.
Best regards,
Jernej
Quoted 35 lines
Note that I already applied this series.
Quoted 31 lines
Signed-off-by Jernej Skrabec <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +5
-1@@ -5,6 +5,7 @@ /dts-v1/; #include "sun50i-h6.dtsi" +#include "sun50i-h6-cpu-opp.dtsi" #include "sun50i-h6-gpu-opp.dtsi" #include <dt-bindings/gpio/gpio.h>@@ -65,6 +66,10 @@ reg_vcc5v: vcc5v { }; }; +&cpu0 { + cpu-supply = <®_dcdca>; +}; + &de { status = "okay"; }; --2.43.0
Quoted 9 lines · Jernej Skrabec
Most H6 boards don't use the GPU OPP table, and the Orange Pi One Plus and Lite2 lack CPU DVFS as well, so their GPU and CPU run at a fixed clock rate. This series enables both.
Changes in v2:
- new patch 1: add regulator-ramp-delay to vdd-cpu and vdd-gpu on the Orange Pi One Plus and Lite2, like on the other AXP805-based H6 boards[...]
Applied to sunxi/dt-for-7.5 in sunxi, thanks!
[1/3] arm64: dts: allwinner: h6: orangepi: Add regulator ramp delays
https://git.kernel.org/sunxi/linux/c/6442683b687c [2/3] arm64: dts: allwinner: h6: Add GPU OPP table to all boards https://git.kernel.org/sunxi/linux/c/348a4f82f13b [3/3] arm64: dts: allwinner: h6: orangepi: Enable CPU frequency scaling https://git.kernel.org/sunxi/linux/c/6527dd6be62e
Best regards,
Signature · 1 line
Chen-Yu Tsai <[email protected]>