xref: /linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml (revision 8632987380765dee716d460640aa58d58d52998e)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pci/fsl,imx6q-pcie.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale i.MX6 PCIe host controller
8
9maintainers:
10  - Lucas Stach <l.stach@pengutronix.de>
11  - Richard Zhu <hongxing.zhu@nxp.com>
12
13description: |+
14  This PCIe host controller is based on the Synopsys DesignWare PCIe IP
15  and thus inherits all the common properties defined in snps,dw-pcie.yaml.
16
17allOf:
18  - $ref: /schemas/pci/snps,dw-pcie.yaml#
19
20properties:
21  compatible:
22    enum:
23      - fsl,imx6q-pcie
24      - fsl,imx6sx-pcie
25      - fsl,imx6qp-pcie
26      - fsl,imx7d-pcie
27      - fsl,imx8mq-pcie
28
29  reg:
30    items:
31      - description: Data Bus Interface (DBI) registers.
32      - description: PCIe configuration space region.
33
34  reg-names:
35    items:
36      - const: dbi
37      - const: config
38
39  interrupts:
40    items:
41      - description: builtin MSI controller.
42
43  interrupt-names:
44    items:
45      - const: msi
46
47  clocks:
48    minItems: 3
49    items:
50      - description: PCIe bridge clock.
51      - description: PCIe bus clock.
52      - description: PCIe PHY clock.
53      - description: Additional required clock entry for imx6sx-pcie,
54          imx8mq-pcie.
55
56  clock-names:
57    minItems: 3
58    items:
59      - const: pcie
60      - const: pcie_bus
61      - const: pcie_phy
62      - const: pcie_inbound_axi for imx6sx-pcie, pcie_aux for imx8mq-pcie
63
64  num-lanes:
65    const: 1
66
67  fsl,imx7d-pcie-phy:
68    $ref: /schemas/types.yaml#/definitions/phandle
69    description: A phandle to an fsl,imx7d-pcie-phy node. Additional
70      required properties for imx7d-pcie and imx8mq-pcie.
71
72  power-domains:
73    items:
74      - description: The phandle pointing to the DISPLAY domain for
75          imx6sx-pcie, to PCIE_PHY power domain for imx7d-pcie and
76          imx8mq-pcie.
77      - description: The phandle pointing to the PCIE_PHY power domains
78          for imx6sx-pcie.
79
80  power-domain-names:
81    items:
82      - const: pcie
83      - const: pcie_phy
84
85  resets:
86    maxItems: 3
87    description: Phandles to PCIe-related reset lines exposed by SRC
88      IP block. Additional required by imx7d-pcie and imx8mq-pcie.
89
90  reset-names:
91    items:
92      - const: pciephy
93      - const: apps
94      - const: turnoff
95
96  fsl,tx-deemph-gen1:
97    description: Gen1 De-emphasis value (optional required).
98    $ref: /schemas/types.yaml#/definitions/uint32
99    default: 0
100
101  fsl,tx-deemph-gen2-3p5db:
102    description: Gen2 (3.5db) De-emphasis value (optional required).
103    $ref: /schemas/types.yaml#/definitions/uint32
104    default: 0
105
106  fsl,tx-deemph-gen2-6db:
107    description: Gen2 (6db) De-emphasis value (optional required).
108    $ref: /schemas/types.yaml#/definitions/uint32
109    default: 20
110
111  fsl,tx-swing-full:
112    description: Gen2 TX SWING FULL value (optional required).
113    $ref: /schemas/types.yaml#/definitions/uint32
114    default: 127
115
116  fsl,tx-swing-low:
117    description: TX launch amplitude swing_low value (optional required).
118    $ref: /schemas/types.yaml#/definitions/uint32
119    default: 127
120
121  fsl,max-link-speed:
122    description: Specify PCI Gen for link capability (optional required).
123      Note that the IMX6 LVDS clock outputs do not meet gen2 jitter
124      requirements and thus for gen2 capability a gen2 compliant clock
125      generator should be used and configured.
126    $ref: /schemas/types.yaml#/definitions/uint32
127    enum: [1, 2, 3, 4]
128    default: 1
129
130  reset-gpio:
131    description: Should specify the GPIO for controlling the PCI bus device
132      reset signal. It's not polarity aware and defaults to active-low reset
133      sequence (L=reset state, H=operation state) (optional required).
134
135  reset-gpio-active-high:
136    description: If present then the reset sequence using the GPIO
137      specified in the "reset-gpio" property is reversed (H=reset state,
138      L=operation state) (optional required).
139
140  vpcie-supply:
141    description: Should specify the regulator in charge of PCIe port power.
142      The regulator will be enabled when initializing the PCIe host and
143      disabled either as part of the init process or when shutting down
144      the host (optional required).
145
146  vph-supply:
147    description: Should specify the regulator in charge of VPH one of
148      the three PCIe PHY powers. This regulator can be supplied by both
149      1.8v and 3.3v voltage supplies (optional required).
150
151required:
152  - compatible
153  - reg
154  - reg-names
155  - "#address-cells"
156  - "#size-cells"
157  - device_type
158  - bus-range
159  - ranges
160  - num-lanes
161  - interrupts
162  - interrupt-names
163  - "#interrupt-cells"
164  - interrupt-map-mask
165  - interrupt-map
166  - clocks
167  - clock-names
168
169unevaluatedProperties: false
170
171examples:
172  - |
173    #include <dt-bindings/clock/imx6qdl-clock.h>
174    #include <dt-bindings/interrupt-controller/arm-gic.h>
175
176    pcie: pcie@1ffc000 {
177        compatible = "fsl,imx6q-pcie";
178        reg = <0x01ffc000 0x04000>,
179              <0x01f00000 0x80000>;
180        reg-names = "dbi", "config";
181        #address-cells = <3>;
182        #size-cells = <2>;
183        device_type = "pci";
184        bus-range = <0x00 0xff>;
185        ranges = <0x81000000 0 0          0x01f80000 0 0x00010000>,
186                 <0x82000000 0 0x01000000 0x01000000 0 0x00f00000>;
187        num-lanes = <1>;
188        interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
189        interrupt-names = "msi";
190        #interrupt-cells = <1>;
191        interrupt-map-mask = <0 0 0 0x7>;
192        interrupt-map = <0 0 0 1 &gpc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
193                        <0 0 0 2 &gpc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
194                        <0 0 0 3 &gpc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
195                        <0 0 0 4 &gpc GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
196        clocks = <&clks IMX6QDL_CLK_PCIE_AXI>,
197                <&clks IMX6QDL_CLK_LVDS1_GATE>,
198                <&clks IMX6QDL_CLK_PCIE_REF_125M>;
199        clock-names = "pcie", "pcie_bus", "pcie_phy";
200    };
201...
202