[PATCH v2 0/8] pwm: mediatek: Convert to waveform API
Uwe Kleine-König
u.kleine-koenig at baylibre.com
Fri Jul 25 08:45:04 PDT 2025
Hello,
here comes v2 of my effort to convert the pwm-mediatek driver to the new
waveform API. Changes since (implicit) v1 (available at
https://lore.kernel.org/linux-pwm/cover.1751994509.git.u.kleine-koenig@baylibre.com/):
- Rebase on top of the latest fix for period and duty setting
(https://lore.kernel.org/linux-pwm/20250724210041.2513590-2-u.kleine-koenig@baylibre.com/)
- Don't report a disabled PWM when the PWM is disabled. Though that
seems counter intuitive, this is the only way to allow the consumer
to query the minimal period. This wasn't necessary in v1 because back
then the driver claimed to provide a non-disabled setting for
duty_cycle=0 .
As before the patches in the middle don't serve a functional purpose
because the last patch removes the changes again. Still I consider it
useful because it reduces the last patch to what is needed in such a
conversion.
Best regards
Uwe
Uwe Kleine-König (8):
pwm: mediatek: Simplify representation of channel offsets
pwm: mediatek: Introduce and use a few more register defines
pwm: mediatek: Rework parameters for clk helper function
pwm: mediatek: Initialize clks when the hardware is enabled at probe
time
pwm: mediatek: Implement .get_state() callback
pwm: mediatek: Fix various issues in the .apply() callback
pwm: mediatek: Lock and cache clock rate
pwm: mediatek: Convert to waveform API
drivers/pwm/pwm-mediatek.c | 454 ++++++++++++++++++++++++++-----------
1 file changed, 319 insertions(+), 135 deletions(-)
base-commit: 68b9272ca7ac948b71aba482ef8244dee8032f46
prerequisite-patch-id: ec97edc20a72c4e283e74cec97c8cc6036e2fd01
--
2.50.0
More information about the linux-arm-kernel
mailing list