xref: /linux-6.15/drivers/clk/Kconfig (revision e7b012cb)
17b9487a9SPaul Walmsley# SPDX-License-Identifier: GPL-2.0
26d803ba7SJean-Christop PLAGNIOL-VILLARD
3bc8c945eSStephen Boydconfig HAVE_CLK
4bc8c945eSStephen Boyd	bool
5bc8c945eSStephen Boyd	help
6bc8c945eSStephen Boyd	  The <linux/clk.h> calls support software clock gating and
7bc8c945eSStephen Boyd	  thus are a key power management tool on many systems.
8bc8c945eSStephen Boyd
95c77f560SShawn Guoconfig HAVE_CLK_PREPARE
105c77f560SShawn Guo	bool
115c77f560SShawn Guo
12bbd7ffdbSStephen Boydconfig HAVE_LEGACY_CLK # TODO: Remove once all legacy users are migrated
138fb61e33SArnd Bergmann	bool
14bbd7ffdbSStephen Boyd	select HAVE_CLK
15bbd7ffdbSStephen Boyd	help
16bbd7ffdbSStephen Boyd	  Select this option when the clock API in <linux/clk.h> is implemented
17bbd7ffdbSStephen Boyd	  by platform/architecture code. This method is deprecated. Modern
18bbd7ffdbSStephen Boyd	  code should select COMMON_CLK instead and not define a custom
19bbd7ffdbSStephen Boyd	  'struct clk'.
20bbd7ffdbSStephen Boyd
21bbd7ffdbSStephen Boydmenuconfig COMMON_CLK
22bbd7ffdbSStephen Boyd	bool "Common Clock Framework"
23bbd7ffdbSStephen Boyd	depends on !HAVE_LEGACY_CLK
24b2476490SMike Turquette	select HAVE_CLK_PREPARE
252f4574ddSArnd Bergmann	select HAVE_CLK
260777591eSAndy Shevchenko	select RATIONAL
27a7f7f624SMasahiro Yamada	help
28b2476490SMike Turquette	  The common clock framework is a single definition of struct
29b2476490SMike Turquette	  clk, useful across many platforms, as well as an
30b2476490SMike Turquette	  implementation of the clock API in include/linux/clk.h.
31b2476490SMike Turquette	  Architectures utilizing the common struct clk should select
328fb61e33SArnd Bergmann	  this option.
33b2476490SMike Turquette
34bbd7ffdbSStephen Boydif COMMON_CLK
35b2476490SMike Turquette
36f05259a6SMark Brownconfig COMMON_CLK_WM831X
37f05259a6SMark Brown	tristate "Clock driver for WM831x/2x PMICs"
38f05259a6SMark Brown	depends on MFD_WM831X
39a7f7f624SMasahiro Yamada	help
40f05259a6SMark Brown	  Supports the clocking subsystem of the WM831x/2x series of
41fe4e4372SMasanari Iida	  PMICs from Wolfson Microelectronics.
42f05259a6SMark Brown
435ee2b877SPawel Mollsource "drivers/clk/versatile/Kconfig"
44f9a6aa43SLinus Walleij
45daeeb438SEugeniy Paltsevconfig CLK_HSDK
46daeeb438SEugeniy Paltsev	bool "PLL Driver for HSDK platform"
47f6bade68SGeert Uytterhoeven	depends on ARC_SOC_HSDK || COMPILE_TEST
48bd8548d0SGeert Uytterhoeven	depends on HAS_IOMEM
49a7f7f624SMasahiro Yamada	help
50daeeb438SEugeniy Paltsev	  This driver supports the HSDK core, system, ddr, tunnel and hdmi PLLs
51daeeb438SEugeniy Paltsev	  control.
52daeeb438SEugeniy Paltsev
533bc61cfdSLiam Beguinconfig LMK04832
543bc61cfdSLiam Beguin	tristate "Ti LMK04832 JESD204B Compliant Clock Jitter Cleaner"
5597a1c5cbSStephen Boyd	depends on SPI
563bc61cfdSLiam Beguin	select REGMAP_SPI
573bc61cfdSLiam Beguin	help
583bc61cfdSLiam Beguin	  Say yes here to build support for Texas Instruments' LMK04832 Ultra
593bc61cfdSLiam Beguin	  Low-Noise JESD204B Compliant Clock Jitter Cleaner With Dual Loop PLLs
603bc61cfdSLiam Beguin
616641057dSMartin Povišerconfig COMMON_CLK_APPLE_NCO
62236541acSMartin Povišer	tristate "Clock driver for Apple SoC NCOs"
636641057dSMartin Povišer	depends on ARCH_APPLE || COMPILE_TEST
646641057dSMartin Povišer	default ARCH_APPLE
656641057dSMartin Povišer	help
666641057dSMartin Povišer	  This driver supports NCO (Numerically Controlled Oscillator) blocks
676641057dSMartin Povišer	  found on Apple SoCs such as t8103 (M1). The blocks are typically
686641057dSMartin Povišer	  generators of audio clocks.
696641057dSMartin Povišer
7073118e61SJonghwa Leeconfig COMMON_CLK_MAX77686
715a227cd1SLaxman Dewangan	tristate "Clock driver for Maxim 77620/77686/77802 MFD"
729c1b305cSKrzysztof Kozlowski	depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST
73a7f7f624SMasahiro Yamada	help
745a227cd1SLaxman Dewangan	  This driver supports Maxim 77620/77686/77802 crystal oscillator
755a227cd1SLaxman Dewangan	  clock.
7683ccf16cSJavier Martinez Canillas
7733f51046SDaniel Mackconfig COMMON_CLK_MAX9485
7833f51046SDaniel Mack	tristate "Maxim 9485 Programmable Clock Generator"
7933f51046SDaniel Mack	depends on I2C
8033f51046SDaniel Mack	help
8133f51046SDaniel Mack	  This driver supports Maxim 9485 Programmable Audio Clock Generator
8233f51046SDaniel Mack
83038b892aSChris Zhongconfig COMMON_CLK_RK808
848ed14401STony Xie	tristate "Clock driver for RK805/RK808/RK809/RK817/RK818"
85c20e8c5bSSebastian Reichel	depends on MFD_RK8XX
86a7f7f624SMasahiro Yamada	help
878ed14401STony Xie	  This driver supports RK805, RK809 and RK817, RK808 and RK818 crystal oscillator clock.
888ed14401STony Xie	  These multi-function devices have two fixed-rate oscillators, clocked at 32KHz each.
898ed14401STony Xie	  Clkout1 is always on, Clkout2 can off by control register.
90038b892aSChris Zhong
91b68adc23SDaniel Lezcanoconfig COMMON_CLK_HI655X
923a49afb8SRiku Voipio	tristate "Clock driver for Hi655x" if EXPERT
933a49afb8SRiku Voipio	depends on (MFD_HI655X_PMIC || COMPILE_TEST)
940ffad677SRandy Dunlap	select REGMAP
953a49afb8SRiku Voipio	default MFD_HI655X_PMIC
96a7f7f624SMasahiro Yamada	help
97b68adc23SDaniel Lezcano	  This driver supports the hi655x PMIC clock. This
98b68adc23SDaniel Lezcano	  multi-function device has one fixed-rate oscillator, clocked
99b68adc23SDaniel Lezcano	  at 32KHz.
100b68adc23SDaniel Lezcano
1016d6a1d82SSudeep Hollaconfig COMMON_CLK_SCMI
1026d6a1d82SSudeep Holla	tristate "Clock driver controlled via SCMI interface"
1036d6a1d82SSudeep Holla	depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
104a7f7f624SMasahiro Yamada	help
1056d6a1d82SSudeep Holla	  This driver provides support for clocks that are controlled
1066d6a1d82SSudeep Holla	  by firmware that implements the SCMI interface.
1076d6a1d82SSudeep Holla
1086d6a1d82SSudeep Holla	  This driver uses SCMI Message Protocol to interact with the
1096d6a1d82SSudeep Holla	  firmware providing all the clock controls.
1106d6a1d82SSudeep Holla
111cd52c2a4SSudeep Hollaconfig COMMON_CLK_SCPI
112cd52c2a4SSudeep Holla	tristate "Clock driver controlled via SCPI interface"
113cd52c2a4SSudeep Holla	depends on ARM_SCPI_PROTOCOL || COMPILE_TEST
114a7f7f624SMasahiro Yamada	help
115cd52c2a4SSudeep Holla	  This driver provides support for clocks that are controlled
116cd52c2a4SSudeep Holla	  by firmware that implements the SCPI interface.
117cd52c2a4SSudeep Holla
118cd52c2a4SSudeep Holla	  This driver uses SCPI Message Protocol to interact with the
119cd52c2a4SSudeep Holla	  firmware providing all the clock controls.
120cd52c2a4SSudeep Holla
1213044a860SMike Looijmansconfig COMMON_CLK_SI5341
1223044a860SMike Looijmans	tristate "Clock driver for SiLabs 5341 and 5340 A/B/C/D devices"
1233044a860SMike Looijmans	depends on I2C
1243044a860SMike Looijmans	select REGMAP_I2C
1253044a860SMike Looijmans	help
1263044a860SMike Looijmans	  This driver supports Silicon Labs Si5341 and Si5340 programmable clock
1273044a860SMike Looijmans	  generators. Not all features of these chips are currently supported
1283044a860SMike Looijmans	  by the driver, in particular it only supports XTAL input. The chip can
1293044a860SMike Looijmans	  be pre-programmed to support other configurations and features not yet
1303044a860SMike Looijmans	  implemented in the driver.
1313044a860SMike Looijmans
1329abd5f05SSebastian Hesselbarthconfig COMMON_CLK_SI5351
1339abd5f05SSebastian Hesselbarth	tristate "Clock driver for SiLabs 5351A/B/C"
1349abd5f05SSebastian Hesselbarth	depends on I2C
1359abd5f05SSebastian Hesselbarth	select REGMAP_I2C
136a7f7f624SMasahiro Yamada	help
1379abd5f05SSebastian Hesselbarth	  This driver supports Silicon Labs 5351A/B/C programmable clock
1389abd5f05SSebastian Hesselbarth	  generators.
1399abd5f05SSebastian Hesselbarth
1408ce20e66SMike Looijmansconfig COMMON_CLK_SI514
1418ce20e66SMike Looijmans	tristate "Clock driver for SiLabs 514 devices"
1428ce20e66SMike Looijmans	depends on I2C
1438ce20e66SMike Looijmans	depends on OF
1448ce20e66SMike Looijmans	select REGMAP_I2C
1458ce20e66SMike Looijmans	help
1468ce20e66SMike Looijmans	  This driver supports the Silicon Labs 514 programmable clock
1478ce20e66SMike Looijmans	  generator.
1488ce20e66SMike Looijmans
149953cc3e8SMike Looijmansconfig COMMON_CLK_SI544
150953cc3e8SMike Looijmans	tristate "Clock driver for SiLabs 544 devices"
151953cc3e8SMike Looijmans	depends on I2C
152953cc3e8SMike Looijmans	select REGMAP_I2C
153953cc3e8SMike Looijmans	help
154953cc3e8SMike Looijmans	  This driver supports the Silicon Labs 544 programmable clock
155953cc3e8SMike Looijmans	  generator.
156953cc3e8SMike Looijmans
1571459c837SSoren Brinkmannconfig COMMON_CLK_SI570
1581459c837SSoren Brinkmann	tristate "Clock driver for SiLabs 570 and compatible devices"
1591459c837SSoren Brinkmann	depends on I2C
1601459c837SSoren Brinkmann	depends on OF
1611459c837SSoren Brinkmann	select REGMAP_I2C
1621459c837SSoren Brinkmann	help
1631459c837SSoren Brinkmann	  This driver supports Silicon Labs 570/571/598/599 programmable
1641459c837SSoren Brinkmann	  clock generators.
1651459c837SSoren Brinkmann
1661ab4601dSManivannan Sadhasivamconfig COMMON_CLK_BM1880
1671ab4601dSManivannan Sadhasivam	bool "Clock driver for Bitmain BM1880 SoC"
1681ab4601dSManivannan Sadhasivam	depends on ARCH_BITMAIN || COMPILE_TEST
1691ab4601dSManivannan Sadhasivam	default ARCH_BITMAIN
1701ab4601dSManivannan Sadhasivam	help
1711ab4601dSManivannan Sadhasivam	  This driver supports the clocks on Bitmain BM1880 SoC.
1721ab4601dSManivannan Sadhasivam
173c7d5a46bSMike Looijmansconfig COMMON_CLK_CDCE706
174c7d5a46bSMike Looijmans	tristate "Clock driver for TI CDCE706 clock synthesizer"
175c7d5a46bSMike Looijmans	depends on I2C
176c7d5a46bSMike Looijmans	select REGMAP_I2C
177a7f7f624SMasahiro Yamada	help
178c7d5a46bSMike Looijmans	  This driver supports TI CDCE706 programmable 3-PLL clock synthesizer.
179c7d5a46bSMike Looijmans
180ff5f87cbSHans de Goedeconfig COMMON_CLK_TPS68470
181ff5f87cbSHans de Goede	tristate "Clock Driver for TI TPS68470 PMIC"
182ff5f87cbSHans de Goede	depends on I2C
183ff5f87cbSHans de Goede	depends on INTEL_SKL_INT3472 || COMPILE_TEST
184ff5f87cbSHans de Goede	select REGMAP_I2C
185ff5f87cbSHans de Goede	help
186ff5f87cbSHans de Goede	  This driver supports the clocks provided by the TPS68470 PMIC.
187ff5f87cbSHans de Goede
18819fbbbbcSMike Looijmansconfig COMMON_CLK_CDCE925
1895508124cSAkinobu Mita	tristate "Clock driver for TI CDCE913/925/937/949 devices"
19019fbbbbcSMike Looijmans	depends on I2C
19119fbbbbcSMike Looijmans	depends on OF
19219fbbbbcSMike Looijmans	select REGMAP_I2C
19319fbbbbcSMike Looijmans	help
1945508124cSAkinobu Mita	  This driver supports the TI CDCE913/925/937/949 programmable clock
1955508124cSAkinobu Mita	  synthesizer. Each chip has different number of PLLs and outputs.
1965508124cSAkinobu Mita	  For example, the CDCE925 contains two PLLs with spread-spectrum
1975508124cSAkinobu Mita	  clocking support and five output dividers. The driver only supports
1985508124cSAkinobu Mita	  the following setup, and uses a fixed setting for the output muxes.
19919fbbbbcSMike Looijmans	  Y1 is derived from the input clock
20019fbbbbcSMike Looijmans	  Y2 and Y3 derive from PLL1
20119fbbbbcSMike Looijmans	  Y4 and Y5 derive from PLL2
20219fbbbbcSMike Looijmans	  Given a target output frequency, the driver will set the PLL and
20319fbbbbcSMike Looijmans	  divider to best approximate the desired output.
20419fbbbbcSMike Looijmans
20564dfbe24SKuninori Morimotoconfig COMMON_CLK_CS2000_CP
20664dfbe24SKuninori Morimoto	tristate "Clock driver for CS2000 Fractional-N Clock Synthesizer & Clock Multiplier"
20764dfbe24SKuninori Morimoto	depends on I2C
2085edffb98SDaniel Mack	select REGMAP_I2C
20964dfbe24SKuninori Morimoto	help
21064dfbe24SKuninori Morimoto	  If you say yes here you get support for the CS2000 clock multiplier.
21164dfbe24SKuninori Morimoto
2121e627317SFelix Fietkauconfig COMMON_CLK_EN7523
2131e627317SFelix Fietkau	bool "Clock driver for Airoha EN7523 SoC system clocks"
2141e627317SFelix Fietkau	depends on OF
2151e627317SFelix Fietkau	depends on ARCH_AIROHA || COMPILE_TEST
2161e627317SFelix Fietkau	default ARCH_AIROHA
2171e627317SFelix Fietkau	help
2181e627317SFelix Fietkau	  This driver provides the fixed clocks and gates present on Airoha
2191e627317SFelix Fietkau	  ARM silicon.
2201e627317SFelix Fietkau
2218a6b7e2bSNikita Shubinconfig COMMON_CLK_EP93XX
2228a6b7e2bSNikita Shubin	tristate "Clock driver for Cirrus Logic ep93xx SoC"
2238a6b7e2bSNikita Shubin	depends on ARCH_EP93XX || COMPILE_TEST
2248a6b7e2bSNikita Shubin	select AUXILIARY_BUS
2258a6b7e2bSNikita Shubin	select REGMAP_MMIO
2268a6b7e2bSNikita Shubin	help
2278a6b7e2bSNikita Shubin	  This driver supports the SoC clocks on the Cirrus Logic ep93xx.
2288a6b7e2bSNikita Shubin
229fcf77be8SMichael Walleconfig COMMON_CLK_EYEQ
230fcf77be8SMichael Walle	bool "Clock driver for the Mobileye EyeQ platform"
231fcf77be8SMichael Walle	depends on MACH_EYEQ5 || MACH_EYEQ6H || COMPILE_TEST
232fcf77be8SMichael Walle	select AUXILIARY_BUS
233fcf77be8SMichael Walle	default MACH_EYEQ5 || MACH_EYEQ6H
234fcf77be8SMichael Walle	help
235fcf77be8SMichael Walle	  This driver provides clocks found on Mobileye EyeQ5, EyeQ6L and Eye6H
236fcf77be8SMichael Walle	  SoCs. Controllers live in shared register regions called OLB. Driver
2379cd10205SMichael Walle	  provides read-only PLLs, derived from the main crystal clock (which
2389cd10205SMichael Walle	  must be constant). It also exposes some divider clocks.
2399cd10205SMichael Walle
2409cd10205SMichael Walleconfig COMMON_CLK_FSL_FLEXSPI
2419cd10205SMichael Walle	tristate "Clock driver for FlexSPI on Layerscape SoCs"
2429cd10205SMichael Walle	depends on ARCH_LAYERSCAPE || COMPILE_TEST
2439cd10205SMichael Walle	default ARCH_LAYERSCAPE && SPI_NXP_FLEXSPI
2449cd10205SMichael Walle	help
2459cd10205SMichael Walle	  On Layerscape SoCs there is a special clock for the FlexSPI
2469cd10205SMichael Walle	  interface.
2479cd10205SMichael Walle
2489cd10205SMichael Walleconfig COMMON_CLK_FSL_SAI
249846423f9SLinus Walleij	bool "Clock driver for BCLK of Freescale SAI cores"
250846423f9SLinus Walleij	depends on ARCH_LAYERSCAPE || COMPILE_TEST
251846423f9SLinus Walleij	help
252846423f9SLinus Walleij	  This driver supports the Freescale SAI (Synchronous Audio Interface)
253846423f9SLinus Walleij	  to be used as a generic clock output. Some SoCs have restrictions
254a7f7f624SMasahiro Yamada	  regarding the possible pin multiplexer settings. Eg. on some SoCs
255846423f9SLinus Walleij	  two SAI interfaces can only be enabled together. If just one is
256846423f9SLinus Walleij	  needed, the BCLK pin of the second one can be used as general
257846423f9SLinus Walleij	  purpose clock output. Ideally, it can be used to drive an audio
25854104ee0SKavyasree Kotagiri	  codec (sometimes known as MCLK).
2598a977bbbSClément Léger
260aa091a6aSHoratiu Vulturconfig COMMON_CLK_GEMINI
261aa091a6aSHoratiu Vultur	bool "Clock driver for Cortina Systems Gemini SoC"
262*e7b012cbSRobert Marko	depends on ARCH_GEMINI || COMPILE_TEST
26354104ee0SKavyasree Kotagiri	select MFD_SYSCON
26454104ee0SKavyasree Kotagiri	select RESET_CONTROLLER
26554104ee0SKavyasree Kotagiri	help
26654104ee0SKavyasree Kotagiri	  This driver supports the SoC clocks on the Cortina Systems Gemini
26754104ee0SKavyasree Kotagiri	  platform, also known as SL3516 or CS3516.
2685eda5d79SJoel Stanley
2695eda5d79SJoel Stanleyconfig COMMON_CLK_LAN966X
2705eda5d79SJoel Stanley	tristate "Generic Clock Controller driver for LAN966X SoC"
2715eda5d79SJoel Stanley	depends on HAS_IOMEM
2725eda5d79SJoel Stanley	depends on OF
2735eda5d79SJoel Stanley	depends on SOC_LAN966 || ARCH_LAN969X || COMPILE_TEST
274a7f7f624SMasahiro Yamada	help
2755eda5d79SJoel Stanley	  This driver provides support for Generic Clock Controller(GCK) on
2765eda5d79SJoel Stanley	  LAN966X SoC. GCK generates and supplies clock to various peripherals
2775eda5d79SJoel Stanley	  within the SoC.
2785eda5d79SJoel Stanley
2795eda5d79SJoel Stanleyconfig COMMON_CLK_ASPEED
2807cc560deSYadwinder Singh Brar	bool "Clock driver for Aspeed BMC SoCs"
281e8b60a45SKrzysztof Kozlowski	depends on ARCH_ASPEED || COMPILE_TEST
2829c1b305cSKrzysztof Kozlowski	default ARCH_ASPEED
283a7f7f624SMasahiro Yamada	select MFD_SYSCON
284e8b60a45SKrzysztof Kozlowski	select RESET_CONTROLLER
285e8b60a45SKrzysztof Kozlowski	help
286e8b60a45SKrzysztof Kozlowski	  This driver supports the SoC clocks on the Aspeed BMC platforms.
2877cc560deSYadwinder Singh Brar
2884eb15b03SAndreas Kemnade	  The G4 and G5 series, including the ast2400 and ast2500, are supported
2894eb15b03SAndreas Kemnade	  by this driver.
2904eb15b03SAndreas Kemnade
2914eb15b03SAndreas Kemnadeconfig COMMON_CLK_S2MPS11
2924eb15b03SAndreas Kemnade	tristate "Clock driver for S2MPS1X/S5M8767 MFD"
2934eb15b03SAndreas Kemnade	depends on MFD_SEC_CORE || COMPILE_TEST
2944eb15b03SAndreas Kemnade	help
2954eb15b03SAndreas Kemnade	  This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
2964eb15b03SAndreas Kemnade	  clock. These multi-function devices have two (S2MPS14) or three
297f9f8c043SPeter Ujfalusi	  (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
298f9f8c043SPeter Ujfalusi
299f9f8c043SPeter Ujfalusiconfig CLK_TWL
300a7f7f624SMasahiro Yamada	tristate "Clock driver for the TWL PMIC family"
301f9f8c043SPeter Ujfalusi	depends on TWL4030_CORE
302f9f8c043SPeter Ujfalusi	help
303f9f8c043SPeter Ujfalusi	  Enable support for controlling the clock resources on TWL family
304f9f8c043SPeter Ujfalusi	  PMICs. These devices have some 32K clock outputs which can be
3050e646c52SLars-Peter Clausen	  controlled by software. For now, the TWL6032 and TWL6030 clocks are
3060e646c52SLars-Peter Clausen	  supported.
307324a8105SAlexandru Ardelean
308324a8105SAlexandru Ardeleanconfig CLK_TWL6040
3090e646c52SLars-Peter Clausen	tristate "External McPDM functional clock from twl6040"
3100e646c52SLars-Peter Clausen	depends on TWL6040_CORE
3110e646c52SLars-Peter Clausen	help
3120e646c52SLars-Peter Clausen	  Enable the external functional clock support on OMAP4+ platforms for
31393a17c05STang Yuantian	  McPDM. McPDM module is using the external bit clock on the McPDM bus
31493a17c05STang Yuantian	  as functional clock.
315b8bcece8SGeert Uytterhoeven
316b8bcece8SGeert Uytterhoevenconfig COMMON_CLK_AXI_CLKGEN
317a7f7f624SMasahiro Yamada	tristate "AXI clkgen driver"
31893a17c05STang Yuantian	depends on HAS_IOMEM || COMPILE_TEST
31993a17c05STang Yuantian	depends on OF
320555eae97STang Yuantian	help
321d37010a3SWen He	  Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
322d37010a3SWen He	  FPGAs. It is commonly used in Analog Devices' reference designs.
323d37010a3SWen He
324d37010a3SWen Heconfig CLK_QORIQ
325d37010a3SWen He	bool "Clock driver for Freescale QorIQ platforms"
326d37010a3SWen He	depends on OF
327d37010a3SWen He	depends on PPC_E500MC || SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST
328d37010a3SWen He	help
329d37010a3SWen He	  This adds the clock driver support for Freescale QorIQ platforms
3306d803ba7SJean-Christop PLAGNIOL-VILLARD	  using common clock framework.
331308964caSLoc Ho
332308964caSLoc Hoconfig CLK_LS1028A_PLLDIG
333ce9a1046SMarc Gonzalez        tristate "Clock driver for LS1028A Display output"
3344a7748c3SJavier Martinez Canillas        depends on ARCH_LAYERSCAPE || COMPILE_TEST
335a7f7f624SMasahiro Yamada        default ARCH_LAYERSCAPE
3364fe02fefSChristophe JAILLET        help
337308964caSLoc Ho          This driver support the Display output interfaces(LCD, DPHY) pixel clocks
33876c54783SCharles Keepax          of the QorIQ Layerscape LS1028A, as implemented TSMC CLN28HPM PLL. Not all
33976c54783SCharles Keepax          features of the PLL are currently supported by the driver. By default,
34076c54783SCharles Keepax          configured bypass mode with this PLL.
34176c54783SCharles Keepax
34276c54783SCharles Keepaxconfig COMMON_CLK_XGENE
34376c54783SCharles Keepax	bool "Clock driver for APM XGene SoC"
34476c54783SCharles Keepax	default ARCH_XGENE
345acc0ccffSYinbo Zhu	depends on ARM64 || COMPILE_TEST
346acc0ccffSYinbo Zhu	help
347acc0ccffSYinbo Zhu	  Support for the APM X-Gene SoC reference, PLL, and device clocks.
348acc0ccffSYinbo Zhu
349acc0ccffSYinbo Zhuconfig COMMON_CLK_LOCHNAGAR
350acc0ccffSYinbo Zhu	tristate "Cirrus Logic Lochnagar clock driver"
351acc0ccffSYinbo Zhu	depends on MFD_LOCHNAGAR
352acc0ccffSYinbo Zhu	help
353acc0ccffSYinbo Zhu	  This driver supports the clocking features of the Cirrus Logic
354f7c82a60SVladimir Zapolskiy	  Lochnagar audio development board.
355f7c82a60SVladimir Zapolskiy
356f7c82a60SVladimir Zapolskiyconfig COMMON_CLK_NPCM8XX
35772ad679aSEzequiel Garcia	tristate "Clock driver for the NPCM8XX SoC Family"
358a7f7f624SMasahiro Yamada	depends on ARCH_NPCM || COMPILE_TEST
359f7c82a60SVladimir Zapolskiy	help
360f7c82a60SVladimir Zapolskiy	  This driver supports the clocks on the Nuvoton BMC NPCM8XX SoC Family,
361942d1d67SPeter Ujfalusi	  all the clocks are initialized by the bootloader, so this driver
362942d1d67SPeter Ujfalusi	  allows only reading of current settings directly from the hardware.
363942d1d67SPeter Ujfalusi
364a7f7f624SMasahiro Yamadaconfig COMMON_CLK_LOONGSON2
365942d1d67SPeter Ujfalusi	bool "Clock driver for Loongson-2 SoC"
366942d1d67SPeter Ujfalusi	depends on LOONGARCH || COMPILE_TEST
367942d1d67SPeter Ujfalusi	help
3689a74ccdbSPhilipp Zabel          This driver provides support for clock controller on Loongson-2 SoC.
3699a74ccdbSPhilipp Zabel          The clock controller can generates and supplies clock to various
3709a74ccdbSPhilipp Zabel          peripherals within the SoC.
371a7f7f624SMasahiro Yamada          Say Y here to support Loongson-2 SoC clock driver.
3729a74ccdbSPhilipp Zabel
3739a74ccdbSPhilipp Zabelconfig COMMON_CLK_NXP
3749a74ccdbSPhilipp Zabel	def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX)
37598d147f5SRobert Jarzmik	select REGMAP_MMIO if ARCH_LPC32XX
37698d147f5SRobert Jarzmik	select MFD_SYSCON if ARCH_LPC18XX
377a7f7f624SMasahiro Yamada	help
378048c58b4SMike Looijmans	  Support for clock providers on NXP platforms.
37998d147f5SRobert Jarzmik
380892e0ddeSMarek Vasutconfig COMMON_CLK_PALMAS
381892e0ddeSMarek Vasut	tristate "Clock driver for TI Palmas devices"
382892e0ddeSMarek Vasut	depends on MFD_PALMAS
383892e0ddeSMarek Vasut	help
384892e0ddeSMarek Vasut	  This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO
385892e0ddeSMarek Vasut	  using common clock framework.
386892e0ddeSMarek Vasut
387892e0ddeSMarek Vasutconfig COMMON_CLK_PWM
388892e0ddeSMarek Vasut	tristate "Clock driver for PWMs used as clock outputs"
389edc12763SMarek Vasut	depends on PWM
390edc12763SMarek Vasut	help
391edc12763SMarek Vasut	  Adapter driver so that any PWM output can be (mis)used as clock signal
392edc12763SMarek Vasut	  at 50% duty cycle.
393edc12763SMarek Vasut
394edc12763SMarek Vasutconfig COMMON_CLK_PXA
395edc12763SMarek Vasut	def_bool COMMON_CLK && ARCH_PXA
396edc12763SMarek Vasut	help
397edc12763SMarek Vasut	  Support for the Marvell PXA SoC.
3986e9aff55SBiju Das
3996e9aff55SBiju Dasconfig COMMON_CLK_RS9_PCIE
4006e9aff55SBiju Das	tristate "Clock driver for Renesas 9-series PCIe clock generators"
4016e9aff55SBiju Das	depends on I2C
4026e9aff55SBiju Das	depends on OF
4036e9aff55SBiju Das	select REGMAP_I2C
4046e9aff55SBiju Das	help
4056e9aff55SBiju Das	  This driver supports the Renesas 9-series PCIe clock generator
4066e9aff55SBiju Das	  models 9FGV/9DBV/9DMV/9FGL/9DML/9QXL/9SQ.
4073e1aec4eSMarek Vasut
408dbf6b16fSMarek Vasutconfig COMMON_CLK_SI521XX
4093e1aec4eSMarek Vasut	tristate "Clock driver for SkyWorks Si521xx PCIe clock generators"
4103e1aec4eSMarek Vasut	depends on I2C
4113e1aec4eSMarek Vasut	depends on OF
4123e1aec4eSMarek Vasut	select REGMAP_I2C
413dbf6b16fSMarek Vasut	help
414dbf6b16fSMarek Vasut	  This driver supports the SkyWorks Si521xx PCIe clock generator
4153e1aec4eSMarek Vasut	  models Si52144/Si52146/Si52147.
41648c5e98fSAlex Helms
41748c5e98fSAlex Helmsconfig COMMON_CLK_VC3
41848c5e98fSAlex Helms	tristate "Clock driver for Renesas VersaClock 3 devices"
41948c5e98fSAlex Helms	depends on I2C
42048c5e98fSAlex Helms	depends on OF
42148c5e98fSAlex Helms	select REGMAP_I2C
42248c5e98fSAlex Helms	help
42348c5e98fSAlex Helms	  This driver supports the Renesas VersaClock 3 programmable clock
42448c5e98fSAlex Helms	  generators.
425da32d353SBenjamin Gaignard
4269a160601SGabriel Fernandezconfig COMMON_CLK_VC5
427da32d353SBenjamin Gaignard	tristate "Clock driver for IDT VersaClock 5,6 devices"
428da32d353SBenjamin Gaignard	depends on I2C
429da32d353SBenjamin Gaignard	depends on OF
430da32d353SBenjamin Gaignard	select REGMAP_I2C
4319a160601SGabriel Fernandez	help
432da32d353SBenjamin Gaignard	  This driver supports the IDT VersaClock 5 and VersaClock 6
433da32d353SBenjamin Gaignard	  programmable clock generators.
434da32d353SBenjamin Gaignard
435a9372a5fSLubomir Rintelconfig COMMON_CLK_VC7
436a9372a5fSLubomir Rintel	tristate "Clock driver for Renesas Versaclock 7 devices"
437a9372a5fSLubomir Rintel	depends on I2C
438a9372a5fSLubomir Rintel	depends on OF
439a9372a5fSLubomir Rintel	select REGMAP_I2C
440725262d2SLubomir Rintel	help
441725262d2SLubomir Rintel	  Renesas Versaclock7 is a family of configurable clock generator
442725262d2SLubomir Rintel	  and jitter attenuator ICs with fractional and integer dividers.
443725262d2SLubomir Rintel
444725262d2SLubomir Rintelconfig COMMON_CLK_STM32F
445725262d2SLubomir Rintel	def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
4462e62246bSMatti Vaittinen	help
447ae866decSMatti Vaittinen	  Support for stm32f4 and stm32f7 SoC families clocks
448fa5b6541SMatti Vaittinen
4492e62246bSMatti Vaittinenconfig COMMON_CLK_STM32H7
450fa5b6541SMatti Vaittinen	def_bool COMMON_CLK && MACH_STM32H743
451fa5b6541SMatti Vaittinen	help
4522e62246bSMatti Vaittinen	  Support for stm32h7 SoC family clocks
45350cc4cafSJan Kotas
45450cc4cafSJan Kotasconfig COMMON_CLK_MMP2
45550cc4cafSJan Kotas	def_bool COMMON_CLK && (MACH_MMP2_DT || MACH_MMP3_DT)
456e7dd44f4SBaoquan He	help
45750cc4cafSJan Kotas	  Support for Marvell MMP2 and MMP3 SoC clocks
45850cc4cafSJan Kotas
45950cc4cafSJan Kotasconfig COMMON_CLK_MMP2_AUDIO
460c6ca7616SDamien Le Moal        tristate "Clock driver for MMP2 Audio subsystem"
461c6ca7616SDamien Le Moal        depends on COMMON_CLK_MMP2 || COMPILE_TEST
4628e5b7234SYangyu Chen        help
4638e5b7234SYangyu Chen          This driver supports clocks for Audio subsystem on MMP2 SoC.
464c6ca7616SDamien Le Moal
465c6ca7616SDamien Le Moalconfig COMMON_CLK_BD718XX
466c6ca7616SDamien Le Moal	tristate "Clock driver for 32K clk gates on ROHM PMICs"
467d54c1fd4SQin Jian	depends on MFD_ROHM_BD718XX || MFD_ROHM_BD71828
468d54c1fd4SQin Jian	help
469d54c1fd4SQin Jian	  This driver supports ROHM BD71837, BD71847, BD71850, BD71815
470d54c1fd4SQin Jian	  and BD71828 PMICs clock gates.
471d54c1fd4SQin Jian
472d54c1fd4SQin Jianconfig COMMON_CLK_FIXED_MMIO
473d54c1fd4SQin Jian	bool "Clock driver for Memory Mapped Fixed values"
474d54c1fd4SQin Jian	depends on COMMON_CLK && OF
475d54c1fd4SQin Jian	depends on HAS_IOMEM
476d54c1fd4SQin Jian	help
4773495e295SManivannan Sadhasivam	  Support for Memory Mapped IO Fixed clocks
4787b9487a9SPaul Walmsley
479b7d950b9SSerge Seminconfig COMMON_CLK_K210
48064a12c56SStephen Boyd	bool "Clock driver for the Canaan Kendryte K210 SoC"
48172ea4861SBintian Wang	depends on OF && RISCV && SOC_CANAAN_K210
4826b0fd6c1SPaul Burton	default SOC_CANAAN_K210
4833a48d918SAisheng Dong	help
4840880fb86SPaul Cercueil	  Support for the Canaan Kendryte K210 RISC-V SoC clocks.
485b745c079STero Kristo
4862886c846SJames Liaoconfig COMMON_CLK_SP7021
487cb7c47d7SMichael Turquette	tristate "Clock driver for Sunplus SP7021 SoC"
488bef7a78dSDaniel Palmer	depends on SOC_SP7021 || COMPILE_TEST
489635e5e73SDaire McNamara	default SOC_SP7021
4906d803ba7SJean-Christop PLAGNIOL-VILLARD	help
491691521a3SJacky Huang	  This driver supports the Sunplus SP7021 SoC clocks.
49290429205SJiaxun Yang	  It implements SP7021 PLLs/gate.
493b9e65ebcSJames Liao	  Not all features of the PLL are currently supported
49448df7a26SSergio Paracuellos	  by the driver.
495a5bd7f7aSGeert Uytterhoeven
4964d98ed1eSElaine Zhangsource "drivers/clk/actions/Kconfig"
4974ce9b85eSPankaj Dubeysource "drivers/clk/analogbits/Kconfig"
49830b8e27eSPaul Walmsleysource "drivers/clk/baikal-t1/Kconfig"
4993b218baaSKrzysztof Kozlowskisource "drivers/clk/bcm/Kconfig"
50080fd61ecSInochi Amaotosource "drivers/clk/hisilicon/Kconfig"
501d41f59fdSChunyan Zhangsource "drivers/clk/imgtec/Kconfig"
5024210be66SGeert Uytterhoevensource "drivers/clk/imx/Kconfig"
50349c726d5SMaxime Ripardsource "drivers/clk/ingenic/Kconfig"
5041d80c142SMaxime Ripardsource "drivers/clk/keystone/Kconfig"
50531b52ba4SThierry Redingsource "drivers/clk/mediatek/Kconfig"
506ae81b69fSDrew Fustinisource "drivers/clk/meson/Kconfig"
5073ac7ca59SGabriel Fernandezsource "drivers/clk/mstar/Kconfig"
50821330497STony Lindgrensource "drivers/clk/microchip/Kconfig"
509734d82f4SMasahiro Yamadasource "drivers/clk/mvebu/Kconfig"
510b4cbe606SNobuhiro Iwamatsusource "drivers/clk/nuvoton/Kconfig"
511d058fd9eSRahul Tanwarsource "drivers/clk/pistachio/Kconfig"
512a2fe7baaSMichael Trettersource "drivers/clk/qcom/Kconfig"
5133fde0e16SJolly Shahsource "drivers/clk/ralink/Kconfig"
514b9e65ebcSJames Liaosource "drivers/clk/renesas/Kconfig"
515a992acbbSStephen Boydsource "drivers/clk/rockchip/Kconfig"
516723d0530SMaxime Ripardsource "drivers/clk/samsung/Kconfig"
517723d0530SMaxime Ripardsource "drivers/clk/sifive/Kconfig"
518723d0530SMaxime Ripardsource "drivers/clk/socfpga/Kconfig"
519723d0530SMaxime Ripardsource "drivers/clk/sophgo/Kconfig"
520274aff87SStephen Boydsource "drivers/clk/sprd/Kconfig"
521274aff87SStephen Boydsource "drivers/clk/starfive/Kconfig"
522723d0530SMaxime Ripardsource "drivers/clk/sunxi/Kconfig"
523723d0530SMaxime Ripardsource "drivers/clk/sunxi-ng/Kconfig"
524723d0530SMaxime Ripardsource "drivers/clk/tegra/Kconfig"
5255776526bSStephen Boydsource "drivers/clk/thead/Kconfig"
5265776526bSStephen Boydsource "drivers/clk/stm32/Kconfig"
5275776526bSStephen Boydsource "drivers/clk/ti/Kconfig"
5285776526bSStephen Boydsource "drivers/clk/uniphier/Kconfig"
5295776526bSStephen Boydsource "drivers/clk/visconti/Kconfig"
5305776526bSStephen Boydsource "drivers/clk/x86/Kconfig"
5315776526bSStephen Boydsource "drivers/clk/xilinx/Kconfig"
5325776526bSStephen Boydsource "drivers/clk/zynqmp/Kconfig"
5335776526bSStephen Boyd
534a992acbbSStephen Boyd# Kunit test cases
535a992acbbSStephen Boydconfig CLK_KUNIT_TEST
536a992acbbSStephen Boyd	tristate "Basic Clock Framework Kunit Tests" if !KUNIT_ALL_TESTS
537a6c3da03SAudra Mitchell	depends on KUNIT
538a992acbbSStephen Boyd	default KUNIT_ALL_TESTS
539a992acbbSStephen Boyd	select DTC
540a992acbbSStephen Boyd	help
541a992acbbSStephen Boyd	  Kunit tests for the common clock framework.
5422790e2a3SFrank Oltmanns
5432790e2a3SFrank Oltmannsconfig CLK_FIXED_RATE_KUNIT_TEST
5442790e2a3SFrank Oltmanns	tristate "Basic fixed rate clk type KUnit test" if !KUNIT_ALL_TESTS
5452790e2a3SFrank Oltmanns	depends on KUNIT
5462790e2a3SFrank Oltmanns	default KUNIT_ALL_TESTS
5472790e2a3SFrank Oltmanns	select DTC
5482790e2a3SFrank Oltmanns	help
549bbd7ffdbSStephen Boyd	  KUnit tests for the basic fixed rate clk type.
550
551config CLK_GATE_KUNIT_TEST
552	tristate "Basic gate type Kunit test" if !KUNIT_ALL_TESTS
553	depends on KUNIT
554	depends on !S390
555	default KUNIT_ALL_TESTS
556	help
557	  Kunit test for the basic clk gate type.
558
559config CLK_FD_KUNIT_TEST
560	tristate "Basic fractional divider type Kunit test" if !KUNIT_ALL_TESTS
561	depends on KUNIT
562	default KUNIT_ALL_TESTS
563	help
564	  Kunit test for the clk-fractional-divider type.
565
566endif
567