xref: /openbmc/linux/drivers/pwm/Kconfig (revision e5a06dc5)
10c2498f1SSascha Hauermenuconfig PWM
2b817bf5cSThierry Reding	bool "Pulse-Width Modulation (PWM) Support"
30c2498f1SSascha Hauer	help
4b817bf5cSThierry Reding	  Generic Pulse-Width Modulation (PWM) support.
50c2498f1SSascha Hauer
6b817bf5cSThierry Reding	  In Pulse-Width Modulation, a variation of the width of pulses
7b817bf5cSThierry Reding	  in a rectangular pulse signal is used as a means to alter the
8b817bf5cSThierry Reding	  average power of the signal. Applications include efficient
9b817bf5cSThierry Reding	  power delivery and voltage regulation. In computer systems,
10b817bf5cSThierry Reding	  PWMs are commonly used to control fans or the brightness of
11b817bf5cSThierry Reding	  display backlights.
12b817bf5cSThierry Reding
13b817bf5cSThierry Reding	  This framework provides a generic interface to PWM devices
14b817bf5cSThierry Reding	  within the Linux kernel. On the driver side it provides an API
15b817bf5cSThierry Reding	  to register and unregister a PWM chip, an abstraction of a PWM
16b817bf5cSThierry Reding	  controller, that supports one or more PWM devices. Client
17b817bf5cSThierry Reding	  drivers can request PWM devices and use the generic framework
18b817bf5cSThierry Reding	  to configure as well as enable and disable them.
19b817bf5cSThierry Reding
20b817bf5cSThierry Reding	  This generic framework replaces the legacy PWM framework which
21b817bf5cSThierry Reding	  allows only a single driver implementing the required API. Not
22b817bf5cSThierry Reding	  all legacy implementations have been ported to the framework
23b817bf5cSThierry Reding	  yet. The framework provides an API that is backward compatible
24b817bf5cSThierry Reding	  with the legacy framework so that existing client drivers
25b817bf5cSThierry Reding	  continue to work as expected.
26b817bf5cSThierry Reding
27b817bf5cSThierry Reding	  If unsure, say no.
280c2498f1SSascha Hauer
290c2498f1SSascha Hauerif PWM
300c2498f1SSascha Hauer
3176abbddeSH Hartley Sweetenconfig PWM_SYSFS
3276abbddeSH Hartley Sweeten	bool
3376abbddeSH Hartley Sweeten	default y if SYSFS
3476abbddeSH Hartley Sweeten
356173f8f4SThierry Redingconfig PWM_AB8500
366173f8f4SThierry Reding	tristate "AB8500 PWM support"
376173f8f4SThierry Reding	depends on AB8500_CORE && ARCH_U8500
386173f8f4SThierry Reding	help
396173f8f4SThierry Reding	  Generic PWM framework driver for Analog Baseband AB8500.
406173f8f4SThierry Reding
416173f8f4SThierry Reding	  To compile this driver as a module, choose M here: the module
426173f8f4SThierry Reding	  will be called pwm-ab8500.
436173f8f4SThierry Reding
4432b16d46SBo Shenconfig PWM_ATMEL
4532b16d46SBo Shen	tristate "Atmel PWM support"
46bb4bbbaaSAlexandre Belloni	depends on ARCH_AT91 || AVR32
4732b16d46SBo Shen	help
4832b16d46SBo Shen	  Generic PWM framework driver for Atmel SoC.
4932b16d46SBo Shen
5032b16d46SBo Shen	  To compile this driver as a module, choose M here: the module
5132b16d46SBo Shen	  will be called pwm-atmel.
5232b16d46SBo Shen
539421badeSBoris BREZILLONconfig PWM_ATMEL_TCB
54b133d2a1SThierry Reding	tristate "Atmel TC Block PWM support"
559421badeSBoris BREZILLON	depends on ATMEL_TCLIB && OF
569421badeSBoris BREZILLON	help
579421badeSBoris BREZILLON	  Generic PWM framework driver for Atmel Timer Counter Block.
589421badeSBoris BREZILLON
599421badeSBoris BREZILLON	  A Timer Counter Block provides 6 PWM devices grouped by 2.
609421badeSBoris BREZILLON	  Devices in a given group must have the same period.
619421badeSBoris BREZILLON
629421badeSBoris BREZILLON	  To compile this driver as a module, choose M here: the module
639421badeSBoris BREZILLON	  will be called pwm-atmel-tcb.
649421badeSBoris BREZILLON
656a4e4bffSTim Krygerconfig PWM_BCM_KONA
666a4e4bffSTim Kryger	tristate "Kona PWM support"
676a4e4bffSTim Kryger	depends on ARCH_BCM_MOBILE
686a4e4bffSTim Kryger	help
696a4e4bffSTim Kryger	  Generic PWM framework driver for Broadcom Kona PWM block.
706a4e4bffSTim Kryger
716a4e4bffSTim Kryger	  To compile this driver as a module, choose M here: the module
726a4e4bffSTim Kryger	  will be called pwm-bcm-kona.
736a4e4bffSTim Kryger
74e5a06dc5SBart Tangheconfig PWM_BCM2835
75e5a06dc5SBart Tanghe	tristate "BCM2835 PWM support"
76e5a06dc5SBart Tanghe	depends on ARCH_BCM2835
77e5a06dc5SBart Tanghe	help
78e5a06dc5SBart Tanghe	  PWM framework driver for BCM2835 controller (Raspberry Pi)
79e5a06dc5SBart Tanghe
80e5a06dc5SBart Tanghe	  To compile this driver as a module, choose M here: the module
81e5a06dc5SBart Tanghe	  will be called pwm-bcm2835.
82e5a06dc5SBart Tanghe
83a4315e3cSThierry Redingconfig PWM_BFIN
84a4315e3cSThierry Reding	tristate "Blackfin PWM support"
85a4315e3cSThierry Reding	depends on BFIN_GPTIMERS
86a4315e3cSThierry Reding	help
87a4315e3cSThierry Reding	  Generic PWM framework driver for Blackfin.
88a4315e3cSThierry Reding
89a4315e3cSThierry Reding	  To compile this driver as a module, choose M here: the module
90a4315e3cSThierry Reding	  will be called pwm-bfin.
91a4315e3cSThierry Reding
927eb3f6ffSAlexander Shiyanconfig PWM_CLPS711X
937eb3f6ffSAlexander Shiyan	tristate "CLPS711X PWM support"
947eb3f6ffSAlexander Shiyan	depends on ARCH_CLPS711X || COMPILE_TEST
95dec02f98SChen Gang	depends on HAS_IOMEM
967eb3f6ffSAlexander Shiyan	help
977eb3f6ffSAlexander Shiyan	  Generic PWM framework driver for Cirrus Logic CLPS711X.
987eb3f6ffSAlexander Shiyan
997eb3f6ffSAlexander Shiyan	  To compile this driver as a module, choose M here: the module
1007eb3f6ffSAlexander Shiyan	  will be called pwm-clps711x.
1017eb3f6ffSAlexander Shiyan
102a2308698SH Hartley Sweetenconfig PWM_EP93XX
103a2308698SH Hartley Sweeten	tristate "Cirrus Logic EP93xx PWM support"
104a2308698SH Hartley Sweeten	depends on ARCH_EP93XX
105a2308698SH Hartley Sweeten	help
106a2308698SH Hartley Sweeten	  Generic PWM framework driver for Cirrus Logic EP93xx.
107a2308698SH Hartley Sweeten
108a2308698SH Hartley Sweeten	  To compile this driver as a module, choose M here: the module
109a2308698SH Hartley Sweeten	  will be called pwm-ep93xx.
110a2308698SH Hartley Sweeten
111b505183bSXiubo Liconfig PWM_FSL_FTM
112b505183bSXiubo Li	tristate "Freescale FlexTimer Module (FTM) PWM support"
113b505183bSXiubo Li	depends on OF
11400018a8aSFabio Estevam	select REGMAP_MMIO
115b505183bSXiubo Li	help
116b505183bSXiubo Li	  Generic FTM PWM framework driver for Freescale VF610 and
117b505183bSXiubo Li	  Layerscape LS-1 SoCs.
118b505183bSXiubo Li
119b505183bSXiubo Li	  To compile this driver as a module, choose M here: the module
120b505183bSXiubo Li	  will be called pwm-fsl-ftm.
121b505183bSXiubo Li
12229693248SSascha Hauerconfig PWM_IMX
123b133d2a1SThierry Reding	tristate "i.MX PWM support"
12429693248SSascha Hauer	depends on ARCH_MXC
12529693248SSascha Hauer	help
12629693248SSascha Hauer	  Generic PWM framework driver for i.MX.
12729693248SSascha Hauer
12829693248SSascha Hauer	  To compile this driver as a module, choose M here: the module
12929693248SSascha Hauer	  will be called pwm-imx.
13029693248SSascha Hauer
131f6b8a570SThierry Redingconfig PWM_JZ4740
132f6b8a570SThierry Reding	tristate "Ingenic JZ4740 PWM support"
133f6b8a570SThierry Reding	depends on MACH_JZ4740
134f6b8a570SThierry Reding	help
135f6b8a570SThierry Reding	  Generic PWM framework driver for Ingenic JZ4740 based
136f6b8a570SThierry Reding	  machines.
137f6b8a570SThierry Reding
138f6b8a570SThierry Reding	  To compile this driver as a module, choose M here: the module
139f6b8a570SThierry Reding	  will be called pwm-jz4740.
140f6b8a570SThierry Reding
141af66b3c0SMilo Kimconfig PWM_LP3943
142af66b3c0SMilo Kim	tristate "TI/National Semiconductor LP3943 PWM support"
143af66b3c0SMilo Kim	depends on MFD_LP3943
144af66b3c0SMilo Kim	help
145af66b3c0SMilo Kim	  Generic PWM framework driver for LP3943 which supports two PWM
146af66b3c0SMilo Kim	  channels.
147af66b3c0SMilo Kim
148af66b3c0SMilo Kim	  To compile this driver as a module, choose M here: the module
149af66b3c0SMilo Kim	  will be called pwm-lp3943.
150af66b3c0SMilo Kim
1512132fa8dSAlexandre Pereira da Silvaconfig PWM_LPC32XX
1522132fa8dSAlexandre Pereira da Silva	tristate "LPC32XX PWM support"
1532132fa8dSAlexandre Pereira da Silva	depends on ARCH_LPC32XX
1542132fa8dSAlexandre Pereira da Silva	help
1552132fa8dSAlexandre Pereira da Silva	  Generic PWM framework driver for LPC32XX. The LPC32XX SOC has two
1562132fa8dSAlexandre Pereira da Silva	  PWM controllers.
1572132fa8dSAlexandre Pereira da Silva
1582132fa8dSAlexandre Pereira da Silva	  To compile this driver as a module, choose M here: the module
1592132fa8dSAlexandre Pereira da Silva	  will be called pwm-lpc32xx.
1602132fa8dSAlexandre Pereira da Silva
161d16a5aa9SMika Westerbergconfig PWM_LPSS
162d16a5aa9SMika Westerberg	tristate "Intel LPSS PWM support"
163ad16202dSAndy Shevchenko	depends on X86
164d16a5aa9SMika Westerberg	help
165d16a5aa9SMika Westerberg	  Generic PWM framework driver for Intel Low Power Subsystem PWM
166d16a5aa9SMika Westerberg	  controller.
167d16a5aa9SMika Westerberg
168d16a5aa9SMika Westerberg	  To compile this driver as a module, choose M here: the module
169d16a5aa9SMika Westerberg	  will be called pwm-lpss.
170d16a5aa9SMika Westerberg
171c558e39eSAndy Shevchenkoconfig PWM_LPSS_PCI
172c558e39eSAndy Shevchenko	tristate "Intel LPSS PWM PCI driver"
173c558e39eSAndy Shevchenko	depends on PWM_LPSS && PCI
174c558e39eSAndy Shevchenko	help
175c558e39eSAndy Shevchenko	  The PCI driver for Intel Low Power Subsystem PWM controller.
176c558e39eSAndy Shevchenko
177c558e39eSAndy Shevchenko	  To compile this driver as a module, choose M here: the module
178c558e39eSAndy Shevchenko	  will be called pwm-lpss-pci.
179c558e39eSAndy Shevchenko
180c558e39eSAndy Shevchenkoconfig PWM_LPSS_PLATFORM
181c558e39eSAndy Shevchenko	tristate "Intel LPSS PWM platform driver"
182c558e39eSAndy Shevchenko	depends on PWM_LPSS && ACPI
183c558e39eSAndy Shevchenko	help
184c558e39eSAndy Shevchenko	  The platform driver for Intel Low Power Subsystem PWM controller.
185c558e39eSAndy Shevchenko
186c558e39eSAndy Shevchenko	  To compile this driver as a module, choose M here: the module
187c558e39eSAndy Shevchenko	  will be called pwm-lpss-platform.
188c558e39eSAndy Shevchenko
1894dce82c1SShawn Guoconfig PWM_MXS
1904dce82c1SShawn Guo	tristate "Freescale MXS PWM support"
1914dce82c1SShawn Guo	depends on ARCH_MXS && OF
19201bf32e9SShawn Guo	select STMP_DEVICE
1934dce82c1SShawn Guo	help
1944dce82c1SShawn Guo	  Generic PWM framework driver for Freescale MXS.
1954dce82c1SShawn Guo
1964dce82c1SShawn Guo	  To compile this driver as a module, choose M here: the module
1974dce82c1SShawn Guo	  will be called pwm-mxs.
1984dce82c1SShawn Guo
19988b613e6SSteffen Trumtrarconfig PWM_PCA9685
20088b613e6SSteffen Trumtrar	tristate "NXP PCA9685 PWM driver"
2012c80a492SAxel Lin	depends on OF && I2C
2022c80a492SAxel Lin	select REGMAP_I2C
20388b613e6SSteffen Trumtrar	help
20488b613e6SSteffen Trumtrar	  Generic PWM framework driver for NXP PCA9685 LED controller.
20588b613e6SSteffen Trumtrar
20688b613e6SSteffen Trumtrar	  To compile this driver as a module, choose M here: the module
20788b613e6SSteffen Trumtrar	  will be called pwm-pca9685.
20888b613e6SSteffen Trumtrar
20979c11b6fSThierry Redingconfig PWM_PUV3
21079c11b6fSThierry Reding	tristate "PKUnity NetBook-0916 PWM support"
21179c11b6fSThierry Reding	depends on ARCH_PUV3
21279c11b6fSThierry Reding	help
21379c11b6fSThierry Reding	  Generic PWM framework driver for PKUnity NetBook-0916.
21479c11b6fSThierry Reding
21579c11b6fSThierry Reding	  To compile this driver as a module, choose M here: the module
21679c11b6fSThierry Reding	  will be called pwm-puv3.
21779c11b6fSThierry Reding
21817b2b478SThierry Redingconfig PWM_PXA
21917b2b478SThierry Reding	tristate "PXA PWM support"
22017b2b478SThierry Reding	depends on ARCH_PXA
22117b2b478SThierry Reding	help
22217b2b478SThierry Reding	  Generic PWM framework driver for PXA.
22317b2b478SThierry Reding
22417b2b478SThierry Reding	  To compile this driver as a module, choose M here: the module
22517b2b478SThierry Reding	  will be called pwm-pxa.
22617b2b478SThierry Reding
22799b82abbSLaurent Pinchartconfig PWM_RENESAS_TPU
22899b82abbSLaurent Pinchart	tristate "Renesas TPU PWM support"
22994d88d63SLaurent Pinchart	depends on ARCH_SHMOBILE || COMPILE_TEST
2302974b098SRichard Weinberger	depends on HAS_IOMEM
23199b82abbSLaurent Pinchart	help
23299b82abbSLaurent Pinchart	  This driver exposes the Timer Pulse Unit (TPU) PWM controller found
23399b82abbSLaurent Pinchart	  in Renesas chips through the PWM API.
23499b82abbSLaurent Pinchart
23599b82abbSLaurent Pinchart	  To compile this driver as a module, choose M here: the module
23699b82abbSLaurent Pinchart	  will be called pwm-renesas-tpu.
23799b82abbSLaurent Pinchart
238101353c8SBeniamino Galvaniconfig PWM_ROCKCHIP
239101353c8SBeniamino Galvani	tristate "Rockchip PWM support"
240101353c8SBeniamino Galvani	depends on ARCH_ROCKCHIP
241101353c8SBeniamino Galvani	help
242101353c8SBeniamino Galvani	  Generic PWM framework driver for the PWM controller found on
243101353c8SBeniamino Galvani	  Rockchip SoCs.
244101353c8SBeniamino Galvani
245215c29d3SSascha Hauerconfig PWM_SAMSUNG
246b133d2a1SThierry Reding	tristate "Samsung PWM support"
247215c29d3SSascha Hauer	depends on PLAT_SAMSUNG
248215c29d3SSascha Hauer	help
249215c29d3SSascha Hauer	  Generic PWM framework driver for Samsung.
250215c29d3SSascha Hauer
251215c29d3SSascha Hauer	  To compile this driver as a module, choose M here: the module
252215c29d3SSascha Hauer	  will be called pwm-samsung.
253215c29d3SSascha Hauer
254ce20364bSShiraz Hashimconfig PWM_SPEAR
255ce20364bSShiraz Hashim	tristate "STMicroelectronics SPEAr PWM support"
256ce20364bSShiraz Hashim	depends on PLAT_SPEAR
257ce20364bSShiraz Hashim	depends on OF
258ce20364bSShiraz Hashim	help
259ce20364bSShiraz Hashim	  Generic PWM framework driver for the PWM controller on ST
260ce20364bSShiraz Hashim	  SPEAr SoCs.
261ce20364bSShiraz Hashim
262ce20364bSShiraz Hashim	  To compile this driver as a module, choose M here: the module
263ce20364bSShiraz Hashim	  will be called pwm-spear.
264ce20364bSShiraz Hashim
265378fe115SLee Jonesconfig PWM_STI
266378fe115SLee Jones	tristate "STiH4xx PWM support"
267378fe115SLee Jones	depends on ARCH_STI
268378fe115SLee Jones	depends on OF
269378fe115SLee Jones	help
270378fe115SLee Jones	  Generic PWM framework driver for STiH4xx SoCs.
271378fe115SLee Jones
272378fe115SLee Jones	  To compile this driver as a module, choose M here: the module
273378fe115SLee Jones	  will be called pwm-sti.
274378fe115SLee Jones
2750134b932SThierry Redingconfig PWM_TEGRA
2760134b932SThierry Reding	tristate "NVIDIA Tegra PWM support"
2770134b932SThierry Reding	depends on ARCH_TEGRA
2780134b932SThierry Reding	help
2790134b932SThierry Reding	  Generic PWM framework driver for the PWFM controller found on NVIDIA
2800134b932SThierry Reding	  Tegra SoCs.
2810134b932SThierry Reding
2820134b932SThierry Reding	  To compile this driver as a module, choose M here: the module
2830134b932SThierry Reding	  will be called pwm-tegra.
2840134b932SThierry Reding
2858e0cb05bSPhilip, Avinashconfig  PWM_TIECAP
2868e0cb05bSPhilip, Avinash	tristate "ECAP PWM support"
2871bf0f20bSPhilip Avinash	depends on SOC_AM33XX || ARCH_DAVINCI_DA8XX
2888e0cb05bSPhilip, Avinash	help
2898e0cb05bSPhilip, Avinash	  PWM driver support for the ECAP APWM controller found on AM33XX
2908e0cb05bSPhilip, Avinash	  TI SOC
2918e0cb05bSPhilip, Avinash
2928e0cb05bSPhilip, Avinash	  To compile this driver as a module, choose M here: the module
2938e0cb05bSPhilip, Avinash	  will be called pwm-tiecap.
2948e0cb05bSPhilip, Avinash
29519891b20SPhilip, Avinashconfig  PWM_TIEHRPWM
29619891b20SPhilip, Avinash	tristate "EHRPWM PWM support"
2971bf0f20bSPhilip Avinash	depends on SOC_AM33XX || ARCH_DAVINCI_DA8XX
29819891b20SPhilip, Avinash	help
29919891b20SPhilip, Avinash	  PWM driver support for the EHRPWM controller found on AM33XX
30019891b20SPhilip, Avinash	  TI SOC
30119891b20SPhilip, Avinash
30219891b20SPhilip, Avinash	  To compile this driver as a module, choose M here: the module
30319891b20SPhilip, Avinash	  will be called pwm-tiehrpwm.
30419891b20SPhilip, Avinash
305af0ba001SPhilip, Avinashconfig  PWM_TIPWMSS
306af0ba001SPhilip, Avinash	bool
3071bf0f20bSPhilip Avinash	default y if SOC_AM33XX && (PWM_TIECAP || PWM_TIEHRPWM)
308af0ba001SPhilip, Avinash	help
309af0ba001SPhilip, Avinash	  PWM Subsystem driver support for AM33xx SOC.
310af0ba001SPhilip, Avinash
311af0ba001SPhilip, Avinash	  PWM submodules require PWM config space access from submodule
312af0ba001SPhilip, Avinash	  drivers and require common parent driver support.
313af0ba001SPhilip, Avinash
3143744c263SPeter Ujfalusiconfig PWM_TWL
3153744c263SPeter Ujfalusi	tristate "TWL4030/6030 PWM support"
3163744c263SPeter Ujfalusi	depends on TWL4030_CORE
3173744c263SPeter Ujfalusi	help
3183744c263SPeter Ujfalusi	  Generic PWM framework driver for TWL4030/6030.
3193744c263SPeter Ujfalusi
3203744c263SPeter Ujfalusi	  To compile this driver as a module, choose M here: the module
3213744c263SPeter Ujfalusi	  will be called pwm-twl.
3223744c263SPeter Ujfalusi
323aa765647SPeter Ujfalusiconfig PWM_TWL_LED
324aa765647SPeter Ujfalusi	tristate "TWL4030/6030 PWM support for LED drivers"
325aa765647SPeter Ujfalusi	depends on TWL4030_CORE
326aa765647SPeter Ujfalusi	help
327aa765647SPeter Ujfalusi	  Generic PWM framework driver for TWL4030/6030 LED terminals.
328aa765647SPeter Ujfalusi
329aa765647SPeter Ujfalusi	  To compile this driver as a module, choose M here: the module
330aa765647SPeter Ujfalusi	  will be called pwm-twl-led.
331aa765647SPeter Ujfalusi
332a245ccebSSascha Hauerconfig PWM_VT8500
333b133d2a1SThierry Reding	tristate "vt8500 PWM support"
334a245ccebSSascha Hauer	depends on ARCH_VT8500
335a245ccebSSascha Hauer	help
336a245ccebSSascha Hauer	  Generic PWM framework driver for vt8500.
337a245ccebSSascha Hauer
338a245ccebSSascha Hauer	  To compile this driver as a module, choose M here: the module
339a245ccebSSascha Hauer	  will be called pwm-vt8500.
340a245ccebSSascha Hauer
3410c2498f1SSascha Hauerendif
342