pwm: pca9685: Remove unused duty_cycle struct element
[linux-block.git] / drivers / pwm / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
0c2498f1 2menuconfig PWM
b817bf5c 3 bool "Pulse-Width Modulation (PWM) Support"
0c2498f1 4 help
b817bf5c 5 Generic Pulse-Width Modulation (PWM) support.
0c2498f1 6
b817bf5c
TR
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.
0c2498f1
SH
29
30if PWM
31
76abbdde
HS
32config PWM_SYSFS
33 bool
34 default y if SYSFS
35
3ad1f3a3
UKK
36config 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
6173f8f4
TR
45config 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
32b16d46
BS
54config PWM_ATMEL
55 tristate "Atmel PWM support"
3d4d8574 56 depends on ARCH_AT91 && OF
32b16d46
BS
57 help
58 Generic PWM framework driver for Atmel SoC.
59
60 To compile this driver as a module, choose M here: the module
61 will be called pwm-atmel.
62
2b4984be
BB
63config PWM_ATMEL_HLCDC_PWM
64 tristate "Atmel HLCDC PWM support"
65 depends on MFD_ATMEL_HLCDC
d2048c49 66 depends on HAVE_CLK
2b4984be
BB
67 help
68 Generic PWM framework driver for the PWM output of the HLCDC
69 (Atmel High-end LCD Controller). This PWM output is mainly used
70 to control the LCD backlight.
71
72 To compile this driver as a module, choose M here: the module
73 will be called pwm-atmel-hlcdc.
74
9421bade 75config PWM_ATMEL_TCB
b133d2a1 76 tristate "Atmel TC Block PWM support"
9421bade
BB
77 depends on ATMEL_TCLIB && OF
78 help
79 Generic PWM framework driver for Atmel Timer Counter Block.
80
81 A Timer Counter Block provides 6 PWM devices grouped by 2.
82 Devices in a given group must have the same period.
83
84 To compile this driver as a module, choose M here: the module
85 will be called pwm-atmel-tcb.
86
daa5abc4
YRDR
87config PWM_BCM_IPROC
88 tristate "iProc PWM support"
5bf22ff3
SB
89 depends on ARCH_BCM_IPROC || COMPILE_TEST
90 depends on COMMON_CLK
91 default ARCH_BCM_IPROC
daa5abc4
YRDR
92 help
93 Generic PWM framework driver for Broadcom iProc PWM block. This
94 block is used in Broadcom iProc SoC's.
95
96 To compile this driver as a module, choose M here: the module
97 will be called pwm-bcm-iproc.
98
6a4e4bff
TK
99config PWM_BCM_KONA
100 tristate "Kona PWM support"
88a053d2
CP
101 depends on ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS || COMPILE_TEST
102 depends on HAVE_CLK && HAS_IOMEM
103 default ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS
6a4e4bff
TK
104 help
105 Generic PWM framework driver for Broadcom Kona PWM block.
106
107 To compile this driver as a module, choose M here: the module
108 will be called pwm-bcm-kona.
109
e5a06dc5
BT
110config PWM_BCM2835
111 tristate "BCM2835 PWM support"
fdf47ff6 112 depends on ARCH_BCM2835 || ARCH_BRCMSTB
e5a06dc5
BT
113 help
114 PWM framework driver for BCM2835 controller (Raspberry Pi)
115
116 To compile this driver as a module, choose M here: the module
117 will be called pwm-bcm2835.
118
59d5c8b1
AT
119config PWM_BERLIN
120 tristate "Marvell Berlin PWM support"
121 depends on ARCH_BERLIN
122 help
123 PWM framework driver for Marvell Berlin SoCs.
124
125 To compile this driver as a module, choose M here: the module
126 will be called pwm-berlin.
127
3a9f5957
FF
128config PWM_BRCMSTB
129 tristate "Broadcom STB PWM support"
130 depends on ARCH_BRCMSTB || BMIPS_GENERIC
131 help
132 Generic PWM framework driver for the Broadcom Set-top-Box
133 SoCs (BCM7xxx).
134
135 To compile this driver as a module, choose M Here: the module
136 will be called pwm-brcmstb.c.
137
7eb3f6ff
AS
138config PWM_CLPS711X
139 tristate "CLPS711X PWM support"
140 depends on ARCH_CLPS711X || COMPILE_TEST
dec02f98 141 depends on HAS_IOMEM
7eb3f6ff
AS
142 help
143 Generic PWM framework driver for Cirrus Logic CLPS711X.
144
145 To compile this driver as a module, choose M here: the module
146 will be called pwm-clps711x.
147
a3f37a10
SK
148config PWM_CRC
149 bool "Intel Crystalcove (CRC) PWM support"
150 depends on X86 && INTEL_SOC_PMIC
151 help
152 Generic PWM framework driver for Crystalcove (CRC) PMIC based PWM
153 control.
154
1f0d3bb0
BN
155config PWM_CROS_EC
156 tristate "ChromeOS EC PWM driver"
47f11e0b 157 depends on CROS_EC
1f0d3bb0
BN
158 help
159 PWM driver for exposing a PWM attached to the ChromeOS Embedded
160 Controller.
161
a2308698
HS
162config PWM_EP93XX
163 tristate "Cirrus Logic EP93xx PWM support"
164 depends on ARCH_EP93XX
165 help
166 Generic PWM framework driver for Cirrus Logic EP93xx.
167
168 To compile this driver as a module, choose M here: the module
169 will be called pwm-ep93xx.
170
b505183b
XL
171config PWM_FSL_FTM
172 tristate "Freescale FlexTimer Module (FTM) PWM support"
36d5be4b 173 depends on HAS_IOMEM
b505183b 174 depends on OF
00018a8a 175 select REGMAP_MMIO
b505183b
XL
176 help
177 Generic FTM PWM framework driver for Freescale VF610 and
178 Layerscape LS-1 SoCs.
179
180 To compile this driver as a module, choose M here: the module
181 will be called pwm-fsl-ftm.
182
d09f0081 183config PWM_HIBVT
184 tristate "HiSilicon BVT PWM support"
185 depends on ARCH_HISI || COMPILE_TEST
186 help
187 Generic PWM framework driver for HiSilicon BVT SoCs.
188
189 To compile this driver as a module, choose M here: the module
190 will be called pwm-hibvt.
191
277bb6a2
NT
192config PWM_IMG
193 tristate "Imagination Technologies PWM driver"
194 depends on HAS_IOMEM
195 depends on MFD_SYSCON
196 depends on COMMON_CLK
197 depends on MIPS || COMPILE_TEST
198 help
199 Generic PWM framework driver for Imagination Technologies
200 PWM block which supports 4 channels.
201
202 To compile this driver as a module, choose M here: the module
203 will be called pwm-img
204
d80f8206
UKK
205config PWM_IMX1
206 tristate "i.MX1 PWM support"
29693248
SH
207 depends on ARCH_MXC
208 help
d80f8206 209 Generic PWM framework driver for i.MX1 and i.MX21
29693248
SH
210
211 To compile this driver as a module, choose M here: the module
d80f8206
UKK
212 will be called pwm-imx1.
213
214config PWM_IMX27
215 tristate "i.MX27 PWM support"
216 depends on ARCH_MXC
217 help
218 Generic PWM framework driver for i.MX27 and later i.MX SoCs.
219
220 To compile this driver as a module, choose M here: the module
221 will be called pwm-imx27.
29693248 222
738a1cfe
AH
223config PWM_IMX_TPM
224 tristate "i.MX TPM PWM support"
225 depends on ARCH_MXC || COMPILE_TEST
226 depends on HAVE_CLK && HAS_IOMEM
227 help
228 Generic PWM framework driver for i.MX7ULP TPM module, TPM's full
229 name is Low Power Timer/Pulse Width Modulation Module.
230
231 To compile this driver as a module, choose M here: the module
232 will be called pwm-imx-tpm.
233
f6b8a570 234config PWM_JZ4740
b4190062
PC
235 tristate "Ingenic JZ47xx PWM support"
236 depends on MACH_INGENIC
f6b8a570 237 help
b4190062 238 Generic PWM framework driver for Ingenic JZ47xx based
f6b8a570
TR
239 machines.
240
241 To compile this driver as a module, choose M here: the module
242 will be called pwm-jz4740.
243
af66b3c0
MK
244config PWM_LP3943
245 tristate "TI/National Semiconductor LP3943 PWM support"
246 depends on MFD_LP3943
247 help
248 Generic PWM framework driver for LP3943 which supports two PWM
249 channels.
250
251 To compile this driver as a module, choose M here: the module
252 will be called pwm-lp3943.
253
841e6f90
AA
254config PWM_LPC18XX_SCT
255 tristate "LPC18xx/43xx PWM/SCT support"
256 depends on ARCH_LPC18XX
257 help
258 Generic PWM framework driver for NXP LPC18xx PWM/SCT which
259 supports 16 channels.
260 A maximum of 15 channels can be requested simultaneously and
261 must have the same period.
262
263 To compile this driver as a module, choose M here: the module
264 will be called pwm-lpc18xx-sct.
265
2132fa8d
APS
266config PWM_LPC32XX
267 tristate "LPC32XX PWM support"
268 depends on ARCH_LPC32XX
269 help
270 Generic PWM framework driver for LPC32XX. The LPC32XX SOC has two
271 PWM controllers.
272
273 To compile this driver as a module, choose M here: the module
274 will be called pwm-lpc32xx.
275
d16a5aa9 276config PWM_LPSS
6f90a00c 277 tristate
d16a5aa9 278
c558e39e
AS
279config PWM_LPSS_PCI
280 tristate "Intel LPSS PWM PCI driver"
6f90a00c
AS
281 depends on X86 && PCI
282 select PWM_LPSS
c558e39e
AS
283 help
284 The PCI driver for Intel Low Power Subsystem PWM controller.
285
286 To compile this driver as a module, choose M here: the module
287 will be called pwm-lpss-pci.
288
289config PWM_LPSS_PLATFORM
290 tristate "Intel LPSS PWM platform driver"
6f90a00c
AS
291 depends on X86 && ACPI
292 select PWM_LPSS
c558e39e
AS
293 help
294 The platform driver for Intel Low Power Subsystem PWM controller.
295
296 To compile this driver as a module, choose M here: the module
297 will be called pwm-lpss-platform.
298
211ed630
NA
299config PWM_MESON
300 tristate "Amlogic Meson PWM driver"
301 depends on ARCH_MESON
302 help
303 The platform driver for Amlogic Meson PWM controller.
304
305 To compile this driver as a module, choose M here: the module
306 will be called pwm-meson.
307
7e3b7dc7
YH
308config PWM_MTK_DISP
309 tristate "MediaTek display PWM driver"
310 depends on ARCH_MEDIATEK || COMPILE_TEST
311 depends on HAS_IOMEM
312 help
313 Generic PWM framework driver for MediaTek disp-pwm device.
314 The PWM is used to control the backlight brightness for display.
315
316 To compile this driver as a module, choose M here: the module
317 will be called pwm-mtk-disp.
318
caf065f8
JC
319config PWM_MEDIATEK
320 tristate "MediaTek PWM support"
8cdc43af 321 depends on ARCH_MEDIATEK || RALINK || COMPILE_TEST
caf065f8
JC
322 help
323 Generic PWM framework driver for Mediatek ARM SoC.
324
325 To compile this driver as a module, choose M here: the module
aa12d7a7 326 will be called pwm-mediatek.
caf065f8 327
4dce82c1
SG
328config PWM_MXS
329 tristate "Freescale MXS PWM support"
330 depends on ARCH_MXS && OF
01bf32e9 331 select STMP_DEVICE
4dce82c1
SG
332 help
333 Generic PWM framework driver for Freescale MXS.
334
335 To compile this driver as a module, choose M here: the module
336 will be called pwm-mxs.
337
6604c655
NA
338config PWM_OMAP_DMTIMER
339 tristate "OMAP Dual-Mode Timer PWM support"
9f2919e9
UKK
340 depends on OF
341 depends on OMAP_DM_TIMER || COMPILE_TEST
6604c655
NA
342 help
343 Generic PWM framework driver for OMAP Dual-Mode Timer PWM output
344
345 To compile this driver as a module, choose M here: the module
346 will be called pwm-omap-dmtimer
347
88b613e6
ST
348config PWM_PCA9685
349 tristate "NXP PCA9685 PWM driver"
912b8439 350 depends on I2C
2c80a492 351 select REGMAP_I2C
88b613e6
ST
352 help
353 Generic PWM framework driver for NXP PCA9685 LED controller.
354
355 To compile this driver as a module, choose M here: the module
356 will be called pwm-pca9685.
357
79c11b6f
TR
358config PWM_PUV3
359 tristate "PKUnity NetBook-0916 PWM support"
360 depends on ARCH_PUV3
361 help
362 Generic PWM framework driver for PKUnity NetBook-0916.
363
364 To compile this driver as a module, choose M here: the module
365 will be called pwm-puv3.
366
17b2b478
TR
367config PWM_PXA
368 tristate "PXA PWM support"
369 depends on ARCH_PXA
370 help
371 Generic PWM framework driver for PXA.
372
373 To compile this driver as a module, choose M here: the module
374 will be called pwm-pxa.
375
ed6c1476
YS
376config PWM_RCAR
377 tristate "Renesas R-Car PWM support"
48169988 378 depends on ARCH_RENESAS || COMPILE_TEST
ed6c1476
YS
379 depends on HAS_IOMEM
380 help
381 This driver exposes the PWM Timer controller found in Renesas
382 R-Car chips through the PWM API.
383
384 To compile this driver as a module, choose M here: the module
385 will be called pwm-rcar.
386
99b82abb
LP
387config PWM_RENESAS_TPU
388 tristate "Renesas TPU PWM support"
03d99531 389 depends on ARCH_RENESAS || COMPILE_TEST
2974b098 390 depends on HAS_IOMEM
99b82abb
LP
391 help
392 This driver exposes the Timer Pulse Unit (TPU) PWM controller found
393 in Renesas chips through the PWM API.
394
395 To compile this driver as a module, choose M here: the module
396 will be called pwm-renesas-tpu.
397
101353c8
BG
398config PWM_ROCKCHIP
399 tristate "Rockchip PWM support"
400 depends on ARCH_ROCKCHIP
401 help
402 Generic PWM framework driver for the PWM controller found on
403 Rockchip SoCs.
404
215c29d3 405config PWM_SAMSUNG
b133d2a1 406 tristate "Samsung PWM support"
06e4cb6b 407 depends on PLAT_SAMSUNG || ARCH_EXYNOS
215c29d3
SH
408 help
409 Generic PWM framework driver for Samsung.
410
411 To compile this driver as a module, choose M here: the module
412 will be called pwm-samsung.
413
9e37a53e
YS
414config PWM_SIFIVE
415 tristate "SiFive PWM support"
416 depends on OF
417 depends on COMMON_CLK
418 depends on RISCV || COMPILE_TEST
419 help
420 Generic PWM framework driver for SiFive SoCs.
421
422 To compile this driver as a module, choose M here: the module
423 will be called pwm-sifive.
424
ce20364b
SH
425config PWM_SPEAR
426 tristate "STMicroelectronics SPEAr PWM support"
427 depends on PLAT_SPEAR
428 depends on OF
429 help
430 Generic PWM framework driver for the PWM controller on ST
431 SPEAr SoCs.
432
433 To compile this driver as a module, choose M here: the module
434 will be called pwm-spear.
435
8aae4b02
BW
436config PWM_SPRD
437 tristate "Spreadtrum PWM support"
438 depends on ARCH_SPRD || COMPILE_TEST
439 depends on HAS_IOMEM
440 help
441 Generic PWM framework driver for the PWM controller on
442 Spreadtrum SoCs.
443
444 To compile this driver as a module, choose M here: the module
445 will be called pwm-sprd.
446
378fe115
LJ
447config PWM_STI
448 tristate "STiH4xx PWM support"
449 depends on ARCH_STI
450 depends on OF
451 help
452 Generic PWM framework driver for STiH4xx SoCs.
453
454 To compile this driver as a module, choose M here: the module
455 will be called pwm-sti.
456
7edf7369
BG
457config PWM_STM32
458 tristate "STMicroelectronics STM32 PWM"
d968e504 459 depends on MFD_STM32_TIMERS
7edf7369
BG
460 help
461 Generic PWM framework driver for STM32 SoCs.
462
463 To compile this driver as a module, choose M here: the module
464 will be called pwm-stm32.
465
e70a540b
FG
466config PWM_STM32_LP
467 tristate "STMicroelectronics STM32 PWM LP"
468 depends on MFD_STM32_LPTIMER || COMPILE_TEST
469 help
470 Generic PWM framework driver for STMicroelectronics STM32 SoCs
471 with Low-Power Timer (LPTIM).
472
473 To compile this driver as a module, choose M here: the module
474 will be called pwm-stm32-lp.
475
ef1f09ec
LW
476config PWM_STMPE
477 bool "STMPE expander PWM export"
478 depends on MFD_STMPE
479 help
480 This enables support for the PWMs found in the STMPE I/O
481 expanders.
482
09853ce7
AB
483config PWM_SUN4I
484 tristate "Allwinner PWM support"
485 depends on ARCH_SUNXI || COMPILE_TEST
486 depends on HAS_IOMEM && COMMON_CLK
487 help
488 Generic PWM framework driver for Allwinner SoCs.
489
490 To compile this driver as a module, choose M here: the module
491 will be called pwm-sun4i.
492
0134b932
TR
493config PWM_TEGRA
494 tristate "NVIDIA Tegra PWM support"
495 depends on ARCH_TEGRA
496 help
497 Generic PWM framework driver for the PWFM controller found on NVIDIA
498 Tegra SoCs.
499
500 To compile this driver as a module, choose M here: the module
501 will be called pwm-tegra.
502
f24e5641 503config PWM_TIECAP
8e0cb05b 504 tristate "ECAP PWM support"
6f37709f 505 depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3
8e0cb05b 506 help
6f37709f 507 PWM driver support for the ECAP APWM controller found on TI SOCs
8e0cb05b
PA
508
509 To compile this driver as a module, choose M here: the module
510 will be called pwm-tiecap.
511
f24e5641 512config PWM_TIEHRPWM
19891b20 513 tristate "EHRPWM PWM support"
efc80fb3 514 depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3
19891b20 515 help
efc80fb3 516 PWM driver support for the EHRPWM controller found on TI SOCs
19891b20
PA
517
518 To compile this driver as a module, choose M here: the module
519 will be called pwm-tiehrpwm.
520
3744c263
PU
521config PWM_TWL
522 tristate "TWL4030/6030 PWM support"
523 depends on TWL4030_CORE
524 help
525 Generic PWM framework driver for TWL4030/6030.
526
527 To compile this driver as a module, choose M here: the module
528 will be called pwm-twl.
529
aa765647
PU
530config PWM_TWL_LED
531 tristate "TWL4030/6030 PWM support for LED drivers"
532 depends on TWL4030_CORE
533 help
534 Generic PWM framework driver for TWL4030/6030 LED terminals.
535
536 To compile this driver as a module, choose M here: the module
537 will be called pwm-twl-led.
538
a245cceb 539config PWM_VT8500
b133d2a1 540 tristate "vt8500 PWM support"
a245cceb
SH
541 depends on ARCH_VT8500
542 help
543 Generic PWM framework driver for vt8500.
544
545 To compile this driver as a module, choose M here: the module
546 will be called pwm-vt8500.
547
4836193c
SG
548config PWM_ZX
549 tristate "ZTE ZX PWM support"
550 depends on ARCH_ZX
551 help
552 Generic PWM framework driver for ZTE ZX family SoCs.
553
554 To compile this driver as a module, choose M here: the module
555 will be called pwm-zx.
556
0c2498f1 557endif