Skip to contentSkip to conversation

PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

PATCH Superseded Z.q. Hou 2 participants 9 messages May 28, 2019 – Jun 3, 2019

Subsystems (6)

v6 of 10 Superseded Latest is v10 →

lore
Share & tools
lore

Z.q. Hou

author maintainer
#0 lore raw

v6 cover PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

From: Hou Zhiqiang <[email protected]>

This patch set is aim to refactor the Mobiveil driver and add PCIe support for NXP Layerscape series SoCs integrated Mobiveil's PCIe Gen4 controller.

This patch set depends on:
http://patchwork.ozlabs.org/project/linux-pci/list/?series=102378

Hou Zhiqiang (6):
PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver
PCI: mobiveil: Make mobiveil_host_init() can be used to re-init host
dt-bindings: PCI: Add NXP Layerscape SoCs PCIe Gen4 controller
PCI: mobiveil: Add PCIe Gen4 RC driver for NXP Layerscape SoCs
arm64: dts: lx2160a: Add PCIe controller DT nodes
arm64: defconfig: Enable CONFIG_PCIE_LAYERSCAPE_GEN4

 .../bindings/pci/layerscape-pcie-gen4.txt     |  52 ++
 MAINTAINERS                                   |  10 +-
 .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163 +++++
 arch/arm64/configs/defconfig                  |   1 +
 drivers/pci/controller/Kconfig                |  11 +-
 drivers/pci/controller/Makefile               |   2 +-
 drivers/pci/controller/mobiveil/Kconfig       |  34 +
 drivers/pci/controller/mobiveil/Makefile      |   5 +
 .../mobiveil/pcie-layerscape-gen4.c           | 255 ++++++++
 .../pcie-mobiveil-host.c}                     | 608 +++---------------
 .../controller/mobiveil/pcie-mobiveil-plat.c  |  59 ++
 .../pci/controller/mobiveil/pcie-mobiveil.c   | 248 +++++++
 .../pci/controller/mobiveil/pcie-mobiveil.h   | 225 +++++++
 13 files changed, 1160 insertions(+), 513 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt
 create mode 100644 drivers/pci/controller/mobiveil/Kconfig
 create mode 100644 drivers/pci/controller/mobiveil/Makefile
 create mode 100644 drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c
 rename drivers/pci/controller/{pcie-mobiveil.c => mobiveil/pcie-mobiveil-host.c} (51%)
 create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c
 create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil.c
 create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil.h
Signature · 1 line
2.17.1
author maintainer
#1 lore raw

PATCH v6 1/6 PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver

From: Hou Zhiqiang <[email protected]>

Refactor the Mobiveil PCIe Host Bridge IP driver to make it easier to add support for both RC and EP mode driver. This patch moved the Mobiveil driver to an new directory 'drivers/pci/controller/mobiveil' and refactor it according to the RC and EP abstraction.

---
V6:
- Move the allocation of host birdge structure to main driver, and squash the allocation of private structure into the host bridge structure allocation.

 MAINTAINERS                                   |   2 +-
 drivers/pci/controller/Kconfig                |  11 +-
 drivers/pci/controller/Makefile               |   2 +-
 drivers/pci/controller/mobiveil/Kconfig       |  24 +
 drivers/pci/controller/mobiveil/Makefile      |   4 +
 .../pcie-mobiveil-host.c}                     | 569 +++---------------
 .../controller/mobiveil/pcie-mobiveil-plat.c  |  59 ++
 .../pci/controller/mobiveil/pcie-mobiveil.c   | 248 ++++++++
 .../pci/controller/mobiveil/pcie-mobiveil.h   | 212 +++++++
 9 files changed, 637 insertions(+), 494 deletions(-)
 create mode 100644 drivers/pci/controller/mobiveil/Kconfig
 create mode 100644 drivers/pci/controller/mobiveil/Makefile
 rename drivers/pci/controller/{pcie-mobiveil.c => mobiveil/pcie-mobiveil-host.c} (53%)
 create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c
 create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil.c
 create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil.h
MAINTAINERS +1 -1
index 992f1dd06318..c066128d69ec 100644
@@ -12063,7 +12063,7 @@ M:	Hou Zhiqiang <[email protected]>
 L:	[email protected]
 S:	Supported
 F:	Documentation/devicetree/bindings/pci/mobiveil-pcie.txt
-F:	drivers/pci/controller/pcie-mobiveil.c
+F:	drivers/pci/controller/mobiveil/pcie-mobiveil*
 
 PCI DRIVER FOR MVEBU (Marvell Armada 370 and Armada XP SOC support)
 M:	Thomas Petazzoni <[email protected]>
drivers/pci/controller/Kconfig +1 -10
index 011c57cae4b0..b4d1e211b6d1 100644
@@ -241,16 +241,6 @@ config PCIE_MEDIATEK
 	  Say Y here if you want to enable PCIe controller support on
 	  MediaTek SoCs.
 
-config PCIE_MOBIVEIL
-	bool "Mobiveil AXI PCIe controller"
-	depends on ARCH_ZYNQMP || COMPILE_TEST
-	depends on OF
-	depends on PCI_MSI_IRQ_DOMAIN
-	help
-	  Say Y here if you want to enable support for the Mobiveil AXI PCIe
-	  Soft IP. It has up to 8 outbound and inbound windows
-	  for address translation and it is a PCIe Gen4 IP.
-
 config PCIE_TANGO_SMP8759
 	bool "Tango SMP8759 PCIe controller (DANGEROUS)"
 	depends on ARCH_TANGO && PCI_MSI && OF
@@ -282,4 +272,5 @@ config VMD
 	  module will be called vmd.
 
 source "drivers/pci/controller/dwc/Kconfig"
+source "drivers/pci/controller/mobiveil/Kconfig"
 endmenu
drivers/pci/controller/Makefile +1 -1
index d56a507495c5..b79a615041a0 100644
@@ -26,11 +26,11 @@ obj-$(CONFIG_PCIE_ROCKCHIP) += pcie-rockchip.o
 obj-$(CONFIG_PCIE_ROCKCHIP_EP) += pcie-rockchip-ep.o
 obj-$(CONFIG_PCIE_ROCKCHIP_HOST) += pcie-rockchip-host.o
 obj-$(CONFIG_PCIE_MEDIATEK) += pcie-mediatek.o
-obj-$(CONFIG_PCIE_MOBIVEIL) += pcie-mobiveil.o
 obj-$(CONFIG_PCIE_TANGO_SMP8759) += pcie-tango.o
 obj-$(CONFIG_VMD) += vmd.o
 # pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW
 obj-y				+= dwc/
+obj-y				+= mobiveil/
 
 
 # The following drivers are for devices that use the generic ACPI
drivers/pci/controller/mobiveil/Kconfig new file +24 -0
new file mode 100644
index 000000000000..64343c07bfed
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0
+
+menu "Mobiveil PCIe Core Support"
+	depends on PCI
+
+config PCIE_MOBIVEIL
+	bool
+
+config PCIE_MOBIVEIL_HOST
+        bool
+	depends on PCI_MSI_IRQ_DOMAIN
+        select PCIE_MOBIVEIL
+
+config PCIE_MOBIVEIL_PLAT
+	bool "Mobiveil AXI PCIe controller"
+	depends on ARCH_ZYNQMP || COMPILE_TEST
+	depends on OF
+	select PCIE_MOBIVEIL_HOST
+	help
+	  Say Y here if you want to enable support for the Mobiveil AXI PCIe
+	  Soft IP. It has up to 8 outbound and inbound windows
+	  for address translation and it is a PCIe Gen4 IP.
+
+endmenu
drivers/pci/controller/mobiveil/Makefile new file +4 -0
new file mode 100644
index 000000000000..9fb6d1c6504d
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_PCIE_MOBIVEIL) += pcie-mobiveil.o
+obj-$(CONFIG_PCIE_MOBIVEIL_HOST) += pcie-mobiveil-host.o
+obj-$(CONFIG_PCIE_MOBIVEIL_PLAT) += pcie-mobiveil-plat.o
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c renamed from drivers/pci/controller/pcie-mobiveil.c +87 -482

760 lines not on this page · raw message

drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c new file +59 -0

59 lines not on this page · raw message

drivers/pci/controller/mobiveil/pcie-mobiveil.c new file +248 -0

248 lines not on this page · raw message

drivers/pci/controller/mobiveil/pcie-mobiveil.h new file +212 -0

212 lines not on this page · raw message

Signature · 1 line
2.17.1
author maintainer
#2 lore raw

PATCH v6 2/6 PCI: mobiveil: Make mobiveil_host_init() can be used to re-init host

In reply to Z.q. Hou

From: Hou Zhiqiang <[email protected]>

Make the mobiveil_host_init() function can be used to re-init host controller's PAB and GPEX CSR register block, as NXP integrated Mobiveil IP has to reset and then re-init the PAB and GPEX CSR registers upon hot-reset.

---
V6:
- No change.

 .../controller/mobiveil/pcie-mobiveil-host.c  | 41 ++++++++++---------
 .../pci/controller/mobiveil/pcie-mobiveil.h   |  3 +-
 2 files changed, 23 insertions(+), 21 deletions(-)
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c +21 -20
index c4b98a31d426..fc401af030de 100644
@@ -219,7 +219,7 @@ static void mobiveil_pcie_enable_msi(struct mobiveil_pcie *pcie)
 	writel_relaxed(1, pcie->apb_csr_base + MSI_ENABLE_OFFSET);
 }
 
-static int mobiveil_host_init(struct mobiveil_pcie *pcie)
+int mobiveil_host_init(struct mobiveil_pcie *pcie, bool reinit)
 {
 	u32 value, pab_ctrl, type;
 	struct resource_entry *win;
@@ -231,11 +231,16 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie)
 	for (i = 0; i < pcie->ppio_wins; i++)
 		mobiveil_pcie_disable_ib_win(pcie, i);
 
-	/* setup bus numbers */
-	value = csr_readl(pcie, PCI_PRIMARY_BUS);
-	value &= 0xff000000;
-	value |= 0x00ff0100;
-	csr_writel(pcie, value, PCI_PRIMARY_BUS);
+	pcie->ib_wins_configured = 0;
+	pcie->ob_wins_configured = 0;
+
+	if (!reinit) {
+		/* setup bus numbers */
+		value = csr_readl(pcie, PCI_PRIMARY_BUS);
+		value &= 0xff000000;
+		value |= 0x00ff0100;
+		csr_writel(pcie, value, PCI_PRIMARY_BUS);
+	}
 
 	/*
 	 * program Bus Master Enable Bit in Command Register in PAB Config
@@ -281,7 +286,7 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie)
 	program_ib_windows(pcie, WIN_NUM_0, 0, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE);
 
 	/* Get the I/O and memory ranges from DT */
-	resource_list_for_each_entry(win, &pcie->resources) {
+	resource_list_for_each_entry(win, pcie->resources) {
 		if (resource_type(win->res) == IORESOURCE_MEM) {
 			type = MEM_WINDOW_TYPE;
 		} else if (resource_type(win->res) == IORESOURCE_IO) {
@@ -552,8 +557,6 @@ int mobiveil_pcie_host_probe(struct mobiveil_pcie *pcie)
 	resource_size_t iobase;
 	int ret;
 
-	INIT_LIST_HEAD(&pcie->resources);
-
 	ret = mobiveil_pcie_parse_dt(pcie);
 	if (ret) {
 		dev_err(dev, "Parsing DT failed, ret: %x\n", ret);
@@ -562,34 +565,35 @@ int mobiveil_pcie_host_probe(struct mobiveil_pcie *pcie)
 
 	/* parse the host bridge base addresses from the device tree file */
 	ret = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff,
-						    &pcie->resources, &iobase);
+						    &bridge->windows, &iobase);
 	if (ret) {
 		dev_err(dev, "Getting bridge resources failed\n");
 		return ret;
 	}
 
+	pcie->resources = &bridge->windows;
+
 	/*
 	 * configure all inbound and outbound windows and prepare the RC for
 	 * config access
 	 */
-	ret = mobiveil_host_init(pcie);
+	ret = mobiveil_host_init(pcie, false);
 	if (ret) {
 		dev_err(dev, "Failed to initialize host\n");
-		goto error;
+		return ret;
 	}
 
 	ret = mobiveil_pcie_interrupt_init(pcie);
 	if (ret) {
 		dev_err(dev, "Interrupt init failed\n");
-		goto error;
+		return ret;
 	}
 
-	ret = devm_request_pci_bus_resources(dev, &pcie->resources);
+	ret = devm_request_pci_bus_resources(dev, pcie->resources);
 	if (ret)
-		goto error;
+		return ret;
 
 	/* Initialize bridge */
-	list_splice_init(&pcie->resources, &bridge->windows);
 	bridge->dev.parent = dev;
 	bridge->sysdata = pcie;
 	bridge->busnr = pcie->rp.root_bus_nr;
@@ -604,7 +608,7 @@ int mobiveil_pcie_host_probe(struct mobiveil_pcie *pcie)
 	/* setup the kernel resources for the newly added PCIe root bus */
 	ret = pci_scan_root_bus_bridge(bridge);
 	if (ret)
-		goto error;
+		return ret;
 
 	bus = bridge->bus;
 
@@ -614,7 +618,4 @@ int mobiveil_pcie_host_probe(struct mobiveil_pcie *pcie)
 	pci_bus_add_devices(bus);
 
 	return 0;
-error:
-	pci_free_resource_list(&pcie->resources);
-	return ret;
 }
drivers/pci/controller/mobiveil/pcie-mobiveil.h +2 -1
index dce7871761e1..a729a4f879fe 100644
@@ -154,7 +154,7 @@ struct mobiveil_pab_ops {
 
 struct mobiveil_pcie {
 	struct platform_device *pdev;
-	struct list_head resources;
+	struct list_head *resources;
 	void __iomem *csr_axi_slave_base;	/* PAB registers base */
 	phys_addr_t pcie_reg_base;	/* Physical PCIe Controller Base */
 	void __iomem *apb_csr_base;	/* MSI register base */
@@ -168,6 +168,7 @@ struct mobiveil_pcie {
 };
 
 int mobiveil_pcie_host_probe(struct mobiveil_pcie *pcie);
+int mobiveil_host_init(struct mobiveil_pcie *pcie, bool reinit);
 bool mobiveil_pcie_link_up(struct mobiveil_pcie *pcie);
 int mobiveil_bringup_link(struct mobiveil_pcie *pcie);
 void program_ob_windows(struct mobiveil_pcie *pcie, int win_num, u64 cpu_addr,
Signature · 1 line
2.17.1
author maintainer
#3 lore raw

PATCH v6 3/6 dt-bindings: PCI: Add NXP Layerscape SoCs PCIe Gen4 controller

In reply to Z.q. Hou

From: Hou Zhiqiang <[email protected]>

Add PCIe Gen4 controller DT bindings of NXP Layerscape SoCs.

---
V6:
- Change the file name layerscape-pci-gen4.txt to layerscape-pcie-gen4.txt.

 .../bindings/pci/layerscape-pcie-gen4.txt     | 52 +++++++++++++++++++
 MAINTAINERS                                   |  8 +++
 2 files changed, 60 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt
Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt new file +52 -0
new file mode 100644
index 000000000000..b40fb5d15d3d
@@ -0,0 +1,52 @@
+NXP Layerscape PCIe Gen4 controller
+
+This PCIe controller is based on the Mobiveil PCIe IP and thus inherits all
+the common properties defined in mobiveil-pcie.txt.
+
+Required properties:
+- compatible: should contain the platform identifier such as:
+  "fsl,lx2160a-pcie"
+- reg: base addresses and lengths of the PCIe controller register blocks.
+  "csr_axi_slave": Bridge config registers
+  "config_axi_slave": PCIe controller registers
+- interrupts: A list of interrupt outputs of the controller. Must contain an
+  entry for each entry in the interrupt-names property.
+- interrupt-names: It could include the following entries:
+  "intr": The interrupt that is asserted for controller interrupts
+  "aer": Asserted for aer interrupt when chip support the aer interrupt with
+	 none MSI/MSI-X/INTx mode,but there is interrupt line for aer.
+  "pme": Asserted for pme interrupt when chip support the pme interrupt with
+	 none MSI/MSI-X/INTx mode,but there is interrupt line for pme.
+- dma-coherent: Indicates that the hardware IP block can ensure the coherency
+  of the data transferred from/to the IP block. This can avoid the software
+  cache flush/invalid actions, and improve the performance significantly.
+- msi-parent : See the generic MSI binding described in
+  Documentation/devicetree/bindings/interrupt-controller/msi.txt.
+
+Example:
+
+	pcie@3400000 {
+		compatible = "fsl,lx2160a-pcie";
+		reg = <0x00 0x03400000 0x0 0x00100000   /* controller registers */
+		       0x80 0x00000000 0x0 0x00001000>; /* configuration space */
+		reg-names = "csr_axi_slave", "config_axi_slave";
+		interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+			     <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+			     <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+		interrupt-names = "aer", "pme", "intr";
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		apio-wins = <8>;
+		ppio-wins = <8>;
+		dma-coherent;
+		bus-range = <0x0 0xff>;
+		msi-parent = <&its>;
+		ranges = <0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>;
+		#interrupt-cells = <1>;
+		interrupt-map-mask = <0 0 0 7>;
+		interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
+				<0000 0 0 2 &gic 0 0 GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
+				<0000 0 0 3 &gic 0 0 GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,
+				<0000 0 0 4 &gic 0 0 GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+	};
MAINTAINERS +8 -0
index c066128d69ec..725a58953ee1 100644
@@ -12020,6 +12020,14 @@ L:	[email protected]
 S:	Maintained
 F:	drivers/pci/controller/dwc/*layerscape*
 
+PCI DRIVER FOR NXP LAYERSCAPE GEN4 CONTROLLER
+M:	Hou Zhiqiang <[email protected]>
+L:	[email protected]
+L:	[email protected]
+S:	Maintained
+F:	Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt
+F:	drivers/pci/controller/mobibeil/pcie-layerscape-gen4.c
+
 PCI DRIVER FOR GENERIC OF HOSTS
 M:	Will Deacon <[email protected]>
 L:	[email protected]
Signature · 1 line
2.17.1
author maintainer
#4 lore raw

PATCH v6 4/6 PCI: mobiveil: Add PCIe Gen4 RC driver for NXP Layerscape SoCs

In reply to Z.q. Hou

From: Hou Zhiqiang <[email protected]>

This PCIe controller is based on the Mobiveil GPEX IP, which is compatible with the PCI Express™ Base Specification, Revision 4.0.

---
V6:
- Change the file name pci-layerscape-gen4.c to pcie-layerscape-gen4.c.
- Change the macro name to PCIE_LAYERSCAPE_GEN4.
- Change the L0 state macro name to PF_DBG_LTSSM_L0.
- Romve the punctuation at end of error messages.
- Move the allocation of host bridge structure here and squash the allocations.

 drivers/pci/controller/mobiveil/Kconfig       |  10 +
 drivers/pci/controller/mobiveil/Makefile      |   1 +
 .../mobiveil/pcie-layerscape-gen4.c           | 255 ++++++++++++++++++
 .../pci/controller/mobiveil/pcie-mobiveil.h   |  16 +-
 4 files changed, 280 insertions(+), 2 deletions(-)
 create mode 100644 drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c
drivers/pci/controller/mobiveil/Kconfig +10 -0
index 64343c07bfed..c823be8dab1c 100644
@@ -21,4 +21,14 @@ config PCIE_MOBIVEIL_PLAT
 	  Soft IP. It has up to 8 outbound and inbound windows
 	  for address translation and it is a PCIe Gen4 IP.
 
+config PCIE_LAYERSCAPE_GEN4
+	bool "Freescale Layerscape PCIe Gen4 controller"
+	depends on PCI
+	depends on OF && (ARM64 || ARCH_LAYERSCAPE)
+	depends on PCI_MSI_IRQ_DOMAIN
+	select PCIE_MOBIVEIL_HOST
+	help
+	  Say Y here if you want PCIe Gen4 controller support on
+	  Layerscape SoCs. The PCIe controller can work in RC or
+	  EP mode according to RCW[HOST_AGT_PEX] setting.
 endmenu
drivers/pci/controller/mobiveil/Makefile +1 -0
index 9fb6d1c6504d..99d879de32d6 100644
@@ -2,3 +2,4 @@
 obj-$(CONFIG_PCIE_MOBIVEIL) += pcie-mobiveil.o
 obj-$(CONFIG_PCIE_MOBIVEIL_HOST) += pcie-mobiveil-host.o
 obj-$(CONFIG_PCIE_MOBIVEIL_PLAT) += pcie-mobiveil-plat.o
+obj-$(CONFIG_PCIE_LAYERSCAPE_GEN4) += pcie-layerscape-gen4.o
drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c new file +255 -0

255 lines not on this page · raw message

drivers/pci/controller/mobiveil/pcie-mobiveil.h +14 -2
index a729a4f879fe..9258cef575cd 100644
@@ -43,6 +43,8 @@
 #define  PAGE_LO_MASK			0x3ff
 #define  PAGE_SEL_OFFSET_SHIFT		10
 
+#define PAB_ACTIVITY_STAT		0x81c
+
 #define PAB_AXI_PIO_CTRL		0x0840
 #define  APIO_EN_MASK			0xf
 
@@ -51,8 +53,18 @@
 
 #define PAB_INTP_AMBA_MISC_ENB		0x0b0c
 #define PAB_INTP_AMBA_MISC_STAT		0x0b1c
-#define  PAB_INTP_INTX_MASK		0x01e0
-#define  PAB_INTP_MSI_MASK		0x8
+#define  PAB_INTP_RESET			BIT(1)
+#define  PAB_INTP_MSI			BIT(3)
+#define  PAB_INTP_INTA			BIT(5)
+#define  PAB_INTP_INTB			BIT(6)
+#define  PAB_INTP_INTC			BIT(7)
+#define  PAB_INTP_INTD			BIT(8)
+#define  PAB_INTP_PCIE_UE		BIT(9)
+#define  PAB_INTP_IE_PMREDI		BIT(29)
+#define  PAB_INTP_IE_EC			BIT(30)
+#define  PAB_INTP_MSI_MASK		PAB_INTP_MSI
+#define  PAB_INTP_INTX_MASK		(PAB_INTP_INTA | PAB_INTP_INTB |\
+					PAB_INTP_INTC | PAB_INTP_INTD)
 
 #define PAB_AXI_AMAP_CTRL(win)		PAB_REG_ADDR(0x0ba0, win)
 #define  WIN_ENABLE_SHIFT		0
Signature · 1 line
2.17.1
author maintainer
#5 lore raw

PATCH v6 5/6 arm64: dts: lx2160a: Add PCIe controller DT nodes

In reply to Z.q. Hou

From: Hou Zhiqiang <[email protected]>

The LX2160A integrated 6 PCIe Gen4 controllers.

---
V6:
- No change.

 .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163 ++++++++++++++++++
 1 file changed, 163 insertions(+)
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +163 -0
index 125a8cc2c5b3..7a2b91ff1fbc 100644
@@ -964,5 +964,168 @@
 				};
 			};
 		};
+
+		pcie@3400000 {
+			compatible = "fsl,lx2160a-pcie";
+			reg = <0x00 0x03400000 0x0 0x00100000   /* controller registers */
+			       0x80 0x00000000 0x0 0x00001000>; /* configuration space */
+			reg-names = "csr_axi_slave", "config_axi_slave";
+			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+				     <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+				     <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+			interrupt-names = "aer", "pme", "intr";
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			dma-coherent;
+			apio-wins = <8>;
+			ppio-wins = <8>;
+			bus-range = <0x0 0xff>;
+			ranges = <0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+			msi-parent = <&its>;
+			#interrupt-cells = <1>;
+			interrupt-map-mask = <0 0 0 7>;
+			interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 2 &gic 0 0 GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 3 &gic 0 0 GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 4 &gic 0 0 GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
+		pcie@3500000 {
+			compatible = "fsl,lx2160a-pcie";
+			reg = <0x00 0x03500000 0x0 0x00100000   /* controller registers */
+			       0x88 0x00000000 0x0 0x00001000>; /* configuration space */
+			reg-names = "csr_axi_slave", "config_axi_slave";
+			interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+				     <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+				     <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+			interrupt-names = "aer", "pme", "intr";
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			dma-coherent;
+			apio-wins = <8>;
+			ppio-wins = <8>;
+			bus-range = <0x0 0xff>;
+			ranges = <0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+			msi-parent = <&its>;
+			#interrupt-cells = <1>;
+			interrupt-map-mask = <0 0 0 7>;
+			interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 2 &gic 0 0 GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 3 &gic 0 0 GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 4 &gic 0 0 GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
+		pcie@3600000 {
+			compatible = "fsl,lx2160a-pcie";
+			reg = <0x00 0x03600000 0x0 0x00100000   /* controller registers */
+			       0x90 0x00000000 0x0 0x00001000>; /* configuration space */
+			reg-names = "csr_axi_slave", "config_axi_slave";
+			interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+				     <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+				     <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+			interrupt-names = "aer", "pme", "intr";
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			dma-coherent;
+			apio-wins = <256>;
+			ppio-wins = <24>;
+			bus-range = <0x0 0xff>;
+			ranges = <0x82000000 0x0 0x40000000 0x90 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+			msi-parent = <&its>;
+			#interrupt-cells = <1>;
+			interrupt-map-mask = <0 0 0 7>;
+			interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 2 &gic 0 0 GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 3 &gic 0 0 GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 4 &gic 0 0 GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
+		pcie@3700000 {
+			compatible = "fsl,lx2160a-pcie";
+			reg = <0x00 0x03700000 0x0 0x00100000   /* controller registers */
+			       0x98 0x00000000 0x0 0x00001000>; /* configuration space */
+			reg-names = "csr_axi_slave", "config_axi_slave";
+			interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+				     <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+				     <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+			interrupt-names = "aer", "pme", "intr";
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			dma-coherent;
+			apio-wins = <8>;
+			ppio-wins = <8>;
+			bus-range = <0x0 0xff>;
+			ranges = <0x82000000 0x0 0x40000000 0x98 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+			msi-parent = <&its>;
+			#interrupt-cells = <1>;
+			interrupt-map-mask = <0 0 0 7>;
+			interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 2 &gic 0 0 GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 3 &gic 0 0 GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 4 &gic 0 0 GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
+		pcie@3800000 {
+			compatible = "fsl,lx2160a-pcie";
+			reg = <0x00 0x03800000 0x0 0x00100000   /* controller registers */
+			       0xa0 0x00000000 0x0 0x00001000>; /* configuration space */
+			reg-names = "csr_axi_slave", "config_axi_slave";
+			interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+				     <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+				     <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+			interrupt-names = "aer", "pme", "intr";
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			dma-coherent;
+			apio-wins = <256>;
+			ppio-wins = <24>;
+			bus-range = <0x0 0xff>;
+			ranges = <0x82000000 0x0 0x40000000 0xa0 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+			msi-parent = <&its>;
+			#interrupt-cells = <1>;
+			interrupt-map-mask = <0 0 0 7>;
+			interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 2 &gic 0 0 GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 3 &gic 0 0 GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 4 &gic 0 0 GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
+		pcie@3900000 {
+			compatible = "fsl,lx2160a-pcie";
+			reg = <0x00 0x03900000 0x0 0x00100000   /* controller registers */
+			       0xa8 0x00000000 0x0 0x00001000>; /* configuration space */
+			reg-names = "csr_axi_slave", "config_axi_slave";
+			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+				     <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+				     <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+			interrupt-names = "aer", "pme", "intr";
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			dma-coherent;
+			apio-wins = <8>;
+			ppio-wins = <8>;
+			bus-range = <0x0 0xff>;
+			ranges = <0x82000000 0x0 0x40000000 0xa8 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+			msi-parent = <&its>;
+			#interrupt-cells = <1>;
+			interrupt-map-mask = <0 0 0 7>;
+			interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 2 &gic 0 0 GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 3 &gic 0 0 GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
+					<0000 0 0 4 &gic 0 0 GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
 	};
 };
Signature · 1 line
2.17.1
#6 lore raw

Re: [PATCHv6 5/6] arm64: dts: lx2160a: Add PCIe controller DT nodes

Hi Hou Zhiqiang
Two instances [@3600000 and @3800000] of the six has a different
window count, the RC can not have more than 8 windows. apio-wins = <256>; //Can we change it to 8
ppio-wins = <24>; //Can we change it to 8

Quoted 190 lines · Z.q. Hou

From: Hou Zhiqiang <[email protected]>

The LX2160A integrated 6 PCIe Gen4 controllers.

---
V6:
- No change.

 .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163 ++++++++++++++++++
 1 file changed, 163 insertions(+)
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +163 -1
index 125a8cc2c5b3..7a2b91ff1fbc 100644
@@ -964,5 +964,168 @@
                                };
                        };
                };
+
+               pcie@3400000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03400000 0x0 0x00100000   /* controller registers */
+                              0x80 0x00000000 0x0 0x00001000>; /* configuration space */
+                       reg-names = "csr_axi_slave", "config_axi_slave";
+                       interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+                                    <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+                                    <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 2 &gic 0 0 GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 3 &gic 0 0 GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 4 &gic 0 0 GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               pcie@3500000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03500000 0x0 0x00100000   /* controller registers */
+                              0x88 0x00000000 0x0 0x00001000>; /* configuration space */
+                       reg-names = "csr_axi_slave", "config_axi_slave";
+                       interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+                                    <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+                                    <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 2 &gic 0 0 GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 3 &gic 0 0 GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 4 &gic 0 0 GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               pcie@3600000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03600000 0x0 0x00100000   /* controller registers */
+                              0x90 0x00000000 0x0 0x00001000>; /* configuration space */
+                       reg-names = "csr_axi_slave", "config_axi_slave";
+                       interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+                                    <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+                                    <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <256>;
+                       ppio-wins = <24>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x90 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 2 &gic 0 0 GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 3 &gic 0 0 GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 4 &gic 0 0 GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               pcie@3700000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03700000 0x0 0x00100000   /* controller registers */
+                              0x98 0x00000000 0x0 0x00001000>; /* configuration space */
+                       reg-names = "csr_axi_slave", "config_axi_slave";
+                       interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+                                    <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+                                    <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x98 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 2 &gic 0 0 GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 3 &gic 0 0 GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 4 &gic 0 0 GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               pcie@3800000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03800000 0x0 0x00100000   /* controller registers */
+                              0xa0 0x00000000 0x0 0x00001000>; /* configuration space */
+                       reg-names = "csr_axi_slave", "config_axi_slave";
+                       interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+                                    <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+                                    <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <256>;
+                       ppio-wins = <24>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0xa0 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 2 &gic 0 0 GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 3 &gic 0 0 GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 4 &gic 0 0 GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
+               pcie@3900000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03900000 0x0 0x00100000   /* controller registers */
+                              0xa8 0x00000000 0x0 0x00001000>; /* configuration space */
+                       reg-names = "csr_axi_slave", "config_axi_slave";
+                       interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */
+                                    <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
+                                    <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0xa8 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 2 &gic 0 0 GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 3 &gic 0 0 GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0000 0 0 4 &gic 0 0 GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
+
        };
 };
--

2.17.1

Signature · 11 lines
Thanks,
Regards,
Karthikeyan Mitran

-- 
Mobiveil INC., CONFIDENTIALITY NOTICE: This e-mail message, including any 
attachments, is for the sole use of the intended recipient(s) and may 
contain proprietary confidential or privileged information or otherwise be 
protected by law. Any unauthorized review, use, disclosure or distribution 
is prohibited. If you are not the intended recipient, please notify the 
sender and destroy all copies and the original message.
author maintainer
#7 lore raw

RE: [PATCHv6 5/6] arm64: dts: lx2160a: Add PCIe controller DT nodes

Hi Karthikeyan,

Thanks a lot for your comments!

Quoted 14 lines

-----Original Message-----
From: Karthikeyan Mitran [mailto:[email protected]]
Sent: 2019年6月3日 13:13
To: Z.q. Hou <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Leo Li <[email protected]>; [email protected]; [email protected]; [email protected]; Mingkai Hu <[email protected]>; M.h. Lian <[email protected]>; Xiaowei Bao <[email protected]>
Subject: Re: [PATCHv6 5/6] arm64: dts: lx2160a: Add PCIe controller DT nodes

Quoted 6 lines

Hi Hou Zhiqiang
Two instances [@3600000 and @3800000] of the six has a different
window count, the RC can not have more than 8 windows. apio-wins = <256>; //Can we change it to 8
ppio-wins = <24>; //Can we change it to 8

I checked with hardware team, the PCIe controllers @3600000 and @3800000 support up to x8 and SRIOV, these 2 controllers have different number of inbound and outbound windows from the other 4 PCIe controllers which are support up to x4 and not support SRIOV.

Quoted 266 lines · Z.q. Hou
Quoted 21 lines

From: Hou Zhiqiang <[email protected]>

The LX2160A integrated 6 PCIe Gen4 controllers.

---
V6:
- No change.

 .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163
++++++++++++++++++
 1 file changed, 163 insertions(+)
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +0 -0
index 125a8cc2c5b3..7a2b91ff1fbc 100644

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 970

Quoted 7 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +4 -0
@@ -964,5 +964,168 @@
                                };
                        };
                };
+
+               pcie@3400000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03400000 0x0 0x00100000

/* controller registers */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 971

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                              0x80 0x00000000 0x0 0x00001000>;

/* configuration space */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 972

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       reg-names = "csr_axi_slave",

"config_axi_slave";

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 973

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       interrupts = <GIC_SPI 108

IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 974

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 108

IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 975

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 108

IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 9 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +9 -0
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x80

0x40000000 0x0 0x40000000>; /* non-prefetchable memory */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +4 -0
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI

109 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 989

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 2 &gic 0 0

GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 990

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 3 &gic 0 0

GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 991

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 4 &gic 0 0

GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +6 -0
+                       status = "disabled";
+               };
+
+               pcie@3500000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03500000 0x0 0x00100000

/* controller registers */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 998

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                              0x88 0x00000000 0x0 0x00001000>;

/* configuration space */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 999

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       reg-names = "csr_axi_slave",

"config_axi_slave";

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1000

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       interrupts = <GIC_SPI 113

IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1001

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 113

IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1002

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 113

IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 9 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +9 -0
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x88

0x40000000 0x0 0x40000000>; /* non-prefetchable memory */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +4 -0
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI

114 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1016

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 2 &gic 0 0

GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1017

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 3 &gic 0 0

GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1018

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 4 &gic 0 0

GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +6 -0
+                       status = "disabled";
+               };
+
+               pcie@3600000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03600000 0x0 0x00100000

/* controller registers */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1025

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                              0x90 0x00000000 0x0 0x00001000>;

/* configuration space */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1026

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       reg-names = "csr_axi_slave",

"config_axi_slave";

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1027

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       interrupts = <GIC_SPI 118

IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1028

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 118

IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1029

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 118

IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 9 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +9 -0
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <256>;
+                       ppio-wins = <24>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x90

0x40000000 0x0 0x40000000>; /* non-prefetchable memory */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +4 -0
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI

119 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1043

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 2 &gic 0 0

GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1044

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 3 &gic 0 0

GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1045

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 4 &gic 0 0

GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +6 -0
+                       status = "disabled";
+               };
+
+               pcie@3700000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03700000 0x0 0x00100000

/* controller registers */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1052

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                              0x98 0x00000000 0x0 0x00001000>;

/* configuration space */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1053

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       reg-names = "csr_axi_slave",

"config_axi_slave";

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1054

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       interrupts = <GIC_SPI 123

IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1055

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 123

IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1056

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 123

IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 9 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +9 -0
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0x98

0x40000000 0x0 0x40000000>; /* non-prefetchable memory */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +4 -0
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI

124 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1070

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 2 &gic 0 0

GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1071

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 3 &gic 0 0

GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1072

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 4 &gic 0 0

GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +6 -0
+                       status = "disabled";
+               };
+
+               pcie@3800000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03800000 0x0 0x00100000

/* controller registers */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1079

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                              0xa0 0x00000000 0x0 0x00001000>;

/* configuration space */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1080

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       reg-names = "csr_axi_slave",

"config_axi_slave";

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1081

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       interrupts = <GIC_SPI 128

IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1082

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 128

IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1083

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 128

IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 9 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +9 -0
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <256>;
+                       ppio-wins = <24>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0xa0

0x40000000 0x0 0x40000000>; /* non-prefetchable memory */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +4 -0
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI

129 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1097

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 2 &gic 0 0

GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1098

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 3 &gic 0 0

GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1099

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 4 &gic 0 0

GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +6 -0
+                       status = "disabled";
+               };
+
+               pcie@3900000 {
+                       compatible = "fsl,lx2160a-pcie";
+                       reg = <0x00 0x03900000 0x0 0x00100000

/* controller registers */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1106

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                              0xa8 0x00000000 0x0 0x00001000>;

/* configuration space */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1107

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       reg-names = "csr_axi_slave",

"config_axi_slave";

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1108

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                       interrupts = <GIC_SPI 103

IRQ_TYPE_LEVEL_HIGH>, /* AER interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1109

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 103

IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1110

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                    <GIC_SPI 103

IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 9 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +9 -0
+                       interrupt-names = "aer", "pme", "intr";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       apio-wins = <8>;
+                       ppio-wins = <8>;
+                       bus-range = <0x0 0xff>;
+                       ranges = <0x82000000 0x0 0x40000000 0xa8

0x40000000 0x0 0x40000000>; /* non-prefetchable memory */

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +4 -0
+                       msi-parent = <&its>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 7>;
+                       interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI

104 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1124

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 2 &gic 0 0

GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1125

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 3 &gic 0 0

GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi line 1126

Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +1 -0
+                                       <0000 0 0 4 &gic 0 0

GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;

Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +3 -1
+                       status = "disabled";
+               };
+
        };
 };
--

2.17.1

--
Thanks,
Regards,
Karthikeyan Mitran

Quoted 7 lines

--
Mobiveil INC., CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain proprietary confidential or privileged information or otherwise be protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender and destroy all copies and the original message.

Thanks,
Zhiqiang

author maintainer
#8 lore raw

PATCH v6 6/6 arm64: defconfig: Enable CONFIG_PCIE_LAYERSCAPE_GEN4

In reply to Z.q. Hou

From: Hou Zhiqiang <[email protected]>

Enable the PCIe Gen4 controller driver for Layerscape SoCs.

---
V6:
- Change the macro name to CONFIG_PCIE_LAYERSCAPE_GEN4.

 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index e1a84db2bd7b..6821452a15f9 100644
@@ -191,6 +191,7 @@ CONFIG_PCI_HOST_THUNDER_PEM=y
 CONFIG_PCI_HOST_THUNDER_ECAM=y
 CONFIG_PCIE_ROCKCHIP_HOST=m
 CONFIG_PCI_LAYERSCAPE=y
+CONFIG_PCIE_LAYERSCAPE_GEN4=y
 CONFIG_PCI_HISI=y
 CONFIG_PCIE_QCOM=y
 CONFIG_PCIE_ARMADA_8K=y
Signature · 1 line
2.17.1