[PATCH 0/8] pwm: mediatek: Convert to waveform API
Uwe Kleine-König
u.kleine-koenig at baylibre.com
Tue Jul 8 10:18:30 PDT 2025
Hello,
after a few cleanups and preparing changes .get_state() is implemented
and .apply() is aligned to the usual PWM rounding policy. The last
patch then converts the driver to implement the new waveform callbacks.
While this last commit removes functions that were created and adapted
earlier in the series I still consider these earlier changes sensible.
They provide a good intermediate step for both testing and bisection.
I don't have access to hardware documentation (yet), so please double
check that the names I introduce are sensible. Also one issue that I see
is that after poweron the LED that is connected to pwm0 on my mt8365
board is enabled, but the hardware is in a state that is detected as
disabled. So I'm open for feedback, otherwise I will address these
points when Mediatek will have given me access to their manuals.
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 | 498 +++++++++++++++++++++++++------------
1 file changed, 344 insertions(+), 154 deletions(-)
base-commit: edd3bcb1801e1bb98f4f81485140e18c86406ced
--
2.49.0
More information about the linux-arm-kernel
mailing list