dt-bindings: PCI: mediatek,mt7621: Add missing child node reg
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 13 Apr 2024 15:16:15 +0000 (17:16 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 15 May 2024 14:44:47 +0000 (14:44 +0000)
MT7621 PCI host bridge has children which are PCI root ports.  The
children have "reg" property, but do not explicitly define it.  Instead
they rely on pci-bus.yaml schema, but that one has "reg" without any
constraints.

Define the "reg" for the children, so the binding will be more specific
and later will allow dropping reference to deprecated pci-bus.yaml
schema.

Link: https://lore.kernel.org/linux-pci/20240413151617.35630-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml

index e63e6458cea8f780055744081b281cc9dc522724..61d027239910a78f9dc01ee7198535a971806be9 100644 (file)
@@ -36,6 +36,9 @@ patternProperties:
     $ref: /schemas/pci/pci-bus.yaml#
 
     properties:
+      reg:
+        maxItems: 1
+
       resets:
         maxItems: 1