linux/drivers/clk/meson
Neil Armstrong bb5aa08572 clk: meson: add vclk driver
The VCLK and VCLK_DIV clocks have supplementary bits.

The VCLK gate has a "SOFT RESET" bit to toggle after the whole
VCLK sub-tree rate has been set, this is implemented in
the gate enable callback.

The VCLK_DIV clocks as enable and reset bits used to disable
and reset the divider, associated with CLK_SET_RATE_GATE it ensures
the rate is set while the divider is disabled and in reset mode.

The VCLK_DIV enable bit isn't implemented as a gate since it's part
of the divider logic and vendor does this exact sequence to ensure
the divider is correctly set.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240403-amlogic-v6-4-upstream-dsi-ccf-vim3-v12-2-99ecdfdc87fc@linaro.org
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
History 2024-04-10 09:46:21 +02:00
..
a1-peripherals.c clk: meson: a1: peripherals: determine maximum register in regmap config 2024-03-29 12:07:33 +01:00
a1-peripherals.h clk: meson: a1: move bindings include to main driver 2023-08-08 16:06:17 +02:00
a1-pll.c clk: meson: a1: pll: determine maximum register in regmap config 2024-03-29 12:07:33 +01:00
a1-pll.h clk: meson: a1: move bindings include to main driver 2023-08-08 16:06:17 +02:00
axg-aoclk.c clk: meson: aoclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
axg-audio.c Merge branches 'clk-versa', 'clk-strdup', 'clk-amlogic', 'clk-allwinner' and 'clk-rockchip' into clk-next 2023-08-30 14:38:19 -07:00
axg-audio.h clk: meson: axg-audio: move bindings include to main driver 2023-08-08 16:06:17 +02:00
axg.c clk: meson: Add missing clocks to axg_clk_regmaps 2024-02-05 10:06:21 +01:00
axg.h clk: meson: eeclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
clk-cpu-dyndiv.c clk: meson: clk-cpu-dyndiv: switch from .round_rate to .determine_rate 2023-01-13 15:14:12 +01:00
clk-cpu-dyndiv.h clk: meson: add g12a cpu dynamic divider driver 2019-08-09 12:10:03 +02:00
clk-dualdiv.c clk: meson: dualdiv: switch from .round_rate to .determine_rate 2023-01-13 15:14:12 +01:00
clk-dualdiv.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
clk-mpll.c clk: meson: mpll: Switch from .round_rate to .determine_rate 2023-01-13 15:14:12 +01:00
clk-mpll.h clk: meson: mpll: add init callback and regs 2019-05-20 12:19:29 +02:00
clk-phase.c clk: meson: add sclk-ws driver 2020-08-17 15:58:02 +02:00
clk-phase.h clk: meson: add sclk-ws driver 2020-08-17 15:58:02 +02:00
clk-pll.c clk: meson: pll: print out pll name when unable to lock it 2024-03-29 12:24:40 +01:00
clk-pll.h clk: meson: introduce new pll power-on sequence for A1 SoC family 2023-05-30 17:53:00 +02:00
clk-regmap.c clk: meson: regmap: switch to determine_rate for the dividers 2021-06-30 11:37:02 -07:00
clk-regmap.h clk: define to_clk_regmap() as inline function 2020-10-28 16:34:44 -07:00
g12a-aoclk.c clk: meson: aoclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
g12a.c clk: meson: g12a: add CSI & ISP gates clocks 2023-11-24 18:08:48 +01:00
g12a.h clk: meson: g12a: add MIPI ISP clocks 2023-11-24 18:08:48 +01:00
gxbb-aoclk.c clk: meson: aoclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
gxbb.c Merge branches 'clk-versa', 'clk-strdup', 'clk-amlogic', 'clk-allwinner' and 'clk-rockchip' into clk-next 2023-08-30 14:38:19 -07:00
gxbb.h clk: meson: eeclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
Kconfig clk: meson: add vclk driver 2024-04-10 09:46:21 +02:00
Makefile clk: meson: add vclk driver 2024-04-10 09:46:21 +02:00
meson-aoclk.c Merge branches 'clk-versa', 'clk-strdup', 'clk-amlogic', 'clk-allwinner' and 'clk-rockchip' into clk-next 2023-08-30 14:38:19 -07:00
meson-aoclk.h clk: meson: migrate meson-aoclk out of hw_onecell_data to drop NR_CLKS 2023-08-08 16:06:16 +02:00
meson-clkc-utils.c clk: meson: introduce meson-clkc-utils 2023-08-08 16:06:16 +02:00
meson-clkc-utils.h clk: meson: introduce meson-clkc-utils 2023-08-08 16:06:16 +02:00
meson-eeclk.c Merge branches 'clk-versa', 'clk-strdup', 'clk-amlogic', 'clk-allwinner' and 'clk-rockchip' into clk-next 2023-08-30 14:38:19 -07:00
meson-eeclk.h clk: meson: migrate meson-eeclk out of hw_onecell_data to drop NR_CLKS 2023-08-08 16:06:16 +02:00
meson8-ddr.c clk: meson: add a driver for the Meson8/8b/8m2 DDR clock controller 2019-12-11 14:06:29 +01:00
meson8b.c clk: meson: meson8b: move bindings include to main driver 2023-08-08 16:06:17 +02:00
meson8b.h clk: meson: meson8b: move bindings include to main driver 2023-08-08 16:06:17 +02:00
parm.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
s4-peripherals.c clk: meson: s4: peripherals: determine maximum register in regmap config 2024-03-29 12:07:33 +01:00
s4-peripherals.h clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller 2023-09-27 11:01:03 +02:00
s4-pll.c clk: meson: s4: pll: determine maximum register in regmap config 2024-03-29 12:07:33 +01:00
s4-pll.h clk: meson: S4: add support for Amlogic S4 SoC PLL clock driver 2023-09-27 10:54:24 +02:00
sclk-div.c clk: meson: sclk-div: switch from .round_rate to .determine_rate 2023-01-13 15:14:12 +01:00
sclk-div.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
vclk.c clk: meson: add vclk driver 2024-04-10 09:46:21 +02:00
vclk.h clk: meson: add vclk driver 2024-04-10 09:46:21 +02:00
vid-pll-div.c clk: meson: vid-pll-div: remove warning and return 0 on invalid config 2019-03-29 09:41:30 +01:00
vid-pll-div.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00