[PATCH] dt-bindings: serial: 8250: spacemit: set clocks property as required

Yixun Lan posted 1 patch 2 months, 2 weeks ago
Documentation/devicetree/bindings/serial/8250.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
[PATCH] dt-bindings: serial: 8250: spacemit: set clocks property as required
Posted by Yixun Lan 2 months, 2 weeks ago
In SpacemiT's K1 SoC, the clocks for UART are mandatory needed, so
for DT, both clocks and clock-names property should be set as required.

Fixes: 2c0594f9f062 ("dt-bindings: serial: 8250: support an optional second clock")
Signed-off-by: Yixun Lan <dlan@gentoo.org>
---
 Documentation/devicetree/bindings/serial/8250.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml
index 33d2016b65090d0df257f9780ad8d5e05f7ce798..2c7604ed2a41d029276d3ebe9a3960a8dd44a9d9 100644
--- a/Documentation/devicetree/bindings/serial/8250.yaml
+++ b/Documentation/devicetree/bindings/serial/8250.yaml
@@ -239,7 +239,9 @@ if:
       contains:
         const: spacemit,k1-uart
 then:
-  required: [clock-names]
+  required:
+    - clocks
+    - clock-names
   properties:
     clocks:
       minItems: 2

---
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
change-id: 20250718-01-k1-uart-binding-6a996b6e2ff2

Best regards,
-- 
Yixun Lan
Re: [PATCH] dt-bindings: serial: 8250: spacemit: set clocks property as required
Posted by Rob Herring (Arm) 2 months, 2 weeks ago
On Fri, 18 Jul 2025 23:04:37 +0800, Yixun Lan wrote:
> In SpacemiT's K1 SoC, the clocks for UART are mandatory needed, so
> for DT, both clocks and clock-names property should be set as required.
> 
> Fixes: 2c0594f9f062 ("dt-bindings: serial: 8250: support an optional second clock")
> Signed-off-by: Yixun Lan <dlan@gentoo.org>
> ---
>  Documentation/devicetree/bindings/serial/8250.yaml | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>