Skip to content

Commit 254d3a7

Browse files
bijudasthierryreding
authored andcommitted
pwm: Add Renesas RZ/G2L MTU3a PWM driver
The RZ/G2L Multi-Function Timer Pulse Unit 3 (a.k.a MTU3a) uses one counter and two match components to configure duty_cycle and period to generate PWM output waveform. Add basic support for RZ/G2L MTU3a PWM driver by creating separate PWM channels for each IOs. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent bc13d60 commit 254d3a7

File tree

3 files changed

+563
-0
lines changed

3 files changed

+563
-0
lines changed

drivers/pwm/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,17 @@ config PWM_ROCKCHIP
503503
Generic PWM framework driver for the PWM controller found on
504504
Rockchip SoCs.
505505

506+
config PWM_RZ_MTU3
507+
tristate "Renesas RZ/G2L MTU3a PWM Timer support"
508+
depends on RZ_MTU3 || COMPILE_TEST
509+
depends on HAS_IOMEM
510+
help
511+
This driver exposes the MTU3a PWM Timer controller found in Renesas
512+
RZ/G2L like chips through the PWM API.
513+
514+
To compile this driver as a module, choose M here: the module
515+
will be called pwm-rz-mtu3.
516+
506517
config PWM_SAMSUNG
507518
tristate "Samsung PWM support"
508519
depends on PLAT_SAMSUNG || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST

drivers/pwm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ obj-$(CONFIG_PWM_RASPBERRYPI_POE) += pwm-raspberrypi-poe.o
4646
obj-$(CONFIG_PWM_RCAR) += pwm-rcar.o
4747
obj-$(CONFIG_PWM_RENESAS_TPU) += pwm-renesas-tpu.o
4848
obj-$(CONFIG_PWM_ROCKCHIP) += pwm-rockchip.o
49+
obj-$(CONFIG_PWM_RZ_MTU3) += pwm-rz-mtu3.o
4950
obj-$(CONFIG_PWM_SAMSUNG) += pwm-samsung.o
5051
obj-$(CONFIG_PWM_SIFIVE) += pwm-sifive.o
5152
obj-$(CONFIG_PWM_SL28CPLD) += pwm-sl28cpld.o

0 commit comments

Comments
 (0)