]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: serial: 8250: spacemit: set clocks property as required
authorYixun Lan <dlan@gentoo.org>
Fri, 18 Jul 2025 15:04:37 +0000 (23:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2025 15:38:54 +0000 (17:38 +0200)
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>
Acked-by: "Rob Herring (Arm)" <robh@kernel.org>
Link: https://lore.kernel.org/r/20250718-01-k1-uart-binding-v1-1-a92e1e14c836@gentoo.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/serial/8250.yaml

index 2766bb6ff2d1bb28160fb4d3f3a945d23ffef4f6..e46bee8d25bf02f618eb1336f19238dc99222ec0 100644 (file)
@@ -272,7 +272,9 @@ if:
           - spacemit,k1-uart
           - nxp,lpc1850-uart
 then:
-  required: [clock-names]
+  required:
+    - clocks
+    - clock-names
   properties:
     clocks:
       minItems: 2