linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] pwm: axi-pwmgen: add external clock
@ 2025-05-20 21:00 David Lechner
  2025-05-20 21:00 ` [PATCH 1/3] dt-bindings: pwm: adi,axi-pwmgen: update documentation link David Lechner
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: David Lechner @ 2025-05-20 21:00 UTC (permalink / raw)
  To: Michael Hennerich, Nuno Sá, Trevor Gamblin,
	Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-pwm, devicetree, linux-kernel, David Lechner

When we created the driver for the AXI PWMGEN IP block, we overlooked
the fact that it can optionally be configured to use an external clock
in addition to the AXI bus clock. This is easy to miss in testing
because the bus clock is always on because it is driving other
peripherals as well.

Up to now, users were specifying the external clock if there was one and
the AXI bus clock otherwise. But the proper way to do this is to would
be to always specify the bus clock and only specify the external clock
if the IP block has been configured to use it.

To support this, we extend the bindings to allow 1 or 2 clocks and
modify the driver to handle both cases.

---
David Lechner (3):
      dt-bindings: pwm: adi,axi-pwmgen: update documentation link
      dt-bindings: pwm: adi,axi-pwmgen: add external clock
      pwm: axi-pwmgen: add support for external clock

 .../devicetree/bindings/pwm/adi,axi-pwmgen.yaml    | 28 ++++++++++++++++++----
 drivers/pwm/pwm-axi-pwmgen.c                       | 23 +++++++++++++++---
 2 files changed, 43 insertions(+), 8 deletions(-)
---
base-commit: 484803582c77061b470ac64a634f25f89715be3f
change-id: 20250515-pwm-axi-pwmgen-add-external-clock-0364fbdf809b

Best regards,
-- 
David Lechner <dlechner@baylibre.com>


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

end of thread, other threads:[~2025-05-21 15:40 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 21:00 [PATCH 0/3] pwm: axi-pwmgen: add external clock David Lechner
2025-05-20 21:00 ` [PATCH 1/3] dt-bindings: pwm: adi,axi-pwmgen: update documentation link David Lechner
2025-05-20 21:00 ` [PATCH 2/3] dt-bindings: pwm: adi,axi-pwmgen: add external clock David Lechner
2025-05-21 10:09   ` Krzysztof Kozlowski
2025-05-21 13:14     ` David Lechner
2025-05-21 13:28       ` Krzysztof Kozlowski
2025-05-21 13:50         ` David Lechner
2025-05-20 21:00 ` [PATCH 3/3] pwm: axi-pwmgen: add support for " David Lechner
2025-05-21  9:22   ` Uwe Kleine-König
2025-05-21 13:19     ` David Lechner
2025-05-21 13:54       ` Uwe Kleine-König
2025-05-21 14:12         ` David Lechner
2025-05-21 14:32           ` Nuno Sá
2025-05-21 14:22         ` Nuno Sá
2025-05-21 15:05           ` David Lechner
2025-05-21 15:40             ` Nuno Sá
2025-05-21 10:10   ` Krzysztof Kozlowski
2025-05-21 13:23     ` David Lechner
2025-05-21 13:30       ` Krzysztof Kozlowski
2025-05-21 13:53         ` David Lechner

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).