Skip to content

Commit bb38919

Browse files
Sean Crossbjorn-helgaas
authored andcommitted
PCI: imx6: Add support for i.MX6 PCIe controller
Add support for the PCIe port present on the i.MX6 family of controllers. These use the Synopsis Designware core tied to their own PHY. Signed-off-by: Sean Cross <xobs@kosagi.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8d6a35f commit bb38919

File tree

4 files changed

+588
-1
lines changed

4 files changed

+588
-1
lines changed

Documentation/devicetree/bindings/pci/designware-pcie.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Required properties:
44
- compatible: should contain "snps,dw-pcie" to identify the
55
core, plus an identifier for the specific instance, such
6-
as "samsung,exynos5440-pcie".
6+
as "samsung,exynos5440-pcie" or "fsl,imx6q-pcie".
77
- reg: base addresses and lengths of the pcie controller,
88
the phy controller, additional register for the phy controller.
99
- interrupts: interrupt values for level interrupt,
@@ -21,6 +21,11 @@ Required properties:
2121
- num-lanes: number of lanes to use
2222
- reset-gpio: gpio pin number of power good signal
2323

24+
Optional properties for fsl,imx6q-pcie
25+
- power-on-gpio: gpio pin number of power-enable signal
26+
- wake-up-gpio: gpio pin number of incoming wakeup signal
27+
- disable-gpio: gpio pin number of outgoing rfkill/endpoint disable signal
28+
2429
Example:
2530

2631
SoC specific DT Entry:

drivers/pci/host/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ config PCI_EXYNOS
1515
select PCIEPORTBUS
1616
select PCIE_DW
1717

18+
config PCI_IMX6
19+
bool "Freescale i.MX6 PCIe controller"
20+
depends on SOC_IMX6Q
21+
select PCIEPORTBUS
22+
select PCIE_DW
23+
1824
config PCI_TEGRA
1925
bool "NVIDIA Tegra PCIe controller"
2026
depends on ARCH_TEGRA

drivers/pci/host/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
obj-$(CONFIG_PCIE_DW) += pcie-designware.o
22
obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o
3+
obj-$(CONFIG_PCI_IMX6) += pci-imx6.o
34
obj-$(CONFIG_PCI_MVEBU) += pci-mvebu.o
45
obj-$(CONFIG_PCI_TEGRA) += pci-tegra.o

0 commit comments

Comments
 (0)