[PATCH 1/2] dt-bindings: serial: 8250: support an optional second clock

Alex Elder
2025-04-08T17:51:51Z

The SpacemiT UART driver requires a bus clock to be enabled in addition
to the primary function clock. Add the option to specify two clocks
for an 8250-compatible UART, named "core" and "bus".

Signed-off-by: Alex Elder <elder@riscstar.com>
---
Documentation/devicetree/bindings/serial/8250.yaml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml
index dc0d52920575f..1adf935b7f36f 100644
--- a/Documentation/devicetree/bindings/serial/8250.yaml
+++ b/Documentation/devicetree/bindings/serial/8250.yaml
@@ -135,7 +135,11 @@ properties:
clock-frequency: true

clocks:
- maxItems: 1
+ oneOf:
+ - maxItems: 1
+ - items:
+ - const: core
+ - const: bus

resets:
maxItems: 1
--
2.45.2