1 NVIDIA Tegra PCIe controller
5 - "nvidia,tegra20-pcie": for Tegra20
6 - "nvidia,tegra30-pcie": for Tegra30
7 - "nvidia,tegra124-pcie": for Tegra124 and Tegra132
8 - "nvidia,tegra210-pcie": for Tegra210
9 - "nvidia,tegra186-pcie": for Tegra186
10 - power-domains: To ungate power partition by BPMP powergate driver. Must
11 contain BPMP phandle and PCIe power partition ID. This is required only
13 - device_type: Must be "pci"
14 - reg: A list of physical base address and length for each set of controller
15 registers. Must contain an entry for each entry in the reg-names property.
16 - reg-names: Must include the following entries:
17 "pads": PADS registers
19 "cs": configuration space region
20 - interrupts: A list of interrupt outputs of the controller. Must contain an
21 entry for each entry in the interrupt-names property.
22 - interrupt-names: Must include the following entries:
23 "intr": The Tegra interrupt that is asserted for controller interrupts
24 "msi": The Tegra interrupt that is asserted when an MSI is received
25 - bus-range: Range of bus numbers associated with this controller
26 - #address-cells: Address representation for root ports (must be 3)
27 - cell 0 specifies the bus and device numbers of the root port:
29 [15:11]: device number
30 - cell 1 denotes the upper 32 address bits and should be 0
31 - cell 2 contains the lower 32 address bits and is used to translate to the
33 - #size-cells: Size representation for root ports (must be 2)
34 - ranges: Describes the translation of addresses for root ports and standard
35 PCI regions. The entries must be 6 cells each, where the first three cells
36 correspond to the address as described for the #address-cells property
37 above, the fourth cell is the physical CPU address to translate to and the
38 fifth and six cells are as described for the #size-cells property above.
39 - The first two entries are expected to translate the addresses for the root
40 port registers, which are referenced by the assigned-addresses property of
41 the root port nodes (see below).
42 - The remaining entries setup the mapping for the standard I/O, memory and
43 prefetchable PCI regions. The first cell determines the type of region
45 - 0x81000000: I/O memory region
46 - 0x82000000: non-prefetchable memory region
47 - 0xc2000000: prefetchable memory region
48 Please refer to the standard PCI bus binding document for a more detailed
50 - #interrupt-cells: Size representation for interrupts (must be 1)
51 - interrupt-map-mask and interrupt-map: Standard PCI IRQ mapping properties
52 Please refer to the standard PCI bus binding document for a more detailed
54 - clocks: Must contain an entry for each entry in clock-names.
55 See ../clocks/clock-bindings.txt for details.
56 - clock-names: Must include the following entries:
60 - cml (not required for Tegra20)
61 - resets: Must contain an entry for each entry in reset-names.
62 See ../reset/reset.txt for details.
63 - reset-names: Must include the following entries:
69 - pinctrl-names: A list of pinctrl state names. Must contain the following
71 - "default": active state, puts PCIe I/O out of deep power down state
72 - "idle": puts PCIe I/O into deep power down state
73 - pinctrl-0: phandle for the default/active state of pin configurations.
74 - pinctrl-1: phandle for the idle state of pin configurations.
76 Required properties on Tegra124 and later (deprecated):
77 - phys: Must contain an entry for each entry in phy-names.
78 - phy-names: Must include the following entries:
81 These properties are deprecated in favour of per-lane PHYs define in each of
82 the root ports (see below).
84 Power supplies for Tegra20:
85 - avdd-pex-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
86 - vdd-pex-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
87 - avdd-pex-pll-supply: Power supply for dedicated (internal) PCIe PLL. Must
89 - avdd-plle-supply: Power supply for PLLE, which is shared with SATA. Must
91 - vddio-pex-clk-supply: Power supply for PCIe clock. Must supply 3.3 V.
93 Power supplies for Tegra30:
95 - avdd-pex-pll-supply: Power supply for dedicated (internal) PCIe PLL. Must
97 - avdd-plle-supply: Power supply for PLLE, which is shared with SATA. Must
99 - vddio-pex-ctl-supply: Power supply for PCIe control I/O partition. Must
101 - hvdd-pex-supply: High-voltage supply for PCIe I/O and PCIe output clocks.
104 - If lanes 0 to 3 are used:
105 - avdd-pexa-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
106 - vdd-pexa-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
107 - If lanes 4 or 5 are used:
108 - avdd-pexb-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
109 - vdd-pexb-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
111 Power supplies for Tegra124:
113 - avddio-pex-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
114 - dvddio-pex-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
115 - avdd-pex-pll-supply: Power supply for dedicated (internal) PCIe PLL. Must
117 - hvdd-pex-supply: High-voltage supply for PCIe I/O and PCIe output clocks.
119 - hvdd-pex-pll-e-supply: High-voltage supply for PLLE (shared with USB3).
121 - vddio-pex-ctl-supply: Power supply for PCIe control I/O partition. Must
123 - avdd-pll-erefe-supply: Power supply for PLLE (shared with USB3). Must
126 Power supplies for Tegra210:
128 - avdd-pll-uerefe-supply: Power supply for PLLE (shared with USB3). Must
130 - hvddio-pex-supply: High-voltage supply for PCIe I/O and PCIe output
131 clocks. Must supply 1.8 V.
132 - dvddio-pex-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
133 - dvdd-pex-pll-supply: Power supply for dedicated (internal) PCIe PLL. Must
135 - hvdd-pex-pll-e-supply: High-voltage supply for PLLE (shared with USB3).
137 - vddio-pex-ctl-supply: Power supply for PCIe control I/O partition. Must
140 Power supplies for Tegra186:
142 - dvdd-pex-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
143 - hvdd-pex-pll-supply: High-voltage supply for PLLE (shared with USB3). Must
145 - hvdd-pex-supply: High-voltage supply for PCIe I/O and PCIe output clocks.
147 - vddio-pexctl-aud-supply: Power supply for PCIe side band signals. Must
150 Root ports are defined as subnodes of the PCIe controller node.
153 - device_type: Must be "pci"
154 - assigned-addresses: Address and size of the port configuration registers
155 - reg: PCI bus address of the root port
156 - #address-cells: Must be 3
157 - #size-cells: Must be 2
158 - ranges: Sub-ranges distributed from the PCIe controller node. An empty
159 property is sufficient.
160 - nvidia,num-lanes: Number of lanes to use for this port. Valid combinations
162 - Root port 0 uses 4 lanes, root port 1 is unused.
163 - Both root ports use 2 lanes.
165 Required properties for Tegra124 and later:
166 - phys: Must contain an phandle to a PHY for each entry in phy-names.
167 - phy-names: Must include an entry for each active lane. Note that the number
168 of entries does not have to (though usually will) be equal to the specified
169 number of lanes in the nvidia,num-lanes property. Entries are of the form
170 "pcie-N": where N ranges from 0 to the value specified in nvidia,num-lanes.
180 pcie-controller@80003000 {
181 compatible = "nvidia,tegra20-pcie";
183 reg = <0x80003000 0x00000800 /* PADS registers */
184 0x80003800 0x00000200 /* AFI registers */
185 0x90000000 0x10000000>; /* configuration space */
186 reg-names = "pads", "afi", "cs";
187 interrupts = <0 98 0x04 /* controller interrupt */
188 0 99 0x04>; /* MSI interrupt */
189 interrupt-names = "intr", "msi";
191 #interrupt-cells = <1>;
192 interrupt-map-mask = <0 0 0 0>;
193 interrupt-map = <0 0 0 0 &intc GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
195 bus-range = <0x00 0xff>;
196 #address-cells = <3>;
199 ranges = <0x82000000 0 0x80000000 0x80000000 0 0x00001000 /* port 0 registers */
200 0x82000000 0 0x80001000 0x80001000 0 0x00001000 /* port 1 registers */
201 0x81000000 0 0 0x82000000 0 0x00010000 /* downstream I/O */
202 0x82000000 0 0xa0000000 0xa0000000 0 0x10000000 /* non-prefetchable memory */
203 0xc2000000 0 0xb0000000 0xb0000000 0 0x10000000>; /* prefetchable memory */
205 clocks = <&tegra_car 70>, <&tegra_car 72>, <&tegra_car 118>;
206 clock-names = "pex", "afi", "pll_e";
207 resets = <&tegra_car 70>, <&tegra_car 72>, <&tegra_car 74>;
208 reset-names = "pex", "afi", "pcie_x";
213 assigned-addresses = <0x82000800 0 0x80000000 0 0x1000>;
214 reg = <0x000800 0 0 0 0>;
217 #address-cells = <3>;
222 nvidia,num-lanes = <2>;
227 assigned-addresses = <0x82001000 0 0x80001000 0 0x1000>;
228 reg = <0x001000 0 0 0 0>;
231 #address-cells = <3>;
236 nvidia,num-lanes = <2>;
242 pcie-controller@80003000 {
245 vdd-supply = <&pci_vdd_reg>;
246 pex-clk-supply = <&pci_clk_reg>;
248 /* root port 00:01.0 */
252 /* bridge 01:00.0 (optional) */
254 reg = <0x010000 0 0 0 0>;
256 #address-cells = <3>;
261 /* endpoint 02:00.0 */
263 reg = <0x020000 0 0 0 0>;
269 Note that devices on the PCI bus are dynamically discovered using PCI's bus
270 enumeration and therefore don't need corresponding device nodes in DT. However
271 if a device on the PCI bus provides a non-probeable bus such as I2C or SPI,
272 device nodes need to be added in order to allow the bus' children to be
273 instantiated at the proper location in the operating system's device tree (as
274 illustrated by the optional nodes in the example above).
281 pcie-controller@3000 {
282 compatible = "nvidia,tegra30-pcie";
284 reg = <0x00003000 0x00000800 /* PADS registers */
285 0x00003800 0x00000200 /* AFI registers */
286 0x10000000 0x10000000>; /* configuration space */
287 reg-names = "pads", "afi", "cs";
288 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH /* controller interrupt */
289 GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
290 interrupt-names = "intr", "msi";
292 #interrupt-cells = <1>;
293 interrupt-map-mask = <0 0 0 0>;
294 interrupt-map = <0 0 0 0 &intc GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
296 bus-range = <0x00 0xff>;
297 #address-cells = <3>;
300 ranges = <0x82000000 0 0x00000000 0x00000000 0 0x00001000 /* port 0 configuration space */
301 0x82000000 0 0x00001000 0x00001000 0 0x00001000 /* port 1 configuration space */
302 0x82000000 0 0x00004000 0x00004000 0 0x00001000 /* port 2 configuration space */
303 0x81000000 0 0 0x02000000 0 0x00010000 /* downstream I/O */
304 0x82000000 0 0x20000000 0x20000000 0 0x08000000 /* non-prefetchable memory */
305 0xc2000000 0 0x28000000 0x28000000 0 0x18000000>; /* prefetchable memory */
307 clocks = <&tegra_car TEGRA30_CLK_PCIE>,
308 <&tegra_car TEGRA30_CLK_AFI>,
309 <&tegra_car TEGRA30_CLK_PLL_E>,
310 <&tegra_car TEGRA30_CLK_CML0>;
311 clock-names = "pex", "afi", "pll_e", "cml";
312 resets = <&tegra_car 70>,
315 reset-names = "pex", "afi", "pcie_x";
320 assigned-addresses = <0x82000800 0 0x00000000 0 0x1000>;
321 reg = <0x000800 0 0 0 0>;
324 #address-cells = <3>;
328 nvidia,num-lanes = <2>;
333 assigned-addresses = <0x82001000 0 0x00001000 0 0x1000>;
334 reg = <0x001000 0 0 0 0>;
337 #address-cells = <3>;
341 nvidia,num-lanes = <2>;
346 assigned-addresses = <0x82001800 0 0x00004000 0 0x1000>;
347 reg = <0x001800 0 0 0 0>;
350 #address-cells = <3>;
354 nvidia,num-lanes = <2>;
360 pcie-controller@3000 {
363 avdd-pexa-supply = <&ldo1_reg>;
364 vdd-pexa-supply = <&ldo1_reg>;
365 avdd-pexb-supply = <&ldo1_reg>;
366 vdd-pexb-supply = <&ldo1_reg>;
367 avdd-pex-pll-supply = <&ldo1_reg>;
368 avdd-plle-supply = <&ldo1_reg>;
369 vddio-pex-ctl-supply = <&sys_3v3_reg>;
370 hvdd-pex-supply = <&sys_3v3_pexs_reg>;
386 pcie-controller@1003000 {
387 compatible = "nvidia,tegra124-pcie";
389 reg = <0x0 0x01003000 0x0 0x00000800 /* PADS registers */
390 0x0 0x01003800 0x0 0x00000800 /* AFI registers */
391 0x0 0x02000000 0x0 0x10000000>; /* configuration space */
392 reg-names = "pads", "afi", "cs";
393 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, /* controller interrupt */
394 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
395 interrupt-names = "intr", "msi";
397 #interrupt-cells = <1>;
398 interrupt-map-mask = <0 0 0 0>;
399 interrupt-map = <0 0 0 0 &gic GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
401 bus-range = <0x00 0xff>;
402 #address-cells = <3>;
405 ranges = <0x82000000 0 0x01000000 0x0 0x01000000 0 0x00001000 /* port 0 configuration space */
406 0x82000000 0 0x01001000 0x0 0x01001000 0 0x00001000 /* port 1 configuration space */
407 0x81000000 0 0x0 0x0 0x12000000 0 0x00010000 /* downstream I/O (64 KiB) */
408 0x82000000 0 0x13000000 0x0 0x13000000 0 0x0d000000 /* non-prefetchable memory (208 MiB) */
409 0xc2000000 0 0x20000000 0x0 0x20000000 0 0x20000000>; /* prefetchable memory (512 MiB) */
411 clocks = <&tegra_car TEGRA124_CLK_PCIE>,
412 <&tegra_car TEGRA124_CLK_AFI>,
413 <&tegra_car TEGRA124_CLK_PLL_E>,
414 <&tegra_car TEGRA124_CLK_CML0>;
415 clock-names = "pex", "afi", "pll_e", "cml";
416 resets = <&tegra_car 70>,
419 reset-names = "pex", "afi", "pcie_x";
424 assigned-addresses = <0x82000800 0 0x01000000 0 0x1000>;
425 reg = <0x000800 0 0 0 0>;
428 #address-cells = <3>;
432 nvidia,num-lanes = <2>;
437 assigned-addresses = <0x82001000 0 0x01001000 0 0x1000>;
438 reg = <0x001000 0 0 0 0>;
441 #address-cells = <3>;
445 nvidia,num-lanes = <1>;
451 pcie-controller@1003000 {
454 avddio-pex-supply = <&vdd_1v05_run>;
455 dvddio-pex-supply = <&vdd_1v05_run>;
456 avdd-pex-pll-supply = <&vdd_1v05_run>;
457 hvdd-pex-supply = <&vdd_3v3_lp0>;
458 hvdd-pex-pll-e-supply = <&vdd_3v3_lp0>;
459 vddio-pex-ctl-supply = <&vdd_3v3_lp0>;
460 avdd-pll-erefe-supply = <&avdd_1v05_run>;
464 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
465 phy-names = "pcie-0";
469 /* Gigabit Ethernet */
471 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>;
472 phy-names = "pcie-0";
482 pcie-controller@1003000 {
483 compatible = "nvidia,tegra210-pcie";
485 reg = <0x0 0x01003000 0x0 0x00000800 /* PADS registers */
486 0x0 0x01003800 0x0 0x00000800 /* AFI registers */
487 0x0 0x02000000 0x0 0x10000000>; /* configuration space */
488 reg-names = "pads", "afi", "cs";
489 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, /* controller interrupt */
490 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
491 interrupt-names = "intr", "msi";
493 #interrupt-cells = <1>;
494 interrupt-map-mask = <0 0 0 0>;
495 interrupt-map = <0 0 0 0 &gic GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
497 bus-range = <0x00 0xff>;
498 #address-cells = <3>;
501 ranges = <0x82000000 0 0x01000000 0x0 0x01000000 0 0x00001000 /* port 0 configuration space */
502 0x82000000 0 0x01001000 0x0 0x01001000 0 0x00001000 /* port 1 configuration space */
503 0x81000000 0 0x0 0x0 0x12000000 0 0x00010000 /* downstream I/O (64 KiB) */
504 0x82000000 0 0x13000000 0x0 0x13000000 0 0x0d000000 /* non-prefetchable memory (208 MiB) */
505 0xc2000000 0 0x20000000 0x0 0x20000000 0 0x20000000>; /* prefetchable memory (512 MiB) */
507 clocks = <&tegra_car TEGRA210_CLK_PCIE>,
508 <&tegra_car TEGRA210_CLK_AFI>,
509 <&tegra_car TEGRA210_CLK_PLL_E>,
510 <&tegra_car TEGRA210_CLK_CML0>;
511 clock-names = "pex", "afi", "pll_e", "cml";
512 resets = <&tegra_car 70>,
515 reset-names = "pex", "afi", "pcie_x";
520 assigned-addresses = <0x82000800 0 0x01000000 0 0x1000>;
521 reg = <0x000800 0 0 0 0>;
524 #address-cells = <3>;
528 nvidia,num-lanes = <4>;
533 assigned-addresses = <0x82001000 0 0x01001000 0 0x1000>;
534 reg = <0x001000 0 0 0 0>;
537 #address-cells = <3>;
541 nvidia,num-lanes = <1>;
547 pcie-controller@1003000 {
550 avdd-pll-uerefe-supply = <&avdd_1v05_pll>;
551 hvddio-pex-supply = <&vdd_1v8>;
552 dvddio-pex-supply = <&vdd_pex_1v05>;
553 dvdd-pex-pll-supply = <&vdd_pex_1v05>;
554 hvdd-pex-pll-e-supply = <&vdd_1v8>;
555 vddio-pex-ctl-supply = <&vdd_1v8>;
558 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>,
559 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>,
560 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>,
561 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>;
562 phy-names = "pcie-0", "pcie-1", "pcie-2", "pcie-3";
567 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
568 phy-names = "pcie-0";
579 compatible = "nvidia,tegra186-pcie";
580 power-domains = <&bpmp TEGRA186_POWER_DOMAIN_PCX>;
582 reg = <0x0 0x10003000 0x0 0x00000800 /* PADS registers */
583 0x0 0x10003800 0x0 0x00000800 /* AFI registers */
584 0x0 0x40000000 0x0 0x10000000>; /* configuration space */
585 reg-names = "pads", "afi", "cs";
587 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>, /* controller interrupt */
588 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
589 interrupt-names = "intr", "msi";
591 #interrupt-cells = <1>;
592 interrupt-map-mask = <0 0 0 0>;
593 interrupt-map = <0 0 0 0 &gic GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
595 bus-range = <0x00 0xff>;
596 #address-cells = <3>;
599 ranges = <0x82000000 0 0x10000000 0x0 0x10000000 0 0x00001000 /* port 0 configuration space */
600 0x82000000 0 0x10001000 0x0 0x10001000 0 0x00001000 /* port 1 configuration space */
601 0x82000000 0 0x10004000 0x0 0x10004000 0 0x00001000 /* port 2 configuration space */
602 0x81000000 0 0x0 0x0 0x50000000 0 0x00010000 /* downstream I/O (64 KiB) */
603 0x82000000 0 0x50100000 0x0 0x50100000 0 0x07F00000 /* non-prefetchable memory (127 MiB) */
604 0xc2000000 0 0x58000000 0x0 0x58000000 0 0x28000000>; /* prefetchable memory (640 MiB) */
606 clocks = <&bpmp TEGRA186_CLK_AFI>,
607 <&bpmp TEGRA186_CLK_PCIE>,
608 <&bpmp TEGRA186_CLK_PLLE>;
609 clock-names = "afi", "pex", "pll_e";
611 resets = <&bpmp TEGRA186_RESET_AFI>,
612 <&bpmp TEGRA186_RESET_PCIE>,
613 <&bpmp TEGRA186_RESET_PCIEXCLK>;
614 reset-names = "afi", "pex", "pcie_x";
620 assigned-addresses = <0x82000800 0 0x10000000 0 0x1000>;
621 reg = <0x000800 0 0 0 0>;
624 #address-cells = <3>;
628 nvidia,num-lanes = <2>;
633 assigned-addresses = <0x82001000 0 0x10001000 0 0x1000>;
634 reg = <0x001000 0 0 0 0>;
637 #address-cells = <3>;
641 nvidia,num-lanes = <1>;
646 assigned-addresses = <0x82001800 0 0x10004000 0 0x1000>;
647 reg = <0x001800 0 0 0 0>;
650 #address-cells = <3>;
654 nvidia,num-lanes = <1>;
663 dvdd-pex-supply = <&vdd_pex>;
664 hvdd-pex-pll-supply = <&vdd_1v8>;
665 hvdd-pex-supply = <&vdd_1v8>;
666 vddio-pexctl-aud-supply = <&vdd_1v8>;
669 nvidia,num-lanes = <4>;
674 nvidia,num-lanes = <0>;
679 nvidia,num-lanes = <1>;