Skip to content

Commit 387d000

Browse files
alexeldergregkh
authored andcommitted
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: 2c0594f ("dt-bindings: serial: 8250: support an optional second clock") Cc: stable <[email protected]> Reported-by: Conor Dooley <[email protected]> Closes: https://lore.kernel.org/lkml/20250729-reshuffle-contented-e6def76b540b@spud/ Signed-off-by: Alex Elder <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ee047e1 commit 387d000

File tree

1 file changed

+22
-24
lines changed
  • Documentation/devicetree/bindings/serial

1 file changed

+22
-24
lines changed

Documentation/devicetree/bindings/serial/8250.yaml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ allOf:
4848
oneOf:
4949
- required: [ clock-frequency ]
5050
- required: [ clocks ]
51-
5251
- if:
5352
properties:
5453
compatible:
@@ -66,6 +65,28 @@ allOf:
6665
items:
6766
- const: core
6867
- const: bus
68+
- if:
69+
properties:
70+
compatible:
71+
contains:
72+
enum:
73+
- spacemit,k1-uart
74+
- nxp,lpc1850-uart
75+
then:
76+
required:
77+
- clocks
78+
- clock-names
79+
properties:
80+
clocks:
81+
minItems: 2
82+
clock-names:
83+
minItems: 2
84+
else:
85+
properties:
86+
clocks:
87+
maxItems: 1
88+
clock-names:
89+
maxItems: 1
6990

7091
properties:
7192
compatible:
@@ -264,29 +285,6 @@ required:
264285
- reg
265286
- interrupts
266287

267-
if:
268-
properties:
269-
compatible:
270-
contains:
271-
enum:
272-
- spacemit,k1-uart
273-
- nxp,lpc1850-uart
274-
then:
275-
required:
276-
- clocks
277-
- clock-names
278-
properties:
279-
clocks:
280-
minItems: 2
281-
clock-names:
282-
minItems: 2
283-
else:
284-
properties:
285-
clocks:
286-
maxItems: 1
287-
clock-names:
288-
maxItems: 1
289-
290288
unevaluatedProperties: false
291289

292290
examples:

0 commit comments

Comments
 (0)