| 1 |
|
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/pci/fsl,imx6q-pcie-ep.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Freescale i.MX6 PCIe Endpoint controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Lucas Stach <[email protected]> |
| 11 |
- Richard Zhu <[email protected]> |
| 12 |
|
| 13 |
description: |+ |
| 14 |
This PCIe controller is based on the Synopsys DesignWare PCIe IP and |
| 15 |
thus inherits all the common properties defined in snps,dw-pcie-ep.yaml. |
| 16 |
The controller instances are dual mode where in they can work either in |
| 17 |
Root Port mode or Endpoint mode but one at a time. |
| 18 |
|
| 19 |
properties: |
| 20 |
compatible: |
| 21 |
oneOf: |
| 22 |
- enum: |
| 23 |
- fsl,imx8mm-pcie-ep |
| 24 |
- fsl,imx8mp-pcie-ep |
| 25 |
- fsl,imx8mq-pcie-ep |
| 26 |
- fsl,imx8q-pcie-ep |
| 27 |
- fsl,imx95-pcie-ep |
| 28 |
- items: |
| 29 |
- enum: |
| 30 |
- fsl,imx94-pcie-ep |
| 31 |
- fsl,imx943-pcie-ep |
| 32 |
- const: fsl,imx95-pcie-ep |
| 33 |
|
| 34 |
clocks: |
| 35 |
minItems: 3 |
| 36 |
items: |
| 37 |
- description: PCIe bridge clock. |
| 38 |
- description: PCIe bus clock. |
| 39 |
- description: PCIe PHY clock. |
| 40 |
- description: Additional required clock entry for imx6sx-pcie, |
| 41 |
imx6sx-pcie-ep, imx8mq-pcie, imx8mq-pcie-ep. |
| 42 |
|
| 43 |
clock-names: |
| 44 |
minItems: 3 |
| 45 |
maxItems: 4 |
| 46 |
|
| 47 |
interrupts: |
| 48 |
items: |
| 49 |
- description: builtin eDMA interrupter. |
| 50 |
|
| 51 |
interrupt-names: |
| 52 |
items: |
| 53 |
- const: dma |
| 54 |
|
| 55 |
required: |
| 56 |
- compatible |
| 57 |
- reg |
| 58 |
- reg-names |
| 59 |
- interrupts |
| 60 |
- interrupt-names |
| 61 |
|
| 62 |
allOf: |
| 63 |
- $ref: /schemas/pci/snps,dw-pcie-ep.yaml# |
| 64 |
- $ref: /schemas/pci/fsl,imx6q-pcie-common.yaml# |
| 65 |
- if: |
| 66 |
properties: |
| 67 |
compatible: |
| 68 |
enum: |
| 69 |
- fsl,imx8mm-pcie-ep |
| 70 |
- fsl,imx8mq-pcie-ep |
| 71 |
- fsl,imx8mp-pcie-ep |
| 72 |
then: |
| 73 |
properties: |
| 74 |
reg: |
| 75 |
minItems: 4 |
| 76 |
maxItems: 4 |
| 77 |
reg-names: |
| 78 |
items: |
| 79 |
- const: dbi |
| 80 |
- const: addr_space |
| 81 |
- const: dbi2 |
| 82 |
- const: atu |
| 83 |
|
| 84 |
- if: |
| 85 |
properties: |
| 86 |
compatible: |
| 87 |
enum: |
| 88 |
- fsl,imx8q-pcie-ep |
| 89 |
then: |
| 90 |
properties: |
| 91 |
reg: |
| 92 |
maxItems: 2 |
| 93 |
reg-names: |
| 94 |
items: |
| 95 |
- const: dbi |
| 96 |
- const: addr_space |
| 97 |
|
| 98 |
- if: |
| 99 |
properties: |
| 100 |
compatible: |
| 101 |
enum: |
| 102 |
- fsl,imx95-pcie-ep |
| 103 |
then: |
| 104 |
properties: |
| 105 |
reg: |
| 106 |
minItems: 6 |
| 107 |
maxItems: 6 |
| 108 |
reg-names: |
| 109 |
items: |
| 110 |
- const: dbi |
| 111 |
- const: atu |
| 112 |
- const: dbi2 |
| 113 |
- const: app |
| 114 |
- const: dma |
| 115 |
- const: addr_space |
| 116 |
|
| 117 |
- if: |
| 118 |
properties: |
| 119 |
compatible: |
| 120 |
enum: |
| 121 |
- fsl,imx8mq-pcie-ep |
| 122 |
- fsl,imx95-pcie-ep |
| 123 |
then: |
| 124 |
properties: |
| 125 |
clocks: |
| 126 |
minItems: 4 |
| 127 |
maxItems: 4 |
| 128 |
clock-names: |
| 129 |
items: |
| 130 |
- const: pcie |
| 131 |
- const: pcie_bus |
| 132 |
- const: pcie_phy |
| 133 |
- const: pcie_aux |
| 134 |
|
| 135 |
- if: |
| 136 |
properties: |
| 137 |
compatible: |
| 138 |
enum: |
| 139 |
- fsl,imx8mm-pcie-ep |
| 140 |
- fsl,imx8mp-pcie-ep |
| 141 |
then: |
| 142 |
properties: |
| 143 |
clocks: |
| 144 |
maxItems: 3 |
| 145 |
clock-names: |
| 146 |
items: |
| 147 |
- const: pcie |
| 148 |
- const: pcie_bus |
| 149 |
- const: pcie_aux |
| 150 |
|
| 151 |
- if: |
| 152 |
properties: |
| 153 |
compatible: |
| 154 |
enum: |
| 155 |
- fsl,imxq-pcie-ep |
| 156 |
then: |
| 157 |
properties: |
| 158 |
clocks: |
| 159 |
maxItems: 3 |
| 160 |
clock-names: |
| 161 |
items: |
| 162 |
- const: dbi |
| 163 |
- const: mstr |
| 164 |
- const: slv |
| 165 |
|
| 166 |
unevaluatedProperties: false |
| 167 |
|
| 168 |
examples: |
| 169 |
- | |
| 170 |
#include <dt-bindings/clock/imx8mp-clock.h> |
| 171 |
#include <dt-bindings/power/imx8mp-power.h> |
| 172 |
#include <dt-bindings/reset/imx8mp-reset.h> |
| 173 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 174 |
|
| 175 |
pcie_ep: pcie-ep@33800000 { |
| 176 |
compatible = "fsl,imx8mp-pcie-ep"; |
| 177 |
reg = <0x33800000 0x100000>, |
| 178 |
<0x18000000 0x8000000>, |
| 179 |
<0x33900000 0x100000>, |
| 180 |
<0x33b00000 0x100000>; |
| 181 |
reg-names = "dbi", "addr_space", "dbi2", "atu"; |
| 182 |
clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, |
| 183 |
<&clk IMX8MP_CLK_HSIO_AXI>, |
| 184 |
<&clk IMX8MP_CLK_PCIE_ROOT>; |
| 185 |
clock-names = "pcie", "pcie_bus", "pcie_aux"; |
| 186 |
assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>; |
| 187 |
assigned-clock-rates = <10000000>; |
| 188 |
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>; |
| 189 |
num-lanes = <1>; |
| 190 |
interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>; /* eDMA */ |
| 191 |
interrupt-names = "dma"; |
| 192 |
fsl,max-link-speed = <3>; |
| 193 |
power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>; |
| 194 |
resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>, |
| 195 |
<&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>; |
| 196 |
reset-names = "apps", "turnoff"; |
| 197 |
phys = <&pcie_phy>; |
| 198 |
phy-names = "pcie-phy"; |
| 199 |
num-ib-windows = <4>; |
| 200 |
num-ob-windows = <4>; |
| 201 |
}; |