Skip to content

Commit

Permalink
schemas: pci: Add msi-map properties
Browse files Browse the repository at this point in the history
msi-map/msi-map-mask properties are existing properties and are only for
PCI root complexes, so add them to the PCI schema.

Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
robherring committed Jul 20, 2022
1 parent 848e7bc commit 109bde7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dtschema/schemas/pci/pci-bus.yaml
Expand Up @@ -113,6 +113,22 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
enum: [ 1, 2, 3, 4 ]

msi-map:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
items:
minItems: 3
items:
- description: The RID base matched by the entry
- description: phandle to msi-controller node
- description: (optional) The msi-specifier produced for the first RID matched
by the entry. Currently, msi-specifier is 0 or 1 cells.
- description: The length of consecutive RIDs following the RID base

msi-map-mask:
description: A mask to be applied to each Requester ID prior to being
mapped to an msi-specifier per the msi-map property.
$ref: /schemas/types.yaml#/definitions/uint32

num-lanes:
description: The number of PCIe lanes
$ref: /schemas/types.yaml#/definitions/uint32
Expand Down Expand Up @@ -166,4 +182,7 @@ required:
- "#address-cells"
- "#size-cells"

dependentRequired:
msi-map-mask: [ msi-map ]

additionalProperties: true

0 comments on commit 109bde7

Please sign in to comment.