]> git.dujemihanovic.xyz Git - u-boot.git/commit
pwm: Add driver for cadence TTC
authorMichal Simek <michal.simek@xilinx.com>
Fri, 15 Oct 2021 13:17:29 +0000 (15:17 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 30 Mar 2022 12:50:47 +0000 (14:50 +0200)
commitfb92cc2c17724d66a32f7a033608a1bd2176a478
treed1119d0f13dde85e40980d4ae94c1620dc63714e
parentdcbdd24259beaff903e7ffffde646a3c5bd756ac
pwm: Add driver for cadence TTC

TTC has three modes of operations. Timer, PWM and input counters.

There is already driver for timer under CADENCE_TTC_TIMER which is used for
ZynqMP R5 configuration.
This driver is targeting PWM which is for example configuration which can
be used for fan control.
The driver has been tested on Xilinx Kria SOM platform where fan is
connected to one PL pin. When TTC output is connected via EMIO to PL pin
TTC pwm can be configured and tested for example like this:
pwm config 0 0 10000 1200
pwm enable 0 0
pwm config 0 0 10000 1400
pwm config 0 0 10000 1600

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/915a662ddb88f7a958ca1f307e8fea59af9d7feb.1634303847.git.michal.simek@xilinx.com
MAINTAINERS
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-cadence-ttc.c [new file with mode: 0644]