Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: PCI: socionext,uniphier-pcie: Add missing child interrupt controller

The Socionext interrupt controller internal to the the PCI block isn't
documented which causes warnings when unevaluatedProperties check is
also fixed. Add the 'interrupt-controller' child node and properties and
fixup the example so that interrupt properties can be parsed.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20220525210117.2489333-1-robh@kernel.org

+22 -1
+22 -1
Documentation/devicetree/bindings/pci/socionext,uniphier-pcie.yaml
··· 51 51 phy-names: 52 52 const: pcie-phy 53 53 54 + interrupt-controller: 55 + type: object 56 + additionalProperties: false 57 + 58 + properties: 59 + interrupt-controller: true 60 + 61 + '#interrupt-cells': 62 + const: 1 63 + 64 + interrupts: 65 + maxItems: 1 66 + 54 67 required: 55 68 - compatible 56 69 - reg ··· 75 62 76 63 examples: 77 64 - | 65 + bus { 66 + gic: interrupt-controller { 67 + interrupt-controller; 68 + #interrupt-cells = <3>; 69 + }; 70 + }; 71 + 78 72 pcie: pcie@66000000 { 79 73 compatible = "socionext,uniphier-pcie"; 80 74 reg-names = "dbi", "link", "config"; ··· 100 80 phys = <&pcie_phy>; 101 81 #interrupt-cells = <1>; 102 82 interrupt-names = "dma", "msi"; 83 + interrupt-parent = <&gic>; 103 84 interrupts = <0 224 4>, <0 225 4>; 104 85 interrupt-map-mask = <0 0 0 7>; 105 86 interrupt-map = <0 0 0 1 &pcie_intc 0>, ··· 108 87 <0 0 0 3 &pcie_intc 2>, 109 88 <0 0 0 4 &pcie_intc 3>; 110 89 111 - pcie_intc: legacy-interrupt-controller { 90 + pcie_intc: interrupt-controller { 112 91 interrupt-controller; 113 92 #interrupt-cells = <1>; 114 93 interrupt-parent = <&gic>;