[PATCH v4 0/3] Add initial support for TTC PWM driver

From: Mubin Sayyed
Date: Wed Jan 15 2025 - 06:36:59 EST


Adds initial TTC PWM driver.In case of TTC configured as PWM device,
TTC clocksource driver calls probe of PWM functionality and registers TTC
device with PWM framework. With these changes drivers/pwm/pwm-cadence.c would be
part of drivers/clocksource/timer-cadence-ttc.c driver.

link for v2:
https://lore.kernel.org/linux-arm-kernel/20231114124748.581850-2-mubin.sayyed@xxxxxxx/T/#mfb786b5d23fc8948375b9b570f02a0e5a8095095

Note: Bindings are merged as part of v3
https://lore.kernel.org/lkml/46630fa5-381a-4006-ade4-2c18e76331ff@xxxxxxxxxx/T/

Mubin Sayyed (3):
clocksource: timer-cadence-ttc: Prepare to support TTC PWM
clocksource: timer-cadence-ttc: Support TTC device configured as PWM
pwm: pwm-cadence: Add support for TTC PWM

drivers/clocksource/timer-cadence-ttc.c | 62 +++--
drivers/pwm/Kconfig | 10 +
drivers/pwm/Makefile | 1 +
drivers/pwm/pwm-cadence.c | 323 ++++++++++++++++++++++++
include/linux/timer-cadence-ttc.h | 55 ++++
5 files changed, 423 insertions(+), 28 deletions(-)
create mode 100644 drivers/pwm/pwm-cadence.c
create mode 100644 include/linux/timer-cadence-ttc.h

--
2.25.1