[PATCH v2 0/2] serial: 8250_of: support an optional bus clock
From: Alex Elder
Date: Wed Apr 09 2025 - 15:22:42 EST
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@xxxxxxxxxxxx/
-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