Skip to content

pwm: pca9586: Convert to waveform API

Uwe Kleine-König linux-pwm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pwm: pca9685: Don't disable hardware in .free()drivers/pwm/pwm-pca9685.c+0 -10 replies
2/5pwm: pca9685: Use bulk write to atomicially update registersdrivers/pwm/pwm-pca9685.c+29 -170 replies
3/5pwm: pca9685: Make use of register caching in regmapdrivers/pwm/pwm-pca9685.c+26 -10 replies
4/5pwm: pca9685: Drop GPIO supportdrivers/pwm/pwm-pca9685.c+0 -1560 replies
5/5pwm: pca9586: Convert to waveform APIdrivers/pwm/pwm-pca9685.c+185 -1620 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] pwm: pca9586: Convert to waveform API

Hello,

this series eventually converts the pca9685 driver to the new waveform callbacks. It starts with a few minor fixes and cleanups before the actual conversion.

Note that this driver was the only one that supported the usage_power flag and when it was set increased the duty_offset. Now duty_offset is under control of the consumer, so no functionallity is lost.

Patch #4 drops GPIO support. Though the internal details differ a bit, this is superseded by patch
https://lore.kernel.org/linux-pwm/[email protected]
which provides generic GPIO support for waveform PWM chips.

Best regards
Uwe

Uwe Kleine-König (5):
pwm: pca9685: Don't disable hardware in .free()
pwm: pca9685: Use bulk write to atomicially update registers
pwm: pca9685: Make use of register caching in regmap
pwm: pca9685: Drop GPIO support
pwm: pca9586: Convert to waveform API

 drivers/pwm/pwm-pca9685.c | 555 ++++++++++++++++----------------------
 1 file changed, 229 insertions(+), 326 deletions(-)

base-commit: 68b9272ca7ac948b71aba482ef8244dee8032f46
prerequisite-patch-id: 917be1150626d7632f99929ac9f7dc1449864979

Signature · 1 line
2.50.0