Altera PCIe Root Port

Schema identifier ($id): "http://devicetree.org/schemas/altr,pcie-root-port.yaml#"

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

Maintainers (maintainers): "Matthew Gerlach <matthew.gerlach@linux.intel.com>"

Properties and child nodes (properties) #

compatible — required here #

Each family of socfpga has its own implementation of the PCI controller. The altr,pcie-root-port-1.0 is used for the Cyclone5 family of chips. The Stratix10 family of chips is supported by the altr,pcie-root-port-2.0. The Agilex family of chips has three, non-register compatible, variants of PCIe Hard IP referred to as the F-Tile, P-Tile, and R-Tile, depending on the specific chip instance.

Allowed values (enum): "altr,pcie-root-port-1.0", "altr,pcie-root-port-2.0", "altr,pcie-root-port-3.0-f-tile", "altr,pcie-root-port-3.0-p-tile", "altr,pcie-root-port-3.0-r-tile"

reg — required here #

Array item rules (items) #

Item 1

TX slave port region

Item 2

Control register access region

Item 3

Hard IP region

Minimum number of items (minItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "Txs"

Item 2

Exact value (const): "Cra"

Item 3

Exact value (const): "Hip"

Minimum number of items (minItems): 2

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

interrupt-map-mask — required here #

Array item rules (items) #

Item 1

Exact value (const): 0

Item 2

Exact value (const): 0

Item 3

Exact value (const): 0

Item 4

Exact value (const): 7

interrupt-map — required here #

Maximum number of items (maxItems): 4

#interrupt-cells — required here #

Exact value (const): 1

msi-parent — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "#interrupt-cells", "interrupt-controller", "interrupt-map", "interrupt-map-mask"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/pci/pci-host-bridge.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "altr,pcie-root-port-1.0"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Maximum number of items (maxItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 3

reg-names — not listed as required here

Minimum number of items (minItems): 3

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
pcie_0: pcie@c00000000 {
    compatible = "altr,pcie-root-port-1.0";
    reg = <0xc0000000 0x20000000>,
          <0xff220000 0x00004000>;
    reg-names = "Txs", "Cra";
    interrupt-parent = <&hps_0_arm_gic_0>;
    interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-controller;
    #interrupt-cells = <1>;
    bus-range = <0x0 0xff>;
    device_type = "pci";
    msi-parent = <&msi_to_gic_gen_0>;
    #address-cells = <3>;
    #size-cells = <2>;
    interrupt-map-mask = <0 0 0 7>;
    interrupt-map = <0 0 0 1 &pcie_0 0 0 0 1>,
                    <0 0 0 2 &pcie_0 0 0 0 2>,
                    <0 0 0 3 &pcie_0 0 0 0 3>,
                    <0 0 0 4 &pcie_0 0 0 0 4>;
    ranges = <0x82000000 0x00000000 0x00000000 0xc0000000 0x00000000 0x10000000>,
             <0x82000000 0x00000000 0x10000000 0xd0000000 0x00000000 0x10000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright (C) 2015, 2019, 2024, Intel Corporation

Edit this page