Freescale i.MX6 PCIe Endpoint controller
Schema identifier ($id): "http://devicetree.org/schemas/pci/fsl,imx6q-pcie-ep.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 controller is based on the Synopsys DesignWare PCIe IP and thus inherits all the common properties defined in snps,dw-pcie-ep.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.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,imx8mm-pcie-ep", "fsl,imx8mq-pcie-ep", "fsl,imx8mp-pcie-ep", "fsl,imx8q-pcie-ep", "fsl,imx95-pcie-ep"
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.
clock-names — not listed as required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 4
interrupts — required here #
Array item rules (items) #
Item 1
builtin eDMA interrupter.
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma"
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/pci/snps,dw-pcie-ep.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 hereAllowed values (
enum):"fsl,imx8mm-pcie-ep","fsl,imx8mq-pcie-ep","fsl,imx8mp-pcie-ep"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dbi"Item 2
Exact value (
const):"addr_space"Item 3
Exact value (
const):"dbi2"Item 4
Exact value (
const):"atu"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):2
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dbi"Item 2
Exact value (
const):"addr_space"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dbi"Item 2
Exact value (
const):"atu"Item 3
Exact value (
const):"dbi2"Item 4
Exact value (
const):"app"Item 5
Exact value (
const):"dma"Item 6
Exact value (
const):"addr_space"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"fsl,imx8mq-pcie-ep","fsl,imx95-pcie-ep"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required hereArray 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 hereAllowed values (
enum):"fsl,imx8mm-pcie-ep","fsl,imx8mp-pcie-ep"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pcie"Item 2
Exact value (
const):"pcie_bus"Item 3
Exact value (
const):"pcie_aux"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dbi"Item 2
Exact value (
const):"mstr"Item 3
Exact value (
const):"slv"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx8mp-clock.h>
#include <dt-bindings/power/imx8mp-power.h>
#include <dt-bindings/reset/imx8mp-reset.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
pcie_ep: pcie-ep@33800000 {
compatible = "fsl,imx8mp-pcie-ep";
reg = <0x33800000 0x100000>,
<0x18000000 0x8000000>,
<0x33900000 0x100000>,
<0x33b00000 0x100000>;
reg-names = "dbi", "addr_space", "dbi2", "atu";
clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
<&clk IMX8MP_CLK_HSIO_AXI>,
<&clk IMX8MP_CLK_PCIE_ROOT>;
clock-names = "pcie", "pcie_bus", "pcie_aux";
assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>;
assigned-clock-rates = <10000000>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>;
num-lanes = <1>;
interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>; /* eDMA */
interrupt-names = "dma";
fsl,max-link-speed = <3>;
power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>;
resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>,
<&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>;
reset-names = "apps", "turnoff";
phys = <&pcie_phy>;
phy-names = "pcie-phy";
num-ib-windows = <4>;
num-ob-windows = <4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)