PCI Bus Common Properties

Schema identifier ($id): "http://devicetree.org/schemas/pci/pci-bus-common.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"

Common properties for PCI bus structure.

PCI bus bridges have standardized Device Tree bindings:

PCI Bus Binding to: IEEE Std 1275-1994 http://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf

And for the interrupt mapping part:

Open Firmware Recommended Practice: Interrupt Mapping http://www.devicetree.org/open-firmware/practice/imap/imap0_9d.pdf

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^pcie?@"

ranges — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Value type (type): "boolean"

Rule 2

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Array item rules (items)

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 8

Array items beyond the listed positions (additionalItems)

true

Allowed by this rule.

Array item rules (items)

Item 1

Allowed values (enum): 16777216, 33554432, 50331648, 1107296256, 1124073472, 2164260864, 2181038080, 2197815296, 3254779904, 3271557120

dma-ranges — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Value type (type): "boolean"

Rule 2

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Array item rules (items)

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 8

Array items beyond the listed positions (additionalItems)

true

Allowed by this rule.

Array item rules (items)

Item 1

Allowed values (enum): 33554432, 50331648, 1107296256, 1124073472

#address-cells — required here #

Exact value (const): 3

#size-cells — required here #

Exact value (const): 2

device_type — required here #

Exact value (const): "pci"

bus-range — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Array item rules (items) #

Maximum value (maximum): 255

external-facing — not listed as required here #

When present, the port is externally facing. All bridges and endpoints downstream of this port are external to the machine. The OS can, for example, use this information to identify devices that cannot be trusted with relaxed DMA protection, as users could easily attach malicious devices to this port.

Value type (type): "boolean"

#interrupt-cells — not listed as required here #

Exact value (const): 1

interrupt-map — not listed as required here #

true — No constraints added by this property rule.

interrupt-map-mask — not listed as required here #

Array item rules (items) #

Item 1

PCI high address cell

Minimum value (minimum): 0

Maximum value (maximum): 65280

Item 2

PCI mid address cell

Exact value (const): 0

Item 3

PCI low address cell

Exact value (const): 0

Item 4

PCI IRQ cell

Minimum value (minimum): 0

Maximum value (maximum): 7

If present this property specifies PCI generation number for link capability. Host drivers could add this as a strategy to avoid unnecessary operation for unsupported link speed, for instance, trying to do training for unsupported link speed, etc.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 1, 2, 3, 4

num-lanes — not listed as required here #

The number of PCIe lanes

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 1, 2, 4, 8, 16, 32

n-fts — not listed as required here #

The number of Fast Training Sequences (N_FTS) required by the Receiver (this component) when transitioning the Link from L0s to L0; advertised during initial Link training. Each entry in the array specifies a PCIe data rate

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

reset-gpios — not listed as required here #

GPIO controlled connection to PERST# signal

Maximum number of items (maxItems): 1

wake-gpios — not listed as required here #

GPIO controlled connection to WAKE# signal

Maximum number of items (maxItems): 1

slot-power-limit-milliwatt — not listed as required here #

If present, specifies slot power limit in milliwatts. This property is invalid in host bridge nodes.

Maximum number of items (maxItems): 1

supports-clkreq — not listed as required here #

If present this property specifies that CLKREQ signal routing exists from root port to downstream device and host bridge drivers can do programming which depends on CLKREQ signal existence. For example, programming root port not to advertise ASPM L1 Sub-States support if there is no CLKREQ signal.

Value type (type): "boolean"

aspm-no-l0s — not listed as required here #

Disables ASPM L0s capability

Value type (type): "boolean"

aspm-no-l1 — not listed as required here #

Disables ASPM L1 capability

Value type (type): "boolean"

aspm-no-l1ss — not listed as required here #

Disables ASPM L1 PM Substates capability

Value type (type): "boolean"

aspm-l0s-entry-delay-ns — not listed as required here #

ASPM L0s entry delay

aspm-l1-entry-delay-ns — not listed as required here #

ASPM L1 entry delay

vpcie12v-supply — not listed as required here #

12v regulator phandle for the slot

vpcie1v8-supply — not listed as required here #

1.8v VIO regulator phandle for M.2 slot

vpcie3v3-supply — not listed as required here #

3.3v regulator phandle for the slot

vpcie3v3aux-supply — not listed as required here #

3.3v AUX regulator phandle for the slot

eq-presets-8gts — not listed as required here #

Contains the equalization preset values for PCIe data rates 8.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.3.4).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

eq-presets-16gts — not listed as required here #

Contains the equalization preset values for PCIe data rates 16.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.5.9).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

eq-presets-32gts — not listed as required here #

Contains the equalization preset values for PCIe data rates 32.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.6.9).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

eq-presets-64gts — not listed as required here #

Contains the equalization preset values for PCIe data rates 64.0 GT/s. Each preset value is used to adjust the transmitter settings to improve signal quality and meet the electrical requirements. These preset values go in Lane Equalization Control registers (PCIe r6.0, sec 7.7.7.5).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

Properties matching a name pattern (patternProperties) #

@1?[0-9a-f](,[0-7])?$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): pci-device.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Required in this object (required): "device_type", "ranges", "#address-cells", "#size-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)

Line 2: Copyright 2018 Linaro Ltd.

Line 3: Copyright 2024 Arm Ltd.

Line 35: Should be enough

Line 57: Should be enough

Line 98: minItems: 1

Line 99: maxItems: 88 # 22 IDSEL x 4 IRQs

Line 100: items:

Line 101: minItems: 6 # 3 addr cells, 1 PCI IRQ cell, 1 phandle, 1+ parent addr and IRQ cells

Line 102: maxItems: 16

Edit this page