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

dt-bindings: PCI: Fix 'unevaluatedProperties' warnings

With 'unevaluatedProperties' support implemented, there's several
warnings due to undocumented properties:

Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.example.dt.yaml: pcie@1e140000: pcie@0,0: Unevaluated properties are not allowed ('phy-names' was unexpected)
Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.example.dt.yaml: pcie@1e140000: pcie@1,0: Unevaluated properties are not allowed ('phy-names' was unexpected)
Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.example.dt.yaml: pcie@1e140000: pcie@2,0: Unevaluated properties are not allowed ('phy-names' was unexpected)
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.example.dt.yaml: pcie@11230000: Unevaluated properties are not allowed ('phy-names' was unexpected)
Documentation/devicetree/bindings/pci/microchip,pcie-host.example.dt.yaml: pcie@2030000000: Unevaluated properties are not allowed ('interrupt-controller' was unexpected)
Documentation/devicetree/bindings/pci/ti,am65-pci-ep.example.dt.yaml: pcie-ep@5500000: Unevaluated properties are not allowed ('num-ib-windows', 'num-ob-windows' were unexpected)
Documentation/devicetree/bindings/pci/ti,am65-pci-host.example.dt.yaml: pcie@5500000: Unevaluated properties are not allowed ('num-viewport', 'interrupts' were unexpected)
Documentation/devicetree/bindings/pci/ti,j721e-pci-host.example.dt.yaml: pcie@2900000: Unevaluated properties are not allowed ('dma-coherent' was unexpected)

Add the necessary property definitions or remove the properties from the
examples to fix these warnings.

Cc: Ryder Lee <ryder.lee@mediatek.com>
Cc: Jianjun Wang <jianjun.wang@mediatek.com>
Cc: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Daire McNamara <daire.mcnamara@microchip.com>
Cc: Abraham I <kishon@ti.com>
Cc: linux-pci@vger.kernel.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211206194406.2469361-1-robh@kernel.org

+30 -3
+3
Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml
··· 45 45 phys: 46 46 maxItems: 1 47 47 48 + phy-names: 49 + pattern: '^pcie-phy[0-2]$' 50 + 48 51 required: 49 52 - "#interrupt-cells" 50 53 - interrupt-map-mask
+4
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
··· 95 95 phys: 96 96 maxItems: 1 97 97 98 + phy-names: 99 + items: 100 + - const: pcie-phy 101 + 98 102 '#interrupt-cells': 99 103 const: 1 100 104
+18
Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml
··· 46 46 msi-parent: 47 47 description: MSI controller the device is capable of using. 48 48 49 + interrupt-controller: 50 + type: object 51 + properties: 52 + '#address-cells': 53 + const: 0 54 + 55 + '#interrupt-cells': 56 + const: 1 57 + 58 + interrupt-controller: true 59 + 60 + required: 61 + - '#address-cells' 62 + - '#interrupt-cells' 63 + - interrupt-controller 64 + 65 + additionalProperties: false 66 + 49 67 required: 50 68 - reg 51 69 - reg-names
-2
Documentation/devicetree/bindings/pci/ti,am65-pci-ep.yaml
··· 66 66 reg-names = "app", "dbics", "addr_space", "atu"; 67 67 power-domains = <&k3_pds 120 TI_SCI_PD_EXCLUSIVE>; 68 68 ti,syscon-pcie-mode = <&pcie0_mode>; 69 - num-ib-windows = <16>; 70 - num-ob-windows = <16>; 71 69 max-link-speed = <2>; 72 70 dma-coherent; 73 71 interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
+3 -1
Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml
··· 29 29 - const: config 30 30 - const: atu 31 31 32 + interrupts: 33 + maxItems: 1 34 + 32 35 power-domains: 33 36 maxItems: 1 34 37 ··· 90 87 ti,syscon-pcie-id = <&pcie_devid>; 91 88 ti,syscon-pcie-mode = <&pcie0_mode>; 92 89 bus-range = <0x0 0xff>; 93 - num-viewport = <16>; 94 90 max-link-speed = <2>; 95 91 dma-coherent; 96 92 interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
+2
Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml
··· 60 60 - const: fck 61 61 - const: pcie_refclk 62 62 63 + dma-coherent: true 64 + 63 65 vendor-id: 64 66 const: 0x104c 65 67