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 <frank.li@vivo.com> Signed-off-by: Yangtao Li <frank.li@vivo.com> Co-developed-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Link: https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/tree/main/docs Signed-off-by: Drew Fustini <dfustini@tenstorrent.com> Link: https://lore.kernel.org/r/20240711-th1520-clk-v3-2-6ff17bb318fb@tenstorrent.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 1037885 commit ae81b69

6 files changed

Lines changed: 1106 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19324,6 +19324,7 @@ L: linux-riscv@lists.infradead.org
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)