Debian Codegraph @

dtschema/schemas/pci/pci-host-bridge.yaml

raw
1 # SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2024 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/schemas/pci/pci-host-bridge.yaml#
7 $schema: http://devicetree.org/meta-schemas/base.yaml#
8
9 title: PCI Host Bridge Nodes
10
11 description: |
12 Common properties for PCI host bridge nodes. PCI host bridges implement the
13 PCI bus binding plus additional properties for mapping host resources into
14 PCI space.
15
16 maintainers:
17 - Rob Herring <[email protected]>
18
19 allOf:
20 - $ref: pci-bus-common.yaml#
21 - $ref: pci-iommu.yaml#
22
23 properties:
24 linux,pci-domain:
25 description:
26 If present this property assigns a fixed PCI domain number to a host bridge,
27 otherwise an unstable (across boots) unique number will be assigned.
28 It is required to either not set this property at all or set it for all
29 host bridges in the system, otherwise potentially conflicting domain numbers
30 may be assigned to root buses behind different host bridges. The domain
31 number for each host bridge in the system must be unique.
32 $ref: /schemas/types.yaml#/definitions/uint32
33
34 msi-map:
35 description: >
36 Maps a Requester ID (AKA RID) to an MSI controller and associated
37 msi-specifier data.
38
39 Each PCI device under a root complex is uniquely identified by its
40 Requester ID. A Requester ID is a triplet of a Bus number,
41 Device number, and Function number.
42
43 For the purpose of this document, when treated as a numeric value, a RID
44 is formatted such that:
45
46 * Bits [15:8] are the Bus number.
47 * Bits [7:3] are the Device number.
48 * Bits [2:0] are the Function number.
49 * Any other bits required for padding must be zero.
50
51 MSIs may be distinguished in part through the use of sideband data
52 accompanying writes. In the case of PCI devices, this sideband data may be
53 derived from the Requester ID. A mechanism is required to associate a
54 device with both the MSI controllers it can address, and the sideband data
55 that will be associated with its writes to those controllers.
56
57 Any RID r in the interval [rid-base, rid-base + length) is associated with
58 the listed msi-controller, with the msi-specifier (r - rid-base +
59 msi-base).
60
61 $ref: /schemas/types.yaml#/definitions/uint32-matrix
62 items:
63 items:
64 - description: The RID base matched by the entry
65 - description: phandle to msi-controller node
66 - description: (optional) The msi-specifier produced for the first RID matched
67 by the entry. Currently, msi-specifier is 0 or 1 cells.
68 - description: The length of consecutive RIDs following the RID base
69
70 msi-map-mask:
71 description: A mask to be applied to each Requester ID prior to being
72 mapped to an msi-specifier per the msi-map property.
73 $ref: /schemas/types.yaml#/definitions/uint32
74
75 vendor-id:
76 description: The PCI vendor ID
77 $ref: /schemas/types.yaml#/definitions/uint32
78
79 device-id:
80 description: The PCI device ID
81 $ref: /schemas/types.yaml#/definitions/uint32
82
83 dependentRequired:
84 msi-map-mask: [ msi-map ]
85
86 additionalProperties: true