pwm: Add DesignWare PWM Controller Driver
[linux-2.6-microblaze.git] / drivers / pwm / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 menuconfig PWM
3         bool "Pulse-Width Modulation (PWM) Support"
4         help
5           Generic Pulse-Width Modulation (PWM) support.
6
7           In Pulse-Width Modulation, a variation of the width of pulses
8           in a rectangular pulse signal is used as a means to alter the
9           average power of the signal. Applications include efficient
10           power delivery and voltage regulation. In computer systems,
11           PWMs are commonly used to control fans or the brightness of
12           display backlights.
13
14           This framework provides a generic interface to PWM devices
15           within the Linux kernel. On the driver side it provides an API
16           to register and unregister a PWM chip, an abstraction of a PWM
17           controller, that supports one or more PWM devices. Client
18           drivers can request PWM devices and use the generic framework
19           to configure as well as enable and disable them.
20
21           This generic framework replaces the legacy PWM framework which
22           allows only a single driver implementing the required API. Not
23           all legacy implementations have been ported to the framework
24           yet. The framework provides an API that is backward compatible
25           with the legacy framework so that existing client drivers
26           continue to work as expected.
27
28           If unsure, say no.
29
30 if PWM
31
32 config PWM_SYSFS
33         bool
34         default y if SYSFS
35
36 config PWM_DEBUG
37         bool "PWM lowlevel drivers additional checks and debug messages"
38         depends on DEBUG_KERNEL
39         help
40           This option enables some additional checks to help lowlevel driver
41           authors to get their callbacks implemented correctly.
42           It is expected to introduce some runtime overhead and diagnostic
43           output to the kernel log, so only enable while working on a driver.
44
45 config PWM_AB8500
46         tristate "AB8500 PWM support"
47         depends on AB8500_CORE && ARCH_U8500
48         help
49           Generic PWM framework driver for Analog Baseband AB8500.
50
51           To compile this driver as a module, choose M here: the module
52           will be called pwm-ab8500.
53
54 config PWM_ATMEL
55         tristate "Atmel PWM support"
56         depends on OF
57         depends on ARCH_AT91 || COMPILE_TEST
58         help
59           Generic PWM framework driver for Atmel SoC.
60
61           To compile this driver as a module, choose M here: the module
62           will be called pwm-atmel.
63
64 config PWM_ATMEL_HLCDC_PWM
65         tristate "Atmel HLCDC PWM support"
66         depends on MFD_ATMEL_HLCDC
67         depends on HAVE_CLK
68         help
69           Generic PWM framework driver for the PWM output of the HLCDC
70           (Atmel High-end LCD Controller). This PWM output is mainly used
71           to control the LCD backlight.
72
73           To compile this driver as a module, choose M here: the module
74           will be called pwm-atmel-hlcdc.
75
76 config PWM_ATMEL_TCB
77         tristate "Atmel TC Block PWM support"
78         depends on OF
79         select REGMAP_MMIO
80         help
81           Generic PWM framework driver for Atmel Timer Counter Block.
82
83           A Timer Counter Block provides 6 PWM devices grouped by 2.
84           Devices in a given group must have the same period.
85
86           To compile this driver as a module, choose M here: the module
87           will be called pwm-atmel-tcb.
88
89 config PWM_BCM_IPROC
90         tristate "iProc PWM support"
91         depends on ARCH_BCM_IPROC || COMPILE_TEST
92         depends on COMMON_CLK
93         default ARCH_BCM_IPROC
94         help
95           Generic PWM framework driver for Broadcom iProc PWM block. This
96           block is used in Broadcom iProc SoC's.
97
98           To compile this driver as a module, choose M here: the module
99           will be called pwm-bcm-iproc.
100
101 config PWM_BCM_KONA
102         tristate "Kona PWM support"
103         depends on ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS || COMPILE_TEST
104         depends on HAVE_CLK && HAS_IOMEM
105         default ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS
106         help
107           Generic PWM framework driver for Broadcom Kona PWM block.
108
109           To compile this driver as a module, choose M here: the module
110           will be called pwm-bcm-kona.
111
112 config PWM_BCM2835
113         tristate "BCM2835 PWM support"
114         depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
115         help
116           PWM framework driver for BCM2835 controller (Raspberry Pi)
117
118           To compile this driver as a module, choose M here: the module
119           will be called pwm-bcm2835.
120
121 config PWM_BERLIN
122         tristate "Marvell Berlin PWM support"
123         depends on ARCH_BERLIN || COMPILE_TEST
124         help
125           PWM framework driver for Marvell Berlin SoCs.
126
127           To compile this driver as a module, choose M here: the module
128           will be called pwm-berlin.
129
130 config PWM_BRCMSTB
131         tristate "Broadcom STB PWM support"
132         depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
133         help
134           Generic PWM framework driver for the Broadcom Set-top-Box
135           SoCs (BCM7xxx).
136
137           To compile this driver as a module, choose M Here: the module
138           will be called pwm-brcmstb.c.
139
140 config PWM_CLPS711X
141         tristate "CLPS711X PWM support"
142         depends on ARCH_CLPS711X || COMPILE_TEST
143         depends on HAS_IOMEM
144         help
145           Generic PWM framework driver for Cirrus Logic CLPS711X.
146
147           To compile this driver as a module, choose M here: the module
148           will be called pwm-clps711x.
149
150 config PWM_CRC
151         bool "Intel Crystalcove (CRC) PWM support"
152         depends on X86 && INTEL_SOC_PMIC
153         help
154           Generic PWM framework driver for Crystalcove (CRC) PMIC based PWM
155           control.
156
157 config PWM_CROS_EC
158         tristate "ChromeOS EC PWM driver"
159         depends on CROS_EC
160         help
161           PWM driver for exposing a PWM attached to the ChromeOS Embedded
162           Controller.
163
164 config PWM_DWC
165         tristate "DesignWare PWM Controller"
166         depends on PCI
167         help
168           PWM driver for Synopsys DWC PWM Controller attached to a PCI bus.
169
170           To compile this driver as a module, choose M here: the module
171           will be called pwm-dwc.
172
173 config PWM_EP93XX
174         tristate "Cirrus Logic EP93xx PWM support"
175         depends on ARCH_EP93XX || COMPILE_TEST
176         help
177           Generic PWM framework driver for Cirrus Logic EP93xx.
178
179           To compile this driver as a module, choose M here: the module
180           will be called pwm-ep93xx.
181
182 config PWM_FSL_FTM
183         tristate "Freescale FlexTimer Module (FTM) PWM support"
184         depends on HAS_IOMEM
185         depends on OF
186         select REGMAP_MMIO
187         help
188           Generic FTM PWM framework driver for Freescale VF610 and
189           Layerscape LS-1 SoCs.
190
191           To compile this driver as a module, choose M here: the module
192           will be called pwm-fsl-ftm.
193
194 config PWM_HIBVT
195         tristate "HiSilicon BVT PWM support"
196         depends on ARCH_HISI || COMPILE_TEST
197         help
198           Generic PWM framework driver for HiSilicon BVT SoCs.
199
200           To compile this driver as a module, choose M here: the module
201           will be called pwm-hibvt.
202
203 config PWM_IMG
204         tristate "Imagination Technologies PWM driver"
205         depends on HAS_IOMEM
206         depends on MFD_SYSCON
207         depends on COMMON_CLK
208         depends on MIPS || COMPILE_TEST
209         help
210           Generic PWM framework driver for Imagination Technologies
211           PWM block which supports 4 channels.
212
213           To compile this driver as a module, choose M here: the module
214           will be called pwm-img
215
216 config PWM_IMX1
217         tristate "i.MX1 PWM support"
218         depends on ARCH_MXC || COMPILE_TEST
219         help
220           Generic PWM framework driver for i.MX1 and i.MX21
221
222           To compile this driver as a module, choose M here: the module
223           will be called pwm-imx1.
224
225 config PWM_IMX27
226         tristate "i.MX27 PWM support"
227         depends on ARCH_MXC || COMPILE_TEST
228         help
229           Generic PWM framework driver for i.MX27 and later i.MX SoCs.
230
231           To compile this driver as a module, choose M here: the module
232           will be called pwm-imx27.
233
234 config PWM_IMX_TPM
235         tristate "i.MX TPM PWM support"
236         depends on ARCH_MXC || COMPILE_TEST
237         depends on HAVE_CLK && HAS_IOMEM
238         help
239           Generic PWM framework driver for i.MX7ULP TPM module, TPM's full
240           name is Low Power Timer/Pulse Width Modulation Module.
241
242           To compile this driver as a module, choose M here: the module
243           will be called pwm-imx-tpm.
244
245 config PWM_IQS620A
246         tristate "Azoteq IQS620A PWM support"
247         depends on MFD_IQS62X || COMPILE_TEST
248         help
249           Generic PWM framework driver for the Azoteq IQS620A multi-function
250           sensor.
251
252           To compile this driver as a module, choose M here: the module will
253           be called pwm-iqs620a.
254
255 config PWM_JZ4740
256         tristate "Ingenic JZ47xx PWM support"
257         depends on MIPS
258         depends on COMMON_CLK
259         select MFD_SYSCON
260         help
261           Generic PWM framework driver for Ingenic JZ47xx based
262           machines.
263
264           To compile this driver as a module, choose M here: the module
265           will be called pwm-jz4740.
266
267 config PWM_KEEMBAY
268         tristate "Intel Keem Bay PWM driver"
269         depends on ARCH_KEEMBAY || (ARM64 && COMPILE_TEST)
270         help
271           The platform driver for Intel Keem Bay PWM controller.
272
273           To compile this driver as a module, choose M here: the module
274           will be called pwm-keembay.
275
276 config PWM_LP3943
277         tristate "TI/National Semiconductor LP3943 PWM support"
278         depends on MFD_LP3943
279         help
280           Generic PWM framework driver for LP3943 which supports two PWM
281           channels.
282
283           To compile this driver as a module, choose M here: the module
284           will be called pwm-lp3943.
285
286 config PWM_LPC18XX_SCT
287         tristate "LPC18xx/43xx PWM/SCT support"
288         depends on ARCH_LPC18XX || COMPILE_TEST
289         help
290           Generic PWM framework driver for NXP LPC18xx PWM/SCT which
291           supports 16 channels.
292           A maximum of 15 channels can be requested simultaneously and
293           must have the same period.
294
295           To compile this driver as a module, choose M here: the module
296           will be called pwm-lpc18xx-sct.
297
298 config PWM_LPC32XX
299         tristate "LPC32XX PWM support"
300         depends on ARCH_LPC32XX || COMPILE_TEST
301         help
302           Generic PWM framework driver for LPC32XX. The LPC32XX SOC has two
303           PWM controllers.
304
305           To compile this driver as a module, choose M here: the module
306           will be called pwm-lpc32xx.
307
308 config PWM_LPSS
309         tristate
310
311 config PWM_LPSS_PCI
312         tristate "Intel LPSS PWM PCI driver"
313         depends on X86 && PCI
314         select PWM_LPSS
315         help
316           The PCI driver for Intel Low Power Subsystem PWM controller.
317
318           To compile this driver as a module, choose M here: the module
319           will be called pwm-lpss-pci.
320
321 config PWM_LPSS_PLATFORM
322         tristate "Intel LPSS PWM platform driver"
323         depends on X86 && ACPI
324         select PWM_LPSS
325         help
326           The platform driver for Intel Low Power Subsystem PWM controller.
327
328           To compile this driver as a module, choose M here: the module
329           will be called pwm-lpss-platform.
330
331 config PWM_MESON
332         tristate "Amlogic Meson PWM driver"
333         depends on ARCH_MESON || COMPILE_TEST
334         depends on COMMON_CLK
335         help
336           The platform driver for Amlogic Meson PWM controller.
337
338           To compile this driver as a module, choose M here: the module
339           will be called pwm-meson.
340
341 config PWM_MTK_DISP
342         tristate "MediaTek display PWM driver"
343         depends on ARCH_MEDIATEK || COMPILE_TEST
344         depends on HAS_IOMEM
345         help
346           Generic PWM framework driver for MediaTek disp-pwm device.
347           The PWM is used to control the backlight brightness for display.
348
349           To compile this driver as a module, choose M here: the module
350           will be called pwm-mtk-disp.
351
352 config PWM_MEDIATEK
353         tristate "MediaTek PWM support"
354         depends on ARCH_MEDIATEK || RALINK || COMPILE_TEST
355         help
356           Generic PWM framework driver for Mediatek ARM SoC.
357
358           To compile this driver as a module, choose M here: the module
359           will be called pwm-mediatek.
360
361 config PWM_MXS
362         tristate "Freescale MXS PWM support"
363         depends on OF
364         depends on ARCH_MXS || COMPILE_TEST
365         select STMP_DEVICE
366         help
367           Generic PWM framework driver for Freescale MXS.
368
369           To compile this driver as a module, choose M here: the module
370           will be called pwm-mxs.
371
372 config PWM_OMAP_DMTIMER
373         tristate "OMAP Dual-Mode Timer PWM support"
374         depends on OF
375         depends on OMAP_DM_TIMER || COMPILE_TEST
376         help
377           Generic PWM framework driver for OMAP Dual-Mode Timer PWM output
378
379           To compile this driver as a module, choose M here: the module
380           will be called pwm-omap-dmtimer
381
382 config PWM_PCA9685
383         tristate "NXP PCA9685 PWM driver"
384         depends on I2C
385         select REGMAP_I2C
386         help
387           Generic PWM framework driver for NXP PCA9685 LED controller.
388
389           To compile this driver as a module, choose M here: the module
390           will be called pwm-pca9685.
391
392 config PWM_PXA
393         tristate "PXA PWM support"
394         depends on ARCH_PXA || COMPILE_TEST
395         help
396           Generic PWM framework driver for PXA.
397
398           To compile this driver as a module, choose M here: the module
399           will be called pwm-pxa.
400
401 config PWM_RCAR
402         tristate "Renesas R-Car PWM support"
403         depends on ARCH_RENESAS || COMPILE_TEST
404         depends on HAS_IOMEM
405         help
406           This driver exposes the PWM Timer controller found in Renesas
407           R-Car chips through the PWM API.
408
409           To compile this driver as a module, choose M here: the module
410           will be called pwm-rcar.
411
412 config PWM_RENESAS_TPU
413         tristate "Renesas TPU PWM support"
414         depends on ARCH_RENESAS || COMPILE_TEST
415         depends on HAS_IOMEM
416         help
417           This driver exposes the Timer Pulse Unit (TPU) PWM controller found
418           in Renesas chips through the PWM API.
419
420           To compile this driver as a module, choose M here: the module
421           will be called pwm-renesas-tpu.
422
423 config PWM_ROCKCHIP
424         tristate "Rockchip PWM support"
425         depends on ARCH_ROCKCHIP || COMPILE_TEST
426         help
427           Generic PWM framework driver for the PWM controller found on
428           Rockchip SoCs.
429
430 config PWM_SAMSUNG
431         tristate "Samsung PWM support"
432         depends on PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
433         help
434           Generic PWM framework driver for Samsung.
435
436           To compile this driver as a module, choose M here: the module
437           will be called pwm-samsung.
438
439 config PWM_SIFIVE
440         tristate "SiFive PWM support"
441         depends on OF
442         depends on COMMON_CLK
443         depends on RISCV || COMPILE_TEST
444         help
445           Generic PWM framework driver for SiFive SoCs.
446
447           To compile this driver as a module, choose M here: the module
448           will be called pwm-sifive.
449
450 config PWM_SL28CPLD
451         tristate "Kontron sl28cpld PWM support"
452         depends on MFD_SL28CPLD || COMPILE_TEST
453         help
454           Generic PWM framework driver for board management controller
455           found on the Kontron sl28 CPLD.
456
457           To compile this driver as a module, choose M here: the module
458           will be called pwm-sl28cpld.
459
460 config PWM_SPEAR
461         tristate "STMicroelectronics SPEAr PWM support"
462         depends on PLAT_SPEAR || COMPILE_TEST
463         depends on OF
464         help
465           Generic PWM framework driver for the PWM controller on ST
466           SPEAr SoCs.
467
468           To compile this driver as a module, choose M here: the module
469           will be called pwm-spear.
470
471 config PWM_SPRD
472         tristate "Spreadtrum PWM support"
473         depends on ARCH_SPRD || COMPILE_TEST
474         depends on HAS_IOMEM
475         help
476           Generic PWM framework driver for the PWM controller on
477           Spreadtrum SoCs.
478
479           To compile this driver as a module, choose M here: the module
480           will be called pwm-sprd.
481
482 config PWM_STI
483         tristate "STiH4xx PWM support"
484         depends on ARCH_STI || COMPILE_TEST
485         depends on OF
486         help
487           Generic PWM framework driver for STiH4xx SoCs.
488
489           To compile this driver as a module, choose M here: the module
490           will be called pwm-sti.
491
492 config PWM_STM32
493         tristate "STMicroelectronics STM32 PWM"
494         depends on MFD_STM32_TIMERS || COMPILE_TEST
495         help
496           Generic PWM framework driver for STM32 SoCs.
497
498           To compile this driver as a module, choose M here: the module
499           will be called pwm-stm32.
500
501 config PWM_STM32_LP
502         tristate "STMicroelectronics STM32 PWM LP"
503         depends on MFD_STM32_LPTIMER || COMPILE_TEST
504         help
505           Generic PWM framework driver for STMicroelectronics STM32 SoCs
506           with Low-Power Timer (LPTIM).
507
508           To compile this driver as a module, choose M here: the module
509           will be called pwm-stm32-lp.
510
511 config PWM_STMPE
512         bool "STMPE expander PWM export"
513         depends on MFD_STMPE
514         help
515           This enables support for the PWMs found in the STMPE I/O
516           expanders.
517
518 config PWM_SUN4I
519         tristate "Allwinner PWM support"
520         depends on ARCH_SUNXI || COMPILE_TEST
521         depends on HAS_IOMEM && COMMON_CLK
522         help
523           Generic PWM framework driver for Allwinner SoCs.
524
525           To compile this driver as a module, choose M here: the module
526           will be called pwm-sun4i.
527
528 config PWM_TEGRA
529         tristate "NVIDIA Tegra PWM support"
530         depends on ARCH_TEGRA || COMPILE_TEST
531         help
532           Generic PWM framework driver for the PWFM controller found on NVIDIA
533           Tegra SoCs.
534
535           To compile this driver as a module, choose M here: the module
536           will be called pwm-tegra.
537
538 config PWM_TIECAP
539         tristate "ECAP PWM support"
540         depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
541         help
542           PWM driver support for the ECAP APWM controller found on TI SOCs
543
544           To compile this driver as a module, choose M here: the module
545           will be called pwm-tiecap.
546
547 config PWM_TIEHRPWM
548         tristate "EHRPWM PWM support"
549         depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3 || COMPILE_TEST
550         help
551           PWM driver support for the EHRPWM controller found on TI SOCs
552
553           To compile this driver as a module, choose M here: the module
554           will be called pwm-tiehrpwm.
555
556 config PWM_TWL
557         tristate "TWL4030/6030 PWM support"
558         depends on TWL4030_CORE
559         help
560           Generic PWM framework driver for TWL4030/6030.
561
562           To compile this driver as a module, choose M here: the module
563           will be called pwm-twl.
564
565 config PWM_TWL_LED
566         tristate "TWL4030/6030 PWM support for LED drivers"
567         depends on TWL4030_CORE
568         help
569           Generic PWM framework driver for TWL4030/6030 LED terminals.
570
571           To compile this driver as a module, choose M here: the module
572           will be called pwm-twl-led.
573
574 config PWM_VT8500
575         tristate "vt8500 PWM support"
576         depends on ARCH_VT8500 || COMPILE_TEST
577         help
578           Generic PWM framework driver for vt8500.
579
580           To compile this driver as a module, choose M here: the module
581           will be called pwm-vt8500.
582
583 config PWM_ZX
584         tristate "ZTE ZX PWM support"
585         depends on ARCH_ZX || COMPILE_TEST
586         help
587           Generic PWM framework driver for ZTE ZX family SoCs.
588
589           To compile this driver as a module, choose M here: the module
590           will be called pwm-zx.
591
592 endif