Finley Xiao
f863d4cc79
clk: rockchip: Add clock controller for the RK3562
...
Add the clock tree definition for the new RK3562 SoC.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Signed-off-by: Kever Yang <kever.yang@rock-chips.com >
Link: https://lore.kernel.org/r/20250227105916.2340856-3-kever.yang@rock-chips.com
[dropped non-working module code, cleaned up init a bit to address
build failure reported from kernel test robot
Reported-by: kernel test robot <lkp@intel.com >
Closes: https://lore.kernel.org/oe-kbuild-all/202503021302.FjsycBI2-lkp@intel.com/ ]
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2025-03-02 17:51:51 +01:00
Yao Zi
5d0eb375e6
clk: rockchip: Add clock controller driver for RK3528 SoC
...
Add clock tree definition for RK3528. Similar to previous Rockchip
SoCs, clock controller of RK3528 is combined with the reset controller.
We omit the reset part for now since it's hard to test it without
support for other basic peripherals.
Signed-off-by: Yao Zi <ziyao@disroot.org >
Link: https://lore.kernel.org/r/20250217061142.38480-8-ziyao@disroot.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2025-02-26 18:04:29 +01:00
Elaine Zhang
cc40f5baa9
clk: rockchip: Add clock controller for the RK3576
...
Add the clock and reset tree definitions for the new RK3576
SoC.
As opposed to the other rockchip CRU drivers, the GRF node is looked up
via compatible instead of a phandle, which simplifies the device tree
bindings.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Signed-off-by: YouMin Chen <cym@rock-chips.com >
Signed-off-by: Liang Chen <cl@rock-chips.com >
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com >
Reviewed-by: Elaine Zhang <zhangqing@rock-chips.com >
Tested-by: Shawn Lin <shawn.lin@rock-chips.com >
Acked-by: Dragan Simic <dsimic@manjaro.org >
Link: https://lore.kernel.org/r/0102019199a7781a-888440f0-a3f7-4a7d-a831-491260cbdfe7-000000@eu-west-1.amazonses.com
[dropped additional blank line at EOF in rst-rk3576.c
dropped the whole (non-)working as module part]
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2024-08-29 11:13:33 +02:00
Elaine Zhang
f1c506d152
clk: rockchip: add clock controller for the RK3588
...
Add full clock controller support RK3588.
[rebase, integrate fixes from Wyon and Finley, add missing frequencies
to PLL lookup table, update commit message, add GATE_LINK clocks which
downstream handles in its own driver with one DT node per clock]
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com >
Link: https://lore.kernel.org/r/20221018151407.63395-10-sebastian.reichel@collabora.com
[dropped module stuff after talking to Sebastian]
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2022-11-15 11:37:41 +01:00
Jagan Teki
2408ab5aa8
clk: rockchip: Add clock controller support for RV1126 SoC
...
Clock & Reset Unit (CRU) in RV1126 support clocks for CRU
and CRU_PMU blocks.
This patch is trying to add minimal Clock-Architecture Diagram's
inferred from [1] authored by Finley Xiao.
[1] https://github.com/rockchip-linux/kernel/blob/develop-4.19/drivers/clk/rockchip/clk-rv1126.c
Cc: linux-clk@vger.kernel.org
Cc: Michael Turquette <mturquette@baylibre.com >
Cc: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Signed-off-by: Jagan Teki <jagan@edgeble.ai >
Link: https://lore.kernel.org/r/20220915163947.1922183-5-jagan@edgeble.ai
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2022-09-23 11:15:30 +02:00
Heiko Stuebner
9af0cbeb47
clk: rockchip: drop module parts from rk3399 and rk3568 drivers
...
Both of these drivers were converted to real drivers and got a tristate
build option. But them being builtin_platform_drivers, they only ever
should be build-in - as the name suggests.
So adapt the Kconfig symbol and drop the MODULE_* parts from the drivers.
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Link: https://lore.kernel.org/r/20211027132616.1039814-3-heiko@sntech.de
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Stephen Boyd <sboyd@kernel.org >
2021-11-02 17:59:00 -07:00
Heiko Stuebner
e8c51b90f2
clk: rockchip: drop parenthesis from ARM || COMPILE_TEST depends
...
As suggested by Stephen in the series adding the rk3568 clock controller
the depends works just as well without the parenthesis around the depends.
So to make everything look the same, drop them from existing entries too.
Suggested-by: Stephen Boyd <sboyd@kernel.org >
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Link: https://lore.kernel.org/r/20210315112502.343699-1-heiko@sntech.de
2021-03-21 11:13:30 +01:00
Elaine Zhang
cf911d89c4
clk: rockchip: add clock controller for rk3568
...
Add the clock tree definition for the new rk3568 SoC.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Reviewed-by: Kever Yang <kever.yang@rock-chips.com >
Acked-by: Stephen Boyd <sboyd@kernel.org >
Link: https://lore.kernel.org/r/20210315085608.16010-5-zhangqing@rock-chips.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2021-03-21 11:10:59 +01:00
Robin Murphy
6e0781e092
clk: rockchip: Add appropriate arch dependencies
...
There's no point offering support for 32-bit platforms to users
configuring a 64-bit kernel - and vice-versa - unless they are
explicitly interested in compile-testing.
Signed-off-by: Robin Murphy <robin.murphy@arm.com >
Link: https://lore.kernel.org/r/72abb0f794b8ed77e274e8ee21c22e0bd3223dfd.1603710913.git.robin.murphy@arm.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2020-10-26 12:24:56 +01:00
Elaine Zhang
70d839e276
clk: rockchip: rk3399: Support module build
...
support CLK_OF_DECLARE and builtin_platform_driver_probe
double clk init method.
add module author, description and license to support building
Soc Rk3399 clock driver as module.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Reviewed-by: Kever Yang <kever.yang@rock-chips.com >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Link: https://lore.kernel.org/r/20200914022316.24045-1-zhangqing@rock-chips.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2020-09-22 15:16:54 +02:00
Elaine Zhang
4d98ed1e12
clk: rockchip: fix the clk config to support module build
...
use CONFIG_COMMON_CLK_ROCKCHIP for Rk common clk drivers.
use CONFIG_CLK_RKXX for Rk soc clk driver.
Mark CONFIG_CLK_RK3399 to "tristate",
to support building Rk3399 SoC clock driver as module.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Reviewed-by: Kever Yang <kever.yang@rock-chips.com >
Reviewed-by: Stephen Boyd <sboyd@kernel.org >
Link: https://lore.kernel.org/r/20200914022304.23908-1-zhangqing@rock-chips.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2020-09-22 15:16:38 +02:00