Skip to contentSkip to conversation

pwm: atmel-tcb: switch to new binding

PATCH In review Kamel Bouhara 1 participant 1 message Apr 6, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/11 pwm: atmel-tcb: switch to new binding

From: Alexandre Belloni <[email protected]>

The PWM is now a subnode of the used TCB. This is cleaner and it mainly allows to stop wasting TCB channels when only 2 or 4 PWMs are used.

This also removes the atmel_tclib dependency

---
 drivers/pwm/Kconfig         |   3 +-
 drivers/pwm/pwm-atmel-tcb.c | 241 ++++++++++++++++++++----------------
 2 files changed, 137 insertions(+), 107 deletions(-)
drivers/pwm/Kconfig +2 -1
index 30190beeb6e9..1cf5a5d672c8 100644
@@ -65,7 +65,8 @@ config PWM_ATMEL_HLCDC_PWM
 
 config PWM_ATMEL_TCB
 	tristate "Atmel TC Block PWM support"
-	depends on ATMEL_TCLIB && OF
+	depends on OF
+	select REGMAP_MMIO
 	help
 	  Generic PWM framework driver for Atmel Timer Counter Block.
 
drivers/pwm/pwm-atmel-tcb.c +135 -106

462 lines not on this page · raw message

Signature · 1 line
2.25.0