dt-bindings: PCI: ti,j721e-pci-*: resolve unexpected property warnings
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
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
@@ -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
PATCH RESEND v2 2/2 dt-bindings: PCI: ti,j721e-pci-*: Add missing interrupt properties
In reply to Matt RanostayBoth 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
@@ -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
@@ -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
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