Skip to contentSkip to conversation

dt-bindings: PCI: hisilicon,kirin-pcie: add top-level constraints

PATCH Applied Krzysztof Kozlowski 4 participants 8 messages Aug 18, 2024 – Sep 4, 2024

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 dt-bindings: PCI: hisilicon,kirin-pcie: 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.

---
 .../devicetree/bindings/pci/hisilicon,kirin-pcie.yaml          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml +2 -1
index c9f04999c9cf..e863519f3161 100644
@@ -37,7 +37,8 @@ properties:
     minItems: 3
     maxItems: 4
 
-  clocks: true
+  clocks:
+    maxItems: 5
 
   clock-names:
     items:
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/3 dt-bindings: PCI: renesas,pci-rcar-gen2: 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 clocks and clock-names.

---
 .../devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml +6 -2
index b288cdb1ec70..065b7508d288 100644
@@ -42,9 +42,13 @@ properties:
   interrupts:
     maxItems: 1
 
-  clocks: true
+  clocks:
+    minItems: 1
+    maxItems: 3
 
-  clock-names: true
+  clock-names:
+    minItems: 1
+    maxItems: 3
 
   resets:
     maxItems: 1
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] dt-bindings: PCI: renesas,pci-rcar-gen2: add top-level constraints

Quoted 10 lines · Krzysztof Kozlowski

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 clocks and clock-names.

---
 .../devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
#3 lore raw

PATCH 3/3 dt-bindings: PCI: socionext,uniphier-pcie-ep: add top-level constraints

In reply to Krzysztof Kozlowski

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.

---
 .../bindings/pci/socionext,uniphier-pcie-ep.yaml          | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml +6 -2
index f0d8e486a07d..93f3d0f4bb94 100644
@@ -38,13 +38,17 @@ properties:
     minItems: 1
     maxItems: 2
 
-  clock-names: true
+  clock-names:
+    minItems: 1
+    maxItems: 2
 
   resets:
     minItems: 1
     maxItems: 2
 
-  reset-names: true
+  reset-names:
+    minItems: 1
+    maxItems: 2
 
   num-ib-windows:
     const: 16
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] dt-bindings: PCI: socionext,uniphier-pcie-ep: add top-level constraints

Quoted 10 lines · Krzysztof Kozlowski

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.

---
 .../bindings/pci/socionext,uniphier-pcie-ep.yaml          | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
maintainer Reviewed-by on v1 3/3
#5 lore raw

Re: [PATCH 3/3] dt-bindings: PCI: socionext,uniphier-pcie-ep: add top-level constraints

In reply to Krzysztof Kozlowski

Hi Krzysztof,

Quoted 28 lines · Krzysztof Kozlowski

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.

---
  .../bindings/pci/socionext,uniphier-pcie-ep.yaml          | 8 ++++++--
  1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml index f0d8e486a07d..93f3d0f4bb94 100644
---
a/Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml
+++
b/Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml

Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml +3 -1
@@ -38,13 +38,17 @@ properties:
      minItems: 1
      maxItems: 2
 
-  clock-names: true
+  clock-names:
+    minItems: 1
+    maxItems: 2
 
    resets:

Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml properties: · line 54

Quoted 10 lines
Documentation/devicetree/bindings/pci/socionext,uniphier-pcie-ep.yaml +3 -1
      minItems: 1
      maxItems: 2
 
-  reset-names: true
+  reset-names:
+    minItems: 1
+    maxItems: 2
 
    num-ib-windows:
      const: 16

I'd appreciate if it could be applied in devicetree or pci.

Thank you,

---
Best Regards
Kunihiko Hayashi

maintainer Reviewed-by on v1 1/3
#6 lore raw
In reply to Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski

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.

---
 .../devicetree/bindings/pci/hisilicon,kirin-pcie.yaml          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
#7 lore raw
In reply to Krzysztof Kozlowski

Hello,

Quoted 4 lines

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.

Applied to dt-bindings, thank you!

[01/03] dt-bindings: PCI: hisilicon,kirin-pcie: Add top-level constraints

        https://git.kernel.org/pci/pci/c/ac44be2155cd

[02/03] dt-bindings: PCI: renesas,pci-rcar-gen2: Add top-level constraints

        https://git.kernel.org/pci/pci/c/c62a0b8fe8bf

[03/03] dt-bindings: PCI: socionext,uniphier-pcie-ep: Add top-level constraints

        https://git.kernel.org/pci/pci/c/a5c1bf7e9a46

	Krzysztof