dt-bindings: PCI: ti,j721e-pci-*: Add missing interrupt properties
authorMatt Ranostay <mranostay@ti.com>
Tue, 25 Oct 2022 08:19:09 +0000 (01:19 -0700)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Thu, 27 Oct 2022 08:09:39 +0000 (10:09 +0200)
Both interrupts, and interrupt names weren't defined in both EP and host
yaml. Also define the only possible interrupt-name as link_state, and
maxItems of interrupts to one.

This patch resolves the following warning:

arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dtb: pcie-ep@2910000: Unevaluated properties are not allowed ('interrupt-names', 'interrupts' were unexpected)
        From schema Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml

Link: https://lore.kernel.org/r/20221025081909.404107-3-mranostay@ti.com
Signed-off-by: Matt Ranostay <mranostay@ti.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml
Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml

index aed437dac363a10131835cf1ca7cce5155c53afd..10e6eabdff534ac947b31209848944709091f04a 100644 (file)
@@ -58,6 +58,13 @@ properties:
   dma-coherent:
     description: Indicates that the PCIe IP block can ensure the coherency
 
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: link_state
+
 required:
   - compatible
   - reg
index 0f5914a22c14c8dedb1c1bfec2e548fa5bd31740..d9df7cd922f1f626d6e8efd63132580c4d8b3e7a 100644 (file)
@@ -76,6 +76,13 @@ properties:
 
   msi-map: true
 
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: link_state
+
   interrupt-controller:
     type: object
     additionalProperties: false