u-boot/drivers/clk
Paweł Jarosz 730a402450 rockchip: rk3066: add clock driver for rk3066 soc
Add the clock driver for the rk3066 platform.

Derived from the rk3288 and rk3188 driver it
supports only a bare minimum to bring up the system
to reduce the TPL size for:
  SDRAM clock configuration.
  The boot devices NAND, EMMC, SDMMC, SPI.
  A UART for the debug messages (fixed) at 115200n8.
  A SARADC for the recovery button.
  A TIMER for the delays (fixed).

There's support for two possible frequencies,
the safe 600MHz which will work with default pmic settings and
will be set to get away from the 24MHz default and
the maximum of 1.416Ghz, which boards can set if they
were able to get pmic support for it.

After the clock tree is set during the TPL probe
there's no parent update support.

In OF_REAL mode the drivers ns16550.c and dw-apb-timer.c
obtain the (fixed) clk_get_rate from the clock driver
instead of platdata.

The rk3066 cru node has a number of assigned-clocks properties
that call the .set_rate() function. Add them to the list so that
they return a 0 instead of -ENOENT.

Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com>
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2022-04-18 11:25:13 +08:00
..
altera drivers: clk: Add memory clock driver for Intel N5X device 2021-08-25 12:55:13 +08:00
analogbits clk: sifive: Sync-up WRPLL library with upstream Linux 2019-07-19 14:24:51 +08:00
aspeed doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
at91 clk: Use generic CCF ops where possible 2022-03-30 14:18:56 -04:00
exynos dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
imx clk: imx8mp: Fix 24M and 32k clock 2022-04-13 09:38:25 +02:00
intel clk: x86: Correct the driver name 2021-01-30 14:25:41 -07:00
mediatek clk: mediatek: Add MT8183 clock driver 2021-01-18 15:14:13 -05:00
meson WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
microchip clk: Use generic CCF ops where possible 2022-03-30 14:18:56 -04:00
mtmips clk: add clock driver for MediaTek MT7620 SoC 2021-01-24 21:39:26 +01:00
mvebu clk: armada-37xx: Set DM_FLAG_PRE_RELOC 2021-07-08 16:40:52 +02:00
owl clk: actions: Add SD/MMC clocks 2022-01-18 12:48:17 -05:00
renesas treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
rockchip rockchip: rk3066: add clock driver for rk3066 soc 2022-04-18 11:25:13 +08:00
sifive clk: sifive: Fix -Wint-to-pointer-cast warning 2021-10-20 10:59:09 +08:00
sunxi clk: sunxi: Extend DM_RESET selection to SPL 2021-10-25 14:54:06 +01:00
tegra clk: Remove no-op request and rfree callbacks 2022-02-24 23:58:13 -05:00
ti clk: Remove no-op request and rfree callbacks 2022-02-24 23:58:13 -05:00
uniphier clk: uniphier: Add PCIe clock entry 2021-07-14 16:48:05 -04:00
clk-cdce9xx.c clk: cdce9xx: Convert .of_xlate to .request 2022-02-24 23:58:13 -05:00
clk-composite.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk-divider.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk-fixed-factor.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk-gate.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk-hsdk-cgu.c clk: Update drivers to use -EINVAL 2021-04-06 16:33:19 +12:00
clk-mux.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk-uclass.c clk: Consolidate some clock functions 2022-03-30 13:03:26 -04:00
clk-xlnx-clock-wizard.c clk: zynq: Add clock wizard driver 2021-06-23 09:48:35 +02:00
clk.c clk: ccf: Add some helper functions for clock ops 2022-03-30 13:03:29 -04:00
clk_bcm6345.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
clk_boston.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
clk_fixed_factor.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk_fixed_rate.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk_k210.c k210: use the board vendor name rather than the marketing name 2022-03-15 17:43:11 +08:00
clk_octeon.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clk_pic32.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clk_sandbox.c clk: Make rfree return void 2022-03-30 13:02:55 -04:00
clk_sandbox_ccf.c clk: set flags in the ccf registration routines 2020-08-24 11:03:26 +02:00
clk_sandbox_test.c clk: Make clk_free return void 2022-03-30 13:02:55 -04:00
clk_scmi.c clk: scmi: register scmi clocks with CCF 2022-03-02 17:42:06 -05:00
clk_stm32f.c treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
clk_stm32h7.c treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
clk_stm32mp1.c stm32mp15: replace CONFIG_TFABOOT when it is possible 2021-11-10 17:07:31 +01:00
clk_versaclock.c clk: versaclock: Remove xlate function 2022-02-24 23:58:13 -05:00
clk_versal.c clk: versal: Enable only GATE type clocks 2021-09-30 12:30:28 +02:00
clk_vexpress_osc.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
clk_zynq.c clk: Add clk_get_by_name_optional 2022-02-25 01:41:04 -05:00
clk_zynqmp.c clk: zynqmp: Add support for for DP audio/video clocks 2022-04-05 15:09:47 +02:00
ics8n3qv01.c clk: Remove no-op request and rfree callbacks 2022-02-24 23:58:13 -05:00
Kconfig clk: Rename ICS8N3QV01 to CLK_ICS8N3QV01 2022-02-24 23:58:13 -05:00
Makefile k210: use the board vendor name rather than the marketing name 2022-03-15 17:43:11 +08:00
mpc83xx_clk.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc83xx_clk.h Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig 2021-12-27 16:20:18 -05:00