xref: /linux/Documentation/devicetree/bindings/pci/pci-ep.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1847dbf4eSKishon Vijay Abraham I# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2847dbf4eSKishon Vijay Abraham I%YAML 1.2
3847dbf4eSKishon Vijay Abraham I---
4847dbf4eSKishon Vijay Abraham I$id: http://devicetree.org/schemas/pci/pci-ep.yaml#
5847dbf4eSKishon Vijay Abraham I$schema: http://devicetree.org/meta-schemas/core.yaml#
6847dbf4eSKishon Vijay Abraham I
73367934dSKrzysztof Kozlowskititle: PCI Endpoint Controller
8847dbf4eSKishon Vijay Abraham I
9847dbf4eSKishon Vijay Abraham Idescription: |
10847dbf4eSKishon Vijay Abraham I  Common properties for PCI Endpoint Controller Nodes.
11847dbf4eSKishon Vijay Abraham I
12847dbf4eSKishon Vijay Abraham Imaintainers:
1399244b99SManivannan Sadhasivam  - Kishon Vijay Abraham I <kishon@kernel.org>
1499244b99SManivannan Sadhasivam  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
15847dbf4eSKishon Vijay Abraham I
16847dbf4eSKishon Vijay Abraham Iproperties:
17847dbf4eSKishon Vijay Abraham I  $nodename:
18847dbf4eSKishon Vijay Abraham I    pattern: "^pcie-ep@"
19847dbf4eSKishon Vijay Abraham I
20847dbf4eSKishon Vijay Abraham I  max-functions:
21847dbf4eSKishon Vijay Abraham I    description: Maximum number of functions that can be configured
223d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint8
23847dbf4eSKishon Vijay Abraham I    minimum: 1
24847dbf4eSKishon Vijay Abraham I    default: 1
25847dbf4eSKishon Vijay Abraham I    maximum: 255
26847dbf4eSKishon Vijay Abraham I
27f00bfc64SKishon Vijay Abraham I  max-virtual-functions:
28f00bfc64SKishon Vijay Abraham I    description: Array representing the number of virtual functions corresponding to each physical
29f00bfc64SKishon Vijay Abraham I      function
30f00bfc64SKishon Vijay Abraham I    $ref: /schemas/types.yaml#/definitions/uint8-array
31f00bfc64SKishon Vijay Abraham I    minItems: 1
32f00bfc64SKishon Vijay Abraham I    maxItems: 255
33f00bfc64SKishon Vijay Abraham I
34847dbf4eSKishon Vijay Abraham I  max-link-speed:
353d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
36847dbf4eSKishon Vijay Abraham I    enum: [ 1, 2, 3, 4 ]
37847dbf4eSKishon Vijay Abraham I
38847dbf4eSKishon Vijay Abraham I  num-lanes:
39847dbf4eSKishon Vijay Abraham I    description: maximum number of lanes
403d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
41847dbf4eSKishon Vijay Abraham I    minimum: 1
42847dbf4eSKishon Vijay Abraham I    default: 1
43847dbf4eSKishon Vijay Abraham I    maximum: 16
44847dbf4eSKishon Vijay Abraham I
45*ada94d00SManivannan Sadhasivam  linux,pci-domain:
46*ada94d00SManivannan Sadhasivam    description:
47*ada94d00SManivannan Sadhasivam      If present this property assigns a fixed PCI domain number to a PCI
48*ada94d00SManivannan Sadhasivam      Endpoint Controller, otherwise an unstable (across boots) unique number
49*ada94d00SManivannan Sadhasivam      will be assigned. It is required to either not set this property at all
50*ada94d00SManivannan Sadhasivam      or set it for all PCI endpoint controllers in the system, otherwise
51*ada94d00SManivannan Sadhasivam      potentially conflicting domain numbers may be assigned to endpoint
52*ada94d00SManivannan Sadhasivam      controllers. The domain number for each endpoint controller in the system
53*ada94d00SManivannan Sadhasivam      must be unique.
54*ada94d00SManivannan Sadhasivam    $ref: /schemas/types.yaml#/definitions/uint32
55*ada94d00SManivannan Sadhasivam
56847dbf4eSKishon Vijay Abraham Irequired:
57847dbf4eSKishon Vijay Abraham I  - compatible
586a0e321eSRob Herring
596a0e321eSRob HerringadditionalProperties: true
60