Skip to contentSkip to conversation

dt-bindings: PCI: ti,j721e-pci-*: resolve unexpected property warnings

PATCH RESEND Applied Matt Ranostay 2 participants 4 messages Oct 25, 2022 – Oct 27, 2022

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

v2 cover dt-bindings: PCI: ti,j721e-pci-*: resolve unexpected property warnings

Resolve unexpected property warnings related to interrupts in both J721E PCI EP and host yaml files.

Changes from v1:
* Fix typo in commit message
* Add missing Cc to maintainers

Matt Ranostay (2):
dt-bindings: PCI: ti,j721e-pci-host: add interrupt controller
definition
dt-bindings: PCI: ti,j721e-pci-*: Add missing interrupt properties

 .../bindings/pci/ti,j721e-pci-ep.yaml         |  7 +++++++
 .../bindings/pci/ti,j721e-pci-host.yaml       | 20 +++++++++++++++++++
 2 files changed, 27 insertions(+)
Signature · 1 line
2.38.GIT
#1 lore raw

PATCH RESEND v2 1/2 dt-bindings: PCI: ti,j721e-pci-host: add interrupt controller definition

Add missing 'interrupt-controller' property and related subnodes to resolve the following warning:

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

---
 .../devicetree/bindings/pci/ti,j721e-pci-host.yaml  | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +13 -0
index 2115d5a3f0e1..0f5914a22c14 100644
@@ -76,6 +76,19 @@ properties:
 
   msi-map: true
 
+  interrupt-controller:
+    type: object
+    additionalProperties: false
+
+    properties:
+      interrupt-controller: true
+
+      '#interrupt-cells':
+        const: 1
+
+      interrupts:
+        maxItems: 1
+
 required:
   - compatible
   - reg
Signature · 1 line
2.38.GIT
#2 lore raw

PATCH RESEND v2 2/2 dt-bindings: PCI: ti,j721e-pci-*: Add missing interrupt properties

In reply to Matt Ranostay

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

---
 Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml | 7 +++++++
 .../devicetree/bindings/pci/ti,j721e-pci-host.yaml         | 7 +++++++
 2 files changed, 14 insertions(+)
Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml +7 -0
index aed437dac363..10e6eabdff53 100644
@@ -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
Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +7 -0
index 0f5914a22c14..d9df7cd922f1 100644
@@ -76,6 +76,13 @@ properties:
 
   msi-map: true
 
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: link_state
+
   interrupt-controller:
     type: object
     additionalProperties: false
Signature · 1 line
2.38.GIT
maintainer Applied
#3 lore raw
In reply to Matt Ranostay
Quoted 8 lines · Matt Ranostay

Resolve unexpected property warnings related to interrupts in both J721E PCI EP and host yaml files.

Changes from v1:
* Fix typo in commit message
* Add missing Cc to maintainers

[...]

Applied to pci/dt, thanks!

[1/2] dt-bindings: PCI: ti,j721e-pci-host: add interrupt controller definition
https://git.kernel.org/lpieralisi/pci/c/ba4ff1cb6cac
[2/2] dt-bindings: PCI: ti,j721e-pci-*: Add missing interrupt properties

      https://git.kernel.org/lpieralisi/pci/c/598418e60356

Thanks,
Lorenzo