From 2c47f7b16df36eafa8d3a56070d2081a274aac94 Mon Sep 17 00:00:00 2001 From: Yao Zi Date: Wed, 28 Oct 2026 11:03:01 +0000 Subject: [PATCH 1/2] clk: sunxi-ng: sun60i: Propagate GPU core rate changes Propagate GPU core rate changes up to the GPU PLL, so the PLL could be correctly re-clocked on DVFS to achieve a precise rate. Signed-off-by: Yao Zi --- drivers/clk/sunxi-ng/ccu-sun60i-a733.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c index 8de32b1db11359..9df700387f0cce 100644 --- a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c +++ b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c @@ -1013,7 +1013,9 @@ static struct ccu_div gpu0_clk = { .features = CCU_FEATURE_KEY_FIELD, .hw.init = CLK_HW_INIT_PARENTS("gpu0", gpu0_parents, &ccu_div_ops, - CLK_OPS_PARENT_ENABLE | CLK_SET_RATE_NO_REPARENT), + CLK_OPS_PARENT_ENABLE | + CLK_SET_RATE_NO_REPARENT | + CLK_SET_RATE_PARENT), }, }; From 68acd7623ed3d9036f1c222719f8e6e7a844a698 Mon Sep 17 00:00:00 2001 From: Yao Zi Date: Wed, 28 Oct 2026 11:04:31 +0000 Subject: [PATCH 2/2] arm64: dts: allwinner: Scale GPU down to 600MHz on Radxa A7A Mainline PowerVR drivers don't currently support DVFS, and the default GPU frequency, 800MHz, is too high for the default VDD-GPU voltage, 800mV. Assign 600MHz to the GPU core clock to avoid stability issues. Signed-off-by: Yao Zi --- arch/arm64/boot/dts/allwinner/sun60i-a733-radxa-a7a.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-radxa-a7a.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-radxa-a7a.dts index 5ba74d5dd7484c..7a4a525003560b 100644 --- a/arch/arm64/boot/dts/allwinner/sun60i-a733-radxa-a7a.dts +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-radxa-a7a.dts @@ -216,5 +216,11 @@ }; &gpu { + /* + * VDD-GPU (DCDC4 of AXP318W) defaults to 800mV, which only allows the + * GPU operate on only up 600MHz. + */ + assigned-clocks = <&ccu CLK_GPU0>; + assigned-clock-rates = <600000000>; status = "okay"; };