]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Add clock based PWM output driver
authorNikita Travkin <nikita@trvn.ru>
Mon, 11 Jul 2022 20:33:40 +0000 (01:33 +0500)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 29 Jul 2022 11:41:18 +0000 (13:41 +0200)
commitc7f5db9c5c4d4392e2d7d670d42da575a33bd299
treed965bbbd1026b67c13bfe370de92aa25cfdb902b
parent7894ba6a1f0d18baddd7042379afdea4c9c42f3b
pwm: Add clock based PWM output driver

Some systems have clocks exposed to external devices. If the clock
controller supports duty-cycle configuration, such clocks can be used as
pwm outputs. In fact PWM and CLK subsystems are interfaced with in a
similar way and an "opposite" driver already exists (clk-pwm). Add a
driver that would enable pwm devices to be used via clk subsystem.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-clk.c [new file with mode: 0644]