xref: /OK3568_Linux_fs/kernel/drivers/pwm/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig 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
30if PWM
31
32config PWM_SYSFS
33	bool
34	default y if SYSFS
35
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
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
54config 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
64config 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
76config PWM_ATMEL_TCB
77	tristate "Atmel TC Block PWM support"
78	depends on ATMEL_TCLIB && OF
79	help
80	  Generic PWM framework driver for Atmel Timer Counter Block.
81
82	  A Timer Counter Block provides 6 PWM devices grouped by 2.
83	  Devices in a given group must have the same period.
84
85	  To compile this driver as a module, choose M here: the module
86	  will be called pwm-atmel-tcb.
87
88config PWM_BCM_IPROC
89	tristate "iProc PWM support"
90	depends on ARCH_BCM_IPROC || COMPILE_TEST
91	depends on COMMON_CLK
92	default ARCH_BCM_IPROC
93	help
94	  Generic PWM framework driver for Broadcom iProc PWM block. This
95	  block is used in Broadcom iProc SoC's.
96
97	  To compile this driver as a module, choose M here: the module
98	  will be called pwm-bcm-iproc.
99
100config PWM_BCM_KONA
101	tristate "Kona PWM support"
102	depends on ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS || COMPILE_TEST
103	depends on HAVE_CLK && HAS_IOMEM
104	default ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS
105	help
106	  Generic PWM framework driver for Broadcom Kona PWM block.
107
108	  To compile this driver as a module, choose M here: the module
109	  will be called pwm-bcm-kona.
110
111config PWM_BCM2835
112	tristate "BCM2835 PWM support"
113	depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
114	help
115	  PWM framework driver for BCM2835 controller (Raspberry Pi)
116
117	  To compile this driver as a module, choose M here: the module
118	  will be called pwm-bcm2835.
119
120config PWM_BERLIN
121	tristate "Marvell Berlin PWM support"
122	depends on ARCH_BERLIN || COMPILE_TEST
123	help
124	  PWM framework driver for Marvell Berlin SoCs.
125
126	  To compile this driver as a module, choose M here: the module
127	  will be called pwm-berlin.
128
129config PWM_BRCMSTB
130	tristate "Broadcom STB PWM support"
131	depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
132	help
133	  Generic PWM framework driver for the Broadcom Set-top-Box
134	  SoCs (BCM7xxx).
135
136	  To compile this driver as a module, choose M Here: the module
137	  will be called pwm-brcmstb.c.
138
139config PWM_CLPS711X
140	tristate "CLPS711X PWM support"
141	depends on ARCH_CLPS711X || COMPILE_TEST
142	depends on HAS_IOMEM
143	help
144	  Generic PWM framework driver for Cirrus Logic CLPS711X.
145
146	  To compile this driver as a module, choose M here: the module
147	  will be called pwm-clps711x.
148
149config PWM_CRC
150	bool "Intel Crystalcove (CRC) PWM support"
151	depends on X86 && INTEL_SOC_PMIC
152	help
153	  Generic PWM framework driver for Crystalcove (CRC) PMIC based PWM
154	  control.
155
156config PWM_CROS_EC
157	tristate "ChromeOS EC PWM driver"
158	depends on CROS_EC
159	help
160	  PWM driver for exposing a PWM attached to the ChromeOS Embedded
161	  Controller.
162
163config PWM_EP93XX
164	tristate "Cirrus Logic EP93xx PWM support"
165	depends on ARCH_EP93XX || COMPILE_TEST
166	help
167	  Generic PWM framework driver for Cirrus Logic EP93xx.
168
169	  To compile this driver as a module, choose M here: the module
170	  will be called pwm-ep93xx.
171
172config PWM_FSL_FTM
173	tristate "Freescale FlexTimer Module (FTM) PWM support"
174	depends on HAS_IOMEM
175	depends on OF
176	select REGMAP_MMIO
177	help
178	  Generic FTM PWM framework driver for Freescale VF610 and
179	  Layerscape LS-1 SoCs.
180
181	  To compile this driver as a module, choose M here: the module
182	  will be called pwm-fsl-ftm.
183
184config PWM_GPIO
185	tristate "Generic GPIO bit-banged PWM driver"
186	depends on OF
187	depends on GPIOLIB
188	help
189	  Some platforms do not offer any hardware PWM capabilities but do have
190	  General Purpose Input Output (GPIO) pins available. Using the kernels
191	  High-Resolution Timer API this driver tries to toggle GPIO using the
192	  generic kernel PWM framework. The maximum frequency and/or accuracy
193	  is dependent on several factors such as system load and the maximum
194	  speed a pin can be toggled at the hardware.
195
196	  To compile this driver as a module, choose M here: the module
197	  will be called pwm-gpio.
198
199config PWM_HIBVT
200	tristate "HiSilicon BVT PWM support"
201	depends on ARCH_HISI || COMPILE_TEST
202	help
203	  Generic PWM framework driver for HiSilicon BVT SoCs.
204
205	  To compile this driver as a module, choose M here: the module
206	  will be called pwm-hibvt.
207
208config PWM_IMG
209	tristate "Imagination Technologies PWM driver"
210	depends on HAS_IOMEM
211	depends on MFD_SYSCON
212	depends on COMMON_CLK
213	depends on MIPS || COMPILE_TEST
214	help
215	  Generic PWM framework driver for Imagination Technologies
216	  PWM block which supports 4 channels.
217
218	  To compile this driver as a module, choose M here: the module
219	  will be called pwm-img
220
221config PWM_IMX1
222	tristate "i.MX1 PWM support"
223	depends on ARCH_MXC || COMPILE_TEST
224	help
225	  Generic PWM framework driver for i.MX1 and i.MX21
226
227	  To compile this driver as a module, choose M here: the module
228	  will be called pwm-imx1.
229
230config PWM_IMX27
231	tristate "i.MX27 PWM support"
232	depends on ARCH_MXC || COMPILE_TEST
233	help
234	  Generic PWM framework driver for i.MX27 and later i.MX SoCs.
235
236	  To compile this driver as a module, choose M here: the module
237	  will be called pwm-imx27.
238
239config PWM_IMX_TPM
240	tristate "i.MX TPM PWM support"
241	depends on ARCH_MXC || COMPILE_TEST
242	depends on HAVE_CLK && HAS_IOMEM
243	help
244	  Generic PWM framework driver for i.MX7ULP TPM module, TPM's full
245	  name is Low Power Timer/Pulse Width Modulation Module.
246
247	  To compile this driver as a module, choose M here: the module
248	  will be called pwm-imx-tpm.
249
250config PWM_IQS620A
251	tristate "Azoteq IQS620A PWM support"
252	depends on MFD_IQS62X || COMPILE_TEST
253	help
254	  Generic PWM framework driver for the Azoteq IQS620A multi-function
255	  sensor.
256
257	  To compile this driver as a module, choose M here: the module will
258	  be called pwm-iqs620a.
259
260config PWM_JZ4740
261	tristate "Ingenic JZ47xx PWM support"
262	depends on MIPS
263	depends on COMMON_CLK
264	select MFD_SYSCON
265	help
266	  Generic PWM framework driver for Ingenic JZ47xx based
267	  machines.
268
269	  To compile this driver as a module, choose M here: the module
270	  will be called pwm-jz4740.
271
272config PWM_LP3943
273	tristate "TI/National Semiconductor LP3943 PWM support"
274	depends on MFD_LP3943
275	help
276	  Generic PWM framework driver for LP3943 which supports two PWM
277	  channels.
278
279	  To compile this driver as a module, choose M here: the module
280	  will be called pwm-lp3943.
281
282config PWM_LPC18XX_SCT
283	tristate "LPC18xx/43xx PWM/SCT support"
284	depends on ARCH_LPC18XX || COMPILE_TEST
285	help
286	  Generic PWM framework driver for NXP LPC18xx PWM/SCT which
287	  supports 16 channels.
288	  A maximum of 15 channels can be requested simultaneously and
289	  must have the same period.
290
291	  To compile this driver as a module, choose M here: the module
292	  will be called pwm-lpc18xx-sct.
293
294config PWM_LPC32XX
295	tristate "LPC32XX PWM support"
296	depends on ARCH_LPC32XX || COMPILE_TEST
297	help
298	  Generic PWM framework driver for LPC32XX. The LPC32XX SOC has two
299	  PWM controllers.
300
301	  To compile this driver as a module, choose M here: the module
302	  will be called pwm-lpc32xx.
303
304config PWM_LPSS
305	tristate
306
307config PWM_LPSS_PCI
308	tristate "Intel LPSS PWM PCI driver"
309	depends on X86 && PCI
310	select PWM_LPSS
311	help
312	  The PCI driver for Intel Low Power Subsystem PWM controller.
313
314	  To compile this driver as a module, choose M here: the module
315	  will be called pwm-lpss-pci.
316
317config PWM_LPSS_PLATFORM
318	tristate "Intel LPSS PWM platform driver"
319	depends on X86 && ACPI
320	select PWM_LPSS
321	help
322	  The platform driver for Intel Low Power Subsystem PWM controller.
323
324	  To compile this driver as a module, choose M here: the module
325	  will be called pwm-lpss-platform.
326
327config PWM_MESON
328	tristate "Amlogic Meson PWM driver"
329	depends on ARCH_MESON || COMPILE_TEST
330	depends on COMMON_CLK
331	help
332	  The platform driver for Amlogic Meson PWM controller.
333
334	  To compile this driver as a module, choose M here: the module
335	  will be called pwm-meson.
336
337config PWM_MTK_DISP
338	tristate "MediaTek display PWM driver"
339	depends on ARCH_MEDIATEK || COMPILE_TEST
340	depends on HAS_IOMEM
341	help
342	  Generic PWM framework driver for MediaTek disp-pwm device.
343	  The PWM is used to control the backlight brightness for display.
344
345	  To compile this driver as a module, choose M here: the module
346	  will be called pwm-mtk-disp.
347
348config PWM_MEDIATEK
349	tristate "MediaTek PWM support"
350	depends on ARCH_MEDIATEK || RALINK || COMPILE_TEST
351	help
352	  Generic PWM framework driver for Mediatek ARM SoC.
353
354	  To compile this driver as a module, choose M here: the module
355	  will be called pwm-mediatek.
356
357config PWM_MXS
358	tristate "Freescale MXS PWM support"
359	depends on OF
360	depends on ARCH_MXS || COMPILE_TEST
361	select STMP_DEVICE
362	help
363	  Generic PWM framework driver for Freescale MXS.
364
365	  To compile this driver as a module, choose M here: the module
366	  will be called pwm-mxs.
367
368config PWM_OMAP_DMTIMER
369	tristate "OMAP Dual-Mode Timer PWM support"
370	depends on OF
371	depends on OMAP_DM_TIMER || COMPILE_TEST
372	help
373	  Generic PWM framework driver for OMAP Dual-Mode Timer PWM output
374
375	  To compile this driver as a module, choose M here: the module
376	  will be called pwm-omap-dmtimer
377
378config PWM_PCA9685
379	tristate "NXP PCA9685 PWM driver"
380	depends on I2C
381	select REGMAP_I2C
382	help
383	  Generic PWM framework driver for NXP PCA9685 LED controller.
384
385	  To compile this driver as a module, choose M here: the module
386	  will be called pwm-pca9685.
387
388config PWM_PXA
389	tristate "PXA PWM support"
390	depends on ARCH_PXA || COMPILE_TEST
391	help
392	  Generic PWM framework driver for PXA.
393
394	  To compile this driver as a module, choose M here: the module
395	  will be called pwm-pxa.
396
397config PWM_RCAR
398	tristate "Renesas R-Car PWM support"
399	depends on ARCH_RENESAS || COMPILE_TEST
400	depends on HAS_IOMEM
401	help
402	  This driver exposes the PWM Timer controller found in Renesas
403	  R-Car chips through the PWM API.
404
405	  To compile this driver as a module, choose M here: the module
406	  will be called pwm-rcar.
407
408config PWM_RENESAS_TPU
409	tristate "Renesas TPU PWM support"
410	depends on ARCH_RENESAS || COMPILE_TEST
411	depends on HAS_IOMEM
412	help
413	  This driver exposes the Timer Pulse Unit (TPU) PWM controller found
414	  in Renesas chips through the PWM API.
415
416	  To compile this driver as a module, choose M here: the module
417	  will be called pwm-renesas-tpu.
418
419config PWM_ROCKCHIP
420	tristate "Rockchip PWM support"
421	depends on ARCH_ROCKCHIP || COMPILE_TEST
422	help
423	  Generic PWM framework driver for the PWM controller found on
424	  Rockchip SoCs.
425
426config PWM_ROCKCHIP_ONESHOT
427	bool "Rockchip PWM oneshot mode support"
428	depends on PWM_ROCKCHIP && NO_GKI
429	help
430	  Support Rockchip pwm oneshot mode for specified number of cycles.
431
432config PWM_SAMSUNG
433	tristate "Samsung PWM support"
434	depends on PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
435	help
436	  Generic PWM framework driver for Samsung.
437
438	  To compile this driver as a module, choose M here: the module
439	  will be called pwm-samsung.
440
441config PWM_SIFIVE
442	tristate "SiFive PWM support"
443	depends on OF
444	depends on COMMON_CLK
445	depends on RISCV || COMPILE_TEST
446	help
447	  Generic PWM framework driver for SiFive SoCs.
448
449	  To compile this driver as a module, choose M here: the module
450	  will be called pwm-sifive.
451
452config PWM_SL28CPLD
453	tristate "Kontron sl28cpld PWM support"
454	depends on MFD_SL28CPLD || COMPILE_TEST
455	help
456	  Generic PWM framework driver for board management controller
457	  found on the Kontron sl28 CPLD.
458
459	  To compile this driver as a module, choose M here: the module
460	  will be called pwm-sl28cpld.
461
462config PWM_SPEAR
463	tristate "STMicroelectronics SPEAr PWM support"
464	depends on PLAT_SPEAR || COMPILE_TEST
465	depends on OF
466	help
467	  Generic PWM framework driver for the PWM controller on ST
468	  SPEAr SoCs.
469
470	  To compile this driver as a module, choose M here: the module
471	  will be called pwm-spear.
472
473config PWM_SPRD
474	tristate "Spreadtrum PWM support"
475	depends on ARCH_SPRD || COMPILE_TEST
476	depends on HAS_IOMEM
477	help
478	  Generic PWM framework driver for the PWM controller on
479	  Spreadtrum SoCs.
480
481	  To compile this driver as a module, choose M here: the module
482	  will be called pwm-sprd.
483
484config PWM_STI
485	tristate "STiH4xx PWM support"
486	depends on ARCH_STI || COMPILE_TEST
487	depends on OF
488	help
489	  Generic PWM framework driver for STiH4xx SoCs.
490
491	  To compile this driver as a module, choose M here: the module
492	  will be called pwm-sti.
493
494config PWM_STM32
495	tristate "STMicroelectronics STM32 PWM"
496	depends on MFD_STM32_TIMERS || COMPILE_TEST
497	help
498	  Generic PWM framework driver for STM32 SoCs.
499
500	  To compile this driver as a module, choose M here: the module
501	  will be called pwm-stm32.
502
503config PWM_STM32_LP
504	tristate "STMicroelectronics STM32 PWM LP"
505	depends on MFD_STM32_LPTIMER || COMPILE_TEST
506	help
507	  Generic PWM framework driver for STMicroelectronics STM32 SoCs
508	  with Low-Power Timer (LPTIM).
509
510	  To compile this driver as a module, choose M here: the module
511	  will be called pwm-stm32-lp.
512
513config PWM_STMPE
514	bool "STMPE expander PWM export"
515	depends on MFD_STMPE
516	help
517	  This enables support for the PWMs found in the STMPE I/O
518	  expanders.
519
520config PWM_SUN4I
521	tristate "Allwinner PWM support"
522	depends on ARCH_SUNXI || COMPILE_TEST
523	depends on HAS_IOMEM && COMMON_CLK
524	help
525	  Generic PWM framework driver for Allwinner SoCs.
526
527	  To compile this driver as a module, choose M here: the module
528	  will be called pwm-sun4i.
529
530config PWM_TEGRA
531	tristate "NVIDIA Tegra PWM support"
532	depends on ARCH_TEGRA || COMPILE_TEST
533	help
534	  Generic PWM framework driver for the PWFM controller found on NVIDIA
535	  Tegra SoCs.
536
537	  To compile this driver as a module, choose M here: the module
538	  will be called pwm-tegra.
539
540config PWM_TIECAP
541	tristate "ECAP PWM support"
542	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
543	help
544	  PWM driver support for the ECAP APWM controller found on TI SOCs
545
546	  To compile this driver as a module, choose M here: the module
547	  will be called pwm-tiecap.
548
549config PWM_TIEHRPWM
550	tristate "EHRPWM PWM support"
551	depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_K3 || COMPILE_TEST
552	help
553	  PWM driver support for the EHRPWM controller found on TI SOCs
554
555	  To compile this driver as a module, choose M here: the module
556	  will be called pwm-tiehrpwm.
557
558config PWM_TWL
559	tristate "TWL4030/6030 PWM support"
560	depends on TWL4030_CORE
561	help
562	  Generic PWM framework driver for TWL4030/6030.
563
564	  To compile this driver as a module, choose M here: the module
565	  will be called pwm-twl.
566
567config PWM_TWL_LED
568	tristate "TWL4030/6030 PWM support for LED drivers"
569	depends on TWL4030_CORE
570	help
571	  Generic PWM framework driver for TWL4030/6030 LED terminals.
572
573	  To compile this driver as a module, choose M here: the module
574	  will be called pwm-twl-led.
575
576config PWM_VT8500
577	tristate "vt8500 PWM support"
578	depends on ARCH_VT8500 || COMPILE_TEST
579	help
580	  Generic PWM framework driver for vt8500.
581
582	  To compile this driver as a module, choose M here: the module
583	  will be called pwm-vt8500.
584
585config PWM_ZX
586	tristate "ZTE ZX PWM support"
587	depends on ARCH_ZX || COMPILE_TEST
588	help
589	  Generic PWM framework driver for ZTE ZX family SoCs.
590
591	  To compile this driver as a module, choose M here: the module
592	  will be called pwm-zx.
593
594endif
595