xref: /freebsd/sys/contrib/device-tree/Bindings/pci/pci-ep.yaml (revision 5f4c09dd85bff675e0ca63c55ea3c517e0fddfcc)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pci/pci-ep.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: PCI Endpoint Controller
8
9description: |
10  Common properties for PCI Endpoint Controller Nodes.
11
12maintainers:
13  - Kishon Vijay Abraham I <kishon@ti.com>
14
15properties:
16  $nodename:
17    pattern: "^pcie-ep@"
18
19  max-functions:
20    description: Maximum number of functions that can be configured
21    $ref: /schemas/types.yaml#/definitions/uint8
22    minimum: 1
23    default: 1
24    maximum: 255
25
26  max-virtual-functions:
27    description: Array representing the number of virtual functions corresponding to each physical
28      function
29    $ref: /schemas/types.yaml#/definitions/uint8-array
30    minItems: 1
31    maxItems: 255
32
33  max-link-speed:
34    $ref: /schemas/types.yaml#/definitions/uint32
35    enum: [ 1, 2, 3, 4 ]
36
37  num-lanes:
38    description: maximum number of lanes
39    $ref: /schemas/types.yaml#/definitions/uint32
40    minimum: 1
41    default: 1
42    maximum: 16
43
44required:
45  - compatible
46
47additionalProperties: true
48