mbox series

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

Message ID 20250115113556.2832282-1-mubin.sayyed@amd.com (mailing list archive)
Headers show
Series Add initial support for TTC PWM driver | expand

Message

Mubin Sayyed Jan. 15, 2025, 11:35 a.m. UTC
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@amd.com/T/#mfb786b5d23fc8948375b9b570f02a0e5a8095095

Note: Bindings are merged as part of v3 
 https://lore.kernel.org/lkml/46630fa5-381a-4006-ade4-2c18e76331ff@linaro.org/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