linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] pwm: mediatek: Convert to waveform API
@ 2025-07-08 17:18 Uwe Kleine-König
  2025-07-08 17:18 ` [PATCH 1/8] pwm: mediatek: Simplify representation of channel offsets Uwe Kleine-König
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2025-07-08 17:18 UTC (permalink / raw)
  To: Matthias Brugger, AngeloGioacchino Del Regno
  Cc: linux-pwm, linux-arm-kernel, linux-mediatek

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-07-08 18:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 17:18 [PATCH 0/8] pwm: mediatek: Convert to waveform API Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 1/8] pwm: mediatek: Simplify representation of channel offsets Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 2/8] pwm: mediatek: Introduce and use a few more register defines Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 3/8] pwm: mediatek: Rework parameters for clk helper function Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 4/8] pwm: mediatek: Initialize clks when the hardware is enabled at probe time Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 5/8] pwm: mediatek: Implement .get_state() callback Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 6/8] pwm: mediatek: Fix various issues in the .apply() callback Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 7/8] pwm: mediatek: Lock and cache clock rate Uwe Kleine-König
2025-07-08 17:18 ` [PATCH 8/8] pwm: mediatek: Convert to waveform API Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).