Skip to content

Commit 45a4237

Browse files
krzkvinodkoul
authored andcommitted
dt-bindings: phy: socionext,uniphier: add top-level constraints
Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clock-names and reset-names. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Kunihiko Hayashi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 9dab00e commit 45a4237

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

Documentation/devicetree/bindings/phy/socionext,uniphier-ahci-phy.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ properties:
3030
minItems: 1
3131
maxItems: 2
3232

33-
clock-names: true
33+
clock-names:
34+
minItems: 1
35+
maxItems: 6
3436

3537
resets:
3638
minItems: 2
3739
maxItems: 6
3840

39-
reset-names: true
41+
reset-names:
42+
minItems: 2
43+
maxItems: 6
4044

4145
allOf:
4246
- if:

Documentation/devicetree/bindings/phy/socionext,uniphier-pcie-phy.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ properties:
3131
minItems: 1
3232
maxItems: 2
3333

34-
clock-names: true
34+
clock-names:
35+
minItems: 1
36+
maxItems: 2
3537

3638
resets:
3739
minItems: 1
3840
maxItems: 2
3941

40-
reset-names: true
42+
reset-names:
43+
minItems: 1
44+
maxItems: 2
4145

4246
socionext,syscon:
4347
$ref: /schemas/types.yaml#/definitions/phandle

Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ properties:
3434
minItems: 2
3535
maxItems: 3
3636

37-
clock-names: true
37+
clock-names:
38+
minItems: 2
39+
maxItems: 3
3840

3941
resets:
4042
maxItems: 2
4143

42-
reset-names: true
44+
reset-names:
45+
maxItems: 2
4346

4447
vbus-supply:
4548
description: A phandle to the regulator for USB VBUS

Documentation/devicetree/bindings/phy/socionext,uniphier-usb3ss-phy.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ properties:
3535
minItems: 2
3636
maxItems: 3
3737

38-
clock-names: true
38+
clock-names:
39+
minItems: 2
40+
maxItems: 3
3941

4042
resets:
4143
maxItems: 2
4244

43-
reset-names: true
45+
reset-names:
46+
maxItems: 2
4447

4548
vbus-supply:
4649
description: A phandle to the regulator for USB VBUS, only for USB host

0 commit comments

Comments
 (0)