diff mbox series

[1/3] dt-bindings: PCI: hisilicon,kirin-pcie: add top-level constraints

Message ID 20240818172843.121787-1-krzysztof.kozlowski@linaro.org (mailing list archive)
State Accepted
Delegated to: Krzysztof Wilczyński
Headers show
Series [1/3] dt-bindings: PCI: hisilicon,kirin-pcie: add top-level constraints | expand

Commit Message

Krzysztof Kozlowski Aug. 18, 2024, 5:28 p.m. UTC
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 <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/pci/hisilicon,kirin-pcie.yaml          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Rob Herring (Arm) Aug. 19, 2024, 5:14 p.m. UTC | #1
On Sun, 18 Aug 2024 19:28:41 +0200, Krzysztof Kozlowski wrote:
> 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 <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/pci/hisilicon,kirin-pcie.yaml          | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Krzysztof Wilczyński Sept. 4, 2024, 2:37 p.m. UTC | #2
Hello,

> 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
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml b/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml
index c9f04999c9cf..e863519f3161 100644
--- a/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml
@@ -37,7 +37,8 @@  properties:
     minItems: 3
     maxItems: 4
 
-  clocks: true
+  clocks:
+    maxItems: 5
 
   clock-names:
     items: