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

dt-bindings: PCI: intel,lgm-pcie: Add reference to common schemas

Add a reference to snps,dw-pcie.yaml (and indirectly pci-bus.yaml) schemas.
With this, the common bus properties can be dropped from the schema.

Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210719220351.2662758-1-robh@kernel.org

+5 -31
+5 -31
Documentation/devicetree/bindings/pci/intel-gw-pcie.yaml
··· 7 7 title: PCIe RC controller on Intel Gateway SoCs 8 8 9 9 maintainers: 10 - - Dilip Kota <eswara.kota@linux.intel.com> 10 + - Rahul Tanwar <rtanwar@maxlinear.com> 11 11 12 12 select: 13 13 properties: ··· 17 17 required: 18 18 - compatible 19 19 20 + allOf: 21 + - $ref: /schemas/pci/snps,dw-pcie.yaml# 22 + 20 23 properties: 21 24 compatible: 22 25 items: 23 26 - const: intel,lgm-pcie 24 27 - const: snps,dw-pcie 25 - 26 - device_type: 27 - const: pci 28 - 29 - "#address-cells": 30 - const: 3 31 - 32 - "#size-cells": 33 - const: 2 34 28 35 29 reg: 36 30 items: ··· 56 62 reset-gpios: 57 63 maxItems: 1 58 64 59 - linux,pci-domain: true 60 - 61 65 num-lanes: 62 66 maximum: 2 63 - description: Number of lanes to use for this port. 64 - 65 - '#interrupt-cells': 66 - const: 1 67 - 68 - interrupt-map-mask: 69 - description: Standard PCI IRQ mapping properties. 70 - 71 - interrupt-map: 72 - description: Standard PCI IRQ mapping properties. 73 67 74 68 max-link-speed: 75 - description: Specify PCI Gen for link capability. 76 - $ref: /schemas/types.yaml#/definitions/uint32 77 69 enum: [1, 2, 3, 4] 78 70 default: 1 79 - 80 - bus-range: 81 - description: Range of bus numbers associated with this controller. 82 71 83 72 reset-assert-ms: 84 73 description: | ··· 71 94 72 95 required: 73 96 - compatible 74 - - device_type 75 - - "#address-cells" 76 - - "#size-cells" 77 97 - reg 78 98 - reg-names 79 99 - ranges ··· 83 109 - interrupt-map 84 110 - interrupt-map-mask 85 111 86 - additionalProperties: false 112 + unevaluatedProperties: false 87 113 88 114 examples: 89 115 - |