mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] clk: mediatek: Model MT8196 PWM source selectors
@ 2026-11-17 19:16 Alexandre Mergnat
  2026-11-17 19:16 ` [PATCH 1/3] dt-bindings: clock: mediatek: Add MT8196 PWM muxes Alexandre Mergnat
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexandre Mergnat @ 2026-11-17 19:16 UTC (permalink / raw)
  To: Stephen Boyd, Brian Masney, Jerome Brunet, Matthias Brugger,
	AngeloGioacchino Del Regno, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Chen-Yu Tsai, Laura Nao
  Cc: Chris Chen, linux-clk, linux-kernel, linux-arm-kernel,
	linux-mediatek, devicetree, Alexandre Mergnat

On MT8196, a PWM channel can run at the wrong period: on the test
board, a 10 ms request on PWM1 gives a period of about 8 s. The
clock driver does not model the selector that picks the input of
each PWM channel clock, so the PWM driver can compute its counters
for the wrong rate.

Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
Alexandre Mergnat (2):
      clk: mediatek: clk-mtk: Add composite mux tables
      clk: mediatek: Add MT8196 PWM source muxes

Chris Chen (1):
      dt-bindings: clock: mediatek: Add MT8196 PWM muxes

 drivers/clk/mediatek/clk-mt8196-peri_ao.c         | 38 ++++++++++++++++++++---
 drivers/clk/mediatek/clk-mtk.c                    |  1 +
 drivers/clk/mediatek/clk-mtk.h                    | 16 ++++++++++
 include/dt-bindings/clock/mediatek,mt8196-clock.h |  5 +++
 4 files changed, 55 insertions(+), 5 deletions(-)
---
base-commit: f66469d9905b39d2c260a15d7d6db450f4db67c1
change-id: 20261117-mt8196-pwm-clk-0f154aa0e720

Best regards,
--  
Alexandre Mergnat <amergnat@baylibre.com>


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

end of thread, other threads:[~2026-11-23 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 19:16 [PATCH 0/3] clk: mediatek: Model MT8196 PWM source selectors Alexandre Mergnat
2026-11-17 19:16 ` [PATCH 1/3] dt-bindings: clock: mediatek: Add MT8196 PWM muxes Alexandre Mergnat
2026-11-23 12:34   ` Krzysztof Kozlowski
2026-11-17 19:16 ` [PATCH 2/3] clk: mediatek: clk-mtk: Add composite mux tables Alexandre Mergnat
2026-11-17 19:16 ` [PATCH 3/3] clk: mediatek: Add MT8196 PWM source muxes Alexandre Mergnat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®