devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] serial: 8250_of: support an optional bus clock
@ 2025-04-09 19:22 Alex Elder
  2025-04-09 19:22 ` [PATCH v2 1/2] dt-bindings: serial: 8250: support an optional second clock Alex Elder
  2025-04-09 19:22 ` [PATCH v2 2/2] serial: 8250_of: add support for an optional bus clock Alex Elder
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Elder @ 2025-04-09 19:22 UTC (permalink / raw)
  To: gregkh, jirislaby, robh, krzk+dt, conor+dt
  Cc: dlan, benjamin.larsson, bastien.curutchet, andriy.shevchenko,
	u.kleine-koenig, lkundrak, devicetree, linux-serial, spacemit,
	linux-kernel

The SpacemiT UART hardware requires a bus clock to be enabled in addition
to the primary function clock.

This series makes it possible to specify both clocks via DTS.  If a
bus clock is required, it and the primary clock are fetched by name.

Since the first version, the DT binding (which had errors) was updated
to properly define the number of clocks and clock names, dependent on
the compatible string as suggested by Rob Herring.

The logic that looks up the optional bus clock has also been changed, as
requested by Andy Shevchenko.  In addition, the bus clock pointer (which
was never used after it was enabled) is no longer stored in the
of_serial_info structure.

Here is the first version of this series:
  https://lore.kernel.org/lkml/20250408175146.979557-1-elder@riscstar.com/

					-Alex

Alex Elder (2):
  dt-bindings: serial: 8250: support an optional second clock
  serial: 8250_of: add support for an optional bus clock

 .../devicetree/bindings/serial/8250.yaml      | 30 ++++++++++++++++++-
 drivers/tty/serial/8250/8250_of.c             | 11 ++++++-
 2 files changed, 39 insertions(+), 2 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2025-04-10 13:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 19:22 [PATCH v2 0/2] serial: 8250_of: support an optional bus clock Alex Elder
2025-04-09 19:22 ` [PATCH v2 1/2] dt-bindings: serial: 8250: support an optional second clock Alex Elder
2025-04-10 13:01   ` Rob Herring (Arm)
2025-04-09 19:22 ` [PATCH v2 2/2] serial: 8250_of: add support for an optional bus clock Alex Elder
2025-04-09 21:43   ` Yixun Lan
2025-04-09 22:47     ` Alex Elder
2025-04-09 23:59       ` Yixun Lan

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