Broadcom iProc PCIe controller with the platform bus interface

Schema identifier ($id): "http://devicetree.org/schemas/pci/brcm,iproc-pcie.yaml#"

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

Maintainers (maintainers): "Ray Jui <ray.jui@broadcom.com>", "Scott Branden <scott.branden@broadcom.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,iproc-pcie", "brcm,iproc-pcie-paxb-v2", "brcm,iproc-pcie-paxc", "brcm,iproc-pcie-paxc-v2"

reg — required here #

Maximum number of items (maxItems): 1

Base address and length of the PCIe controller I/O register space

ranges — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Ranges for the PCI memory and I/O regions

phys — not listed as required here #

Maximum number of items (maxItems): 1

phy-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "pcie-phy"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

brcm,pcie-ob — not listed as required here #

Value type (type): "boolean"

Some iProc SoCs do not have the outbound address mapping done by the ASIC after power on reset. In this case, SW needs to configure it

brcm,pcie-ob-axi-offset — not listed as required here #

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

The offset from the AXI address to the internal address used by the iProc PCIe core (not the PCIe address)

msi — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/interrupt-controller/msi-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "brcm,iproc-msi"

interrupts — not listed as required here

Maximum number of items (maxItems): 4

brcm,pcie-msi-inten — not listed as required here

Value type (type): "boolean"

Needs to be present for some older iProc platforms that require the interrupt enable registers to be set explicitly to enable MSI

msi-parent — not listed as required here #

true — No constraints added by this property rule.

Property dependencies (dependencies) #

brcm,pcie-ob-axi-offset — applies when this property is present #

Also requires: "brcm,pcie-ob"

brcm,pcie-msi-inten — applies when this property is present #

Also requires: "msi-controller"

Required in this object (required): "compatible", "reg", "ranges"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "brcm,iproc-pcie"

When the condition matches (then) #

Required in this object (required): "interrupt-map", "interrupt-map-mask"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gic: interrupt-controller {
    #address-cells = <0>;
    interrupt-controller;
    #interrupt-cells = <3>;
};

pcie@18012000 {
    compatible = "brcm,iproc-pcie";
    reg = <0x18012000 0x1000>;

    #interrupt-cells = <1>;
    interrupt-map-mask = <0 0 0 0>;
    interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>;

    linux,pci-domain = <0>;

    bus-range = <0x00 0xff>;

    #address-cells = <3>;
    #size-cells = <2>;
    device_type = "pci";
    ranges = <0x81000000 0          0 0x28000000 0 0x00010000>,
             <0x82000000 0 0x20000000 0x20000000 0 0x04000000>;

    phys = <&phy 0 5>;
    phy-names = "pcie-phy";

    brcm,pcie-ob;
    brcm,pcie-ob-axi-offset = <0x00000000>;

    msi-parent = <&msi0>;

    /* iProc event queue based MSI */
    msi0: msi {
        compatible = "brcm,iproc-msi";
        msi-controller;
        interrupt-parent = <&gic>;
        interrupts = <GIC_SPI 96 IRQ_TYPE_NONE>,
                <GIC_SPI 97 IRQ_TYPE_NONE>,
                <GIC_SPI 98 IRQ_TYPE_NONE>,
                <GIC_SPI 99 IRQ_TYPE_NONE>;
    };
};
pcie@18013000 {
    compatible = "brcm,iproc-pcie";
    reg = <0x18013000 0x1000>;

    #interrupt-cells = <1>;
    interrupt-map-mask = <0 0 0 0>;
    interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>;

    linux,pci-domain = <1>;

    bus-range = <0x00 0xff>;

    #address-cells = <3>;
    #size-cells = <2>;
    device_type = "pci";
    ranges = <0x81000000 0          0 0x48000000 0 0x00010000>,
             <0x82000000 0 0x40000000 0x40000000 0 0x04000000>;

    phys = <&phy 1 6>;
    phy-names = "pcie-phy";
};

Source notes #

Annotations retained from the schema source

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

Line 20: for the first generation of PAXB based controller, used in SoCs

Line 21: including NSP, Cygnus, NS2, and Pegasus

Line 23: for the second generation of PAXB-based controllers, used in

Line 24: Stingray

Line 26: For the first generation of PAXC based controller, used in NS2

Line 28: For the second generation of PAXC based controller, used in Stingray

Edit this page