Freescale i.MX6 PCIe host controller

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

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

Maintainers (maintainers): "Lucas Stach <l.stach@pengutronix.de>", "Richard Zhu <hongxing.zhu@nxp.com>"

This PCIe host controller is based on the Synopsys DesignWare PCIe IP and thus inherits all the common properties defined in snps,dw-pcie.yaml. The controller instances are dual mode where in they can work either in Root Port mode or Endpoint mode but one at a time.

See fsl,imx6q-pcie-ep.yaml for details on the Endpoint mode device tree bindings.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx6q-pcie", "fsl,imx6sx-pcie", "fsl,imx6qp-pcie", "fsl,imx7d-pcie", "fsl,imx8mq-pcie", "fsl,imx8mm-pcie", "fsl,imx8mp-pcie", "fsl,imx95-pcie", "fsl,imx8q-pcie"

clocks — not listed as required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

PCIe bridge clock.

Item 2

PCIe bus clock.

Item 3

PCIe PHY clock.

Item 4

Additional required clock entry for imx6sx-pcie, imx6sx-pcie-ep, imx8mq-pcie, imx8mq-pcie-ep.

Item 5

PCIe reference clock.

clock-names — not listed as required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 6

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

builtin MSI controller.

Item 2

builtin DMA controller.

interrupt-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "msi"

Item 2

Exact value (const): "dma"

reset-gpio — not listed as required here #

Should specify the GPIO for controlling the PCI bus device reset signal. It's not polarity aware and defaults to active-low reset sequence (L=reset state, H=operation state) (optional required).

reset-gpio-active-high — not listed as required here #

If present then the reset sequence using the GPIO specified in the "reset-gpio" property is reversed (H=reset state, L=operation state) (optional required).

Value type (type): "boolean"

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/snps,dw-pcie.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/pci/fsl,imx6q-pcie-common.yaml#

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "fsl,imx6q-pcie", "fsl,imx6sx-pcie", "fsl,imx6qp-pcie", "fsl,imx7d-pcie", "fsl,imx8mq-pcie", "fsl,imx8mm-pcie", "fsl,imx8mp-pcie"

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

Array item rules (items)

Item 1

Exact value (const): "dbi"

Item 2

Exact value (const): "config"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

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

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "dbi"

Item 2

Exact value (const): "config"

Item 3

Exact value (const): "atu"

Item 4

Exact value (const): "app"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

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

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pcie"

Item 2

Exact value (const): "pcie_bus"

Item 3

Exact value (const): "pcie_phy"

Item 4

Exact value (const): "pcie_inbound_axi"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

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

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pcie"

Item 2

Exact value (const): "pcie_bus"

Item 3

Exact value (const): "pcie_phy"

Item 4

Exact value (const): "pcie_aux"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "fsl,imx6q-pcie", "fsl,imx6qp-pcie", "fsl,imx7d-pcie"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pcie"

Item 2

Exact value (const): "pcie_bus"

Item 3

Exact value (const): "pcie_phy"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "fsl,imx8mm-pcie", "fsl,imx8mp-pcie"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pcie"

Item 2

Exact value (const): "pcie_bus"

Item 3

Exact value (const): "pcie_aux"

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

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

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "dbi"

Item 2

Exact value (const): "mstr"

Item 3

Exact value (const): "slv"

Rule 10 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

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

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 6

clock-names — not listed as required here

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

Exact value (const): "pcie"

Item 2

Exact value (const): "pcie_bus"

Item 3

Exact value (const): "pcie_phy"

Item 4

Exact value (const): "pcie_aux"

Item 5

Exact value (const): "ref"

Item 6

Exact value (const): "extref"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

pcie: pcie@1ffc000 {
    compatible = "fsl,imx6q-pcie";
    reg = <0x01ffc000 0x04000>,
          <0x01f00000 0x80000>;
    reg-names = "dbi", "config";
    #address-cells = <3>;
    #size-cells = <2>;
    device_type = "pci";
    bus-range = <0x00 0xff>;
    ranges = <0x81000000 0 0          0x01f80000 0 0x00010000>,
             <0x82000000 0 0x01000000 0x01000000 0 0x00f00000>;
    num-lanes = <1>;
    interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "msi";
    #interrupt-cells = <1>;
    interrupt-map-mask = <0 0 0 0x7>;
    interrupt-map = <0 0 0 1 &gpc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
                    <0 0 0 2 &gpc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
                    <0 0 0 3 &gpc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
                    <0 0 0 4 &gpc GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX6QDL_CLK_PCIE_AXI>,
            <&clks IMX6QDL_CLK_LVDS1_GATE>,
            <&clks IMX6QDL_CLK_PCIE_REF_125M>;
    clock-names = "pcie", "pcie_bus", "pcie_phy";
};

Source notes #

Annotations retained from the schema source

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

Line 225: Optional

Edit this page