Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: serial: 8250: move a constraint

A block that required a "spacemit,k1-uart" compatible node to
specify two clocks was placed in the wrong spot in the binding.
Conor Dooley pointed out it belongs earlier in the file, as part
of the initial "allOf".

Fixes: 2c0594f9f0629 ("dt-bindings: serial: 8250: support an optional second clock")
Cc: stable <stable@kernel.org>
Reported-by: Conor Dooley <conor@kernel.org>
Closes: https://lore.kernel.org/lkml/20250729-reshuffle-contented-e6def76b540b@spud/
Signed-off-by: Alex Elder <elder@riscstar.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250813032151.2330616-1-elder@riscstar.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alex Elder and committed by
Greg Kroah-Hartman
387d0002 ee047e1d

+22 -24
+22 -24
Documentation/devicetree/bindings/serial/8250.yaml
··· 48 48 oneOf: 49 49 - required: [ clock-frequency ] 50 50 - required: [ clocks ] 51 - 52 51 - if: 53 52 properties: 54 53 compatible: ··· 65 66 items: 66 67 - const: core 67 68 - const: bus 69 + - if: 70 + properties: 71 + compatible: 72 + contains: 73 + enum: 74 + - spacemit,k1-uart 75 + - nxp,lpc1850-uart 76 + then: 77 + required: 78 + - clocks 79 + - clock-names 80 + properties: 81 + clocks: 82 + minItems: 2 83 + clock-names: 84 + minItems: 2 85 + else: 86 + properties: 87 + clocks: 88 + maxItems: 1 89 + clock-names: 90 + maxItems: 1 68 91 69 92 properties: 70 93 compatible: ··· 284 263 required: 285 264 - reg 286 265 - interrupts 287 - 288 - if: 289 - properties: 290 - compatible: 291 - contains: 292 - enum: 293 - - spacemit,k1-uart 294 - - nxp,lpc1850-uart 295 - then: 296 - required: 297 - - clocks 298 - - clock-names 299 - properties: 300 - clocks: 301 - minItems: 2 302 - clock-names: 303 - minItems: 2 304 - else: 305 - properties: 306 - clocks: 307 - maxItems: 1 308 - clock-names: 309 - maxItems: 1 310 266 311 267 unevaluatedProperties: false 312 268