]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Add support for Xilinx AXI Timer
authorSean Anderson <sean.anderson@seco.com>
Thu, 3 Mar 2022 22:35:43 +0000 (17:35 -0500)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 22 Apr 2022 16:30:44 +0000 (18:30 +0200)
commit4231daa21669a703278a4fffc819a9c22427d614
treefc4c5200109eaddbba0267c60f5732677b936b03
parent950d8adc5303e7d8405ddca280007dd9d1a63c8e
pwm: Add support for Xilinx AXI Timer

This adds PWM support for Xilinx LogiCORE IP AXI soft timers commonly
found on Xilinx FPGAs. At the moment clock control is very basic: we
just enable the clock during probe and pin the frequency. In the future,
someone could add support for disabling the clock when not in use.

Some common code has been specially demarcated. While currently only
used by the PWM driver, it is anticipated that it may be split off in
the future to be used by the timer driver as well.

This driver was written with reference to Xilinx DS764 for v1.03.a [1].

[1] https://www.xilinx.com/support/documentation/ip_documentation/axi_timer/v1_03_a/axi_timer_ds764.pdf

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
MAINTAINERS
arch/microblaze/kernel/timer.c
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-xilinx.c [new file with mode: 0644]
include/clocksource/timer-xilinx.h [new file with mode: 0644]