Skip to content

Commit b55bbc2

Browse files
Benjamin LarssonUwe Kleine-König
authored andcommitted
pwm: airoha: Add support for EN7581 SoC
Introduce driver for PWM module available on EN7581 SoC. Limitations: - Only 8 concurrent waveform generators are available for 8 combinations of duty_cycle and period. Waveform generators are shared between 16 GPIO pins and 17 SIPO GPIO pins. - Supports only normal polarity. - On configuration the currently running period is completed. - Minimum supported period is 4 ms - Maximum supported period is 1s Signed-off-by: Benjamin Larsson <benjamin.larsson@genexis.eu> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Co-developed-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Link: https://patch.msgid.link/20251013103408.14724-1-ansuelsmth@gmail.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent 24ec563 commit b55bbc2

3 files changed

Lines changed: 633 additions & 0 deletions

File tree

drivers/pwm/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ config PWM_ADP5585
6363
This option enables support for the PWM function found in the Analog
6464
Devices ADP5585.
6565

66+
config PWM_AIROHA
67+
tristate "Airoha PWM support"
68+
depends on ARCH_AIROHA || COMPILE_TEST
69+
select REGMAP_MMIO
70+
help
71+
Generic PWM framework driver for Airoha SoC.
72+
73+
To compile this driver as a module, choose M here: the module
74+
will be called pwm-airoha.
75+
6676
config PWM_APPLE
6777
tristate "Apple SoC PWM support"
6878
depends on ARCH_APPLE || COMPILE_TEST

drivers/pwm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
obj-$(CONFIG_PWM) += core.o
33
obj-$(CONFIG_PWM_AB8500) += pwm-ab8500.o
44
obj-$(CONFIG_PWM_ADP5585) += pwm-adp5585.o
5+
obj-$(CONFIG_PWM_AIROHA) += pwm-airoha.o
56
obj-$(CONFIG_PWM_APPLE) += pwm-apple.o
67
obj-$(CONFIG_PWM_ARGON_FAN_HAT) += pwm-argon-fan-hat.o
78
obj-$(CONFIG_PWM_ATMEL) += pwm-atmel.o

0 commit comments

Comments
 (0)