]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: sun55i: a523: Assign standard clock rates to PRCM bus clocks
authorChen-Yu Tsai <wens@csie.org>
Sat, 13 Sep 2025 10:16:00 +0000 (18:16 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sun, 14 Sep 2025 16:03:02 +0000 (00:03 +0800)
At least in the initial version of U-boot support landed upstream, the
PRCM bus clocks were not configured, and left at their reset default 24
MHz clock rate. This is quite slow for the peripherals on them.

The recommended rates from the manual are:

- AHBS: 200 MHz
- APBS0: 100 MHz
- APBS1: 24 MHz

Since 24 MHz is the hardware default, just assign rates for the first two.

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250913101600.3932762-1-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi

index d00da1cd744e96257e0021355fc3821aae2ea721..7b36c47a3a13991c516b97827e49ec940f01975c 100644 (file)
                                      "pll-audio";
                        #clock-cells = <1>;
                        #reset-cells = <1>;
+                       assigned-clocks = <&r_ccu CLK_R_AHB>, <&r_ccu CLK_R_APB0>;
+                       assigned-clock-rates = <200000000>, <100000000>;
                };
 
                nmi_intc: interrupt-controller@7010320 {