Freescale Layerscape PCIe Root Complex(RC) controller

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

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

This PCIe RC controller is based on the Synopsys DesignWare PCIe IP This controller derives its clocks from the Reset Configuration Word (RCW) which is used to describe the PLL settings at the time of chip-reset. Also as per the available Reference Manuals, there is no specific 'version' register available in the Freescale PCIe controller register set, which can allow determining the underlying DesignWare PCIe controller version information.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,ls1012a-pcie", "fsl,ls1021a-pcie", "fsl,ls1028a-pcie", "fsl,ls1043a-pcie", "fsl,ls1046a-pcie", "fsl,ls1088a-pcie", "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", "fsl,ls2088a-pcie"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fsl,lx2160ar2-pcie"

Item 2

Exact value (const): "fsl,ls2088a-pcie"

reg — required here #

Maximum number of items (maxItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "regs"

Item 2

Exact value (const): "config"

fsl,pcie-scfg — not listed as required here #

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

A phandle to the SCFG device node. The second entry is the physical PCIe controller index starting from '0'. This is used to get SCFG PEXN registers.

Array item rules (items) #

Array item rules (items)

Item 1

A phandle to the SCFG device node

Item 2

PCIe controller index starting from '0'

Maximum number of items (maxItems): 1

big-endian — not listed as required here #

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

If the PEX_LUT and PF register block is in big-endian, specify this property.

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

msi-parent — not listed as required here #

true — No constraints added by this property rule.

iommu-map — not listed as required here #

true — No constraints added by this property rule.

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

num-viewport — not listed as required here #

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

Deprecated (deprecated): true

Number of outbound view ports configured in hardware. It's the same as the number of outbound AT windows.

Maximum value (maximum): 256

Required in this object (required): "compatible", "reg", "reg-names", "#address-cells", "#size-cells", "device_type", "bus-range", "ranges", "interrupts", "interrupt-names", "#interrupt-cells", "interrupt-map-mask", "interrupt-map"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "fsl,ls1028a-pcie", "fsl,ls1046a-pcie", "fsl,ls1043a-pcie", "fsl,ls1012a-pcie"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pme"

Item 2

Exact value (const): "aer"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "fsl,ls2080a-pcie", "fsl,ls2085a-pcie", "fsl,ls2088a-pcie"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "intr"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "fsl,ls1088a-pcie"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aer"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

soc {
  #address-cells = <2>;
  #size-cells = <2>;

  pcie@3400000 {
    compatible = "fsl,ls1088a-pcie";
    reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */
        <0x20 0x00000000 0x0 0x00002000>; /* configuration space */
    reg-names = "regs", "config";
    interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */
    interrupt-names = "aer";
    #address-cells = <3>;
    #size-cells = <2>;
    dma-coherent;
    device_type = "pci";
    bus-range = <0x0 0xff>;
    ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000   /* downstream I/O */
             0x82000000 0x0 0x40000000 0x20 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
    msi-parent = <&its>;
    #interrupt-cells = <1>;
    interrupt-map-mask = <0 0 0 7>;
    interrupt-map = <0000 0 0 1 &gic 0 0 0 109 IRQ_TYPE_LEVEL_HIGH>,
                    <0000 0 0 2 &gic 0 0 0 110 IRQ_TYPE_LEVEL_HIGH>,
                    <0000 0 0 3 &gic 0 0 0 111 IRQ_TYPE_LEVEL_HIGH>,
                    <0000 0 0 4 &gic 0 0 0 112 IRQ_TYPE_LEVEL_HIGH>;
    iommu-map = <0 &smmu 0 1>; /* Fixed-up by bootloader */
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page