[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250411154419.1379529-2-elder@riscstar.com>
Date: Fri, 11 Apr 2025 10:44:16 -0500
From: Alex Elder <elder@...cstar.com>
To: robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
gregkh@...uxfoundation.org,
jirislaby@...nel.org
Cc: dlan@...too.org,
benjamin.larsson@...exis.eu,
bastien.curutchet@...tlin.com,
andriy.shevchenko@...ux.intel.com,
u.kleine-koenig@...libre.com,
lkundrak@...sk,
devicetree@...r.kernel.org,
linux-serial@...r.kernel.org,
spacemit@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH v3 1/3] dt-bindings: serial: 8250: support an optional second clock
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". If both are needed,
require them to be named.
Signed-off-by: Alex Elder <elder@...cstar.com>
Reviewed-by: Rob Herring (Arm) <robh@...nel.org>
---
v3: Added Rob's Reviewed-by tag
.../devicetree/bindings/serial/8250.yaml | 30 ++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml
index dc0d52920575f..33d2016b65090 100644
--- a/Documentation/devicetree/bindings/serial/8250.yaml
+++ b/Documentation/devicetree/bindings/serial/8250.yaml
@@ -135,7 +135,16 @@ properties:
clock-frequency: true
clocks:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: The core function clock
+ - description: An optional bus clock
+
+ clock-names:
+ minItems: 1
+ items:
+ - const: core
+ - const: bus
resets:
maxItems: 1
@@ -224,6 +233,25 @@ required:
- reg
- interrupts
+if:
+ properties:
+ compatible:
+ contains:
+ const: spacemit,k1-uart
+then:
+ required: [clock-names]
+ properties:
+ clocks:
+ minItems: 2
+ clock-names:
+ minItems: 2
+else:
+ properties:
+ clocks:
+ maxItems: 1
+ clock-names:
+ maxItems: 1
+
unevaluatedProperties: false
examples:
--
2.45.2
Powered by blists - more mailing lists