Skip to content

Commit 7cae1e2

Browse files
Andre-ARMwens
authored andcommitted
clk: sunxi-ng: Add support for the A523/T527 CCU PLLs
Add the PLL clocks of the main CCU of the Allwinner A523 and T527 SoCs. The clocks were modelled after the A523 and T527 manual, and double checked by writing all 1's into the respective register, to spot all implemented bits. The PLL and mod clocks for the two CPU clusters and the DSU are part of a separate CCU, also most audio clocks are collected in a DSP CCU, so both of these clock groups are missing from this driver. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://patch.msgid.link/20250307002628.10684-6-andre.przywara@arm.com Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent 52dbf84 commit 7cae1e2

File tree

4 files changed

+502
-0
lines changed

4 files changed

+502
-0
lines changed

drivers/clk/sunxi-ng/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ config SUN50I_H6_R_CCU
5252
default y
5353
depends on ARM64 || COMPILE_TEST
5454

55+
config SUN55I_A523_CCU
56+
tristate "Support for the Allwinner A523/T527 CCU"
57+
default y
58+
depends on ARM64 || COMPILE_TEST
59+
5560
config SUN4I_A10_CCU
5661
tristate "Support for the Allwinner A10/A20 CCU"
5762
default y

drivers/clk/sunxi-ng/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ obj-$(CONFIG_SUN50I_A100_R_CCU) += sun50i-a100-r-ccu.o
3333
obj-$(CONFIG_SUN50I_H6_CCU) += sun50i-h6-ccu.o
3434
obj-$(CONFIG_SUN50I_H6_R_CCU) += sun50i-h6-r-ccu.o
3535
obj-$(CONFIG_SUN50I_H616_CCU) += sun50i-h616-ccu.o
36+
obj-$(CONFIG_SUN55I_A523_CCU) += sun55i-a523-ccu.o
3637
obj-$(CONFIG_SUN4I_A10_CCU) += sun4i-a10-ccu.o
3738
obj-$(CONFIG_SUN5I_CCU) += sun5i-ccu.o
3839
obj-$(CONFIG_SUN6I_A31_CCU) += sun6i-a31-ccu.o
@@ -58,6 +59,7 @@ sun50i-a100-r-ccu-y += ccu-sun50i-a100-r.o
5859
sun50i-h6-ccu-y += ccu-sun50i-h6.o
5960
sun50i-h6-r-ccu-y += ccu-sun50i-h6-r.o
6061
sun50i-h616-ccu-y += ccu-sun50i-h616.o
62+
sun55i-a523-ccu-y += ccu-sun55i-a523.o
6163
sun4i-a10-ccu-y += ccu-sun4i-a10.o
6264
sun5i-ccu-y += ccu-sun5i.o
6365
sun6i-a31-ccu-y += ccu-sun6i-a31.o

0 commit comments

Comments
 (0)