Skip to content

Commit ae81b69

Browse files
tt-fustinibebarino
authored andcommitted
clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks
Add support for the AP sub-system clock controller in the T-Head TH1520. This include CPU, DPU, GMAC and TEE PLLs. Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf Co-developed-by: Yangtao Li <[email protected]> Signed-off-by: Yangtao Li <[email protected]> Co-developed-by: Jisheng Zhang <[email protected]> Signed-off-by: Jisheng Zhang <[email protected]> Link: https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/tree/main/docs Signed-off-by: Drew Fustini <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 1037885 commit ae81b69

File tree

6 files changed

+1106
-0
lines changed

6 files changed

+1106
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19324,6 +19324,7 @@ L: [email protected]
1932419324
S: Maintained
1932519325
F: Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml
1932619326
F: arch/riscv/boot/dts/thead/
19327+
F: drivers/clk/thead/clk-th1520-ap.c
1932719328
F: include/dt-bindings/clock/thead,th1520-clk-ap.h
1932819329

1932919330
RNBD BLOCK DRIVERS

drivers/clk/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ source "drivers/clk/starfive/Kconfig"
495495
source "drivers/clk/sunxi/Kconfig"
496496
source "drivers/clk/sunxi-ng/Kconfig"
497497
source "drivers/clk/tegra/Kconfig"
498+
source "drivers/clk/thead/Kconfig"
498499
source "drivers/clk/stm32/Kconfig"
499500
source "drivers/clk/ti/Kconfig"
500501
source "drivers/clk/uniphier/Kconfig"

drivers/clk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ obj-y += starfive/
127127
obj-$(CONFIG_ARCH_SUNXI) += sunxi/
128128
obj-y += sunxi-ng/
129129
obj-$(CONFIG_ARCH_TEGRA) += tegra/
130+
obj-$(CONFIG_ARCH_THEAD) += thead/
130131
obj-y += ti/
131132
obj-$(CONFIG_CLK_UNIPHIER) += uniphier/
132133
obj-$(CONFIG_ARCH_U8500) += ux500/

drivers/clk/thead/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#SPDX-License-Identifier: GPL-2.0
2+
3+
config CLK_THEAD_TH1520_AP
4+
bool "T-HEAD TH1520 AP clock support"
5+
depends on ARCH_THEAD || COMPILE_TEST
6+
default ARCH_THEAD
7+
select REGMAP_MMIO
8+
help
9+
Say yes here to support the AP sub system clock controller
10+
on the T-HEAD TH1520 SoC. This includes configuration of
11+
both CPU PLLs, both DPU PLLs as well as the GMAC, VIDEO,
12+
and TEE PLLs.

drivers/clk/thead/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_CLK_THEAD_TH1520_AP) += clk-th1520-ap.o

0 commit comments

Comments
 (0)