Altera PCIe host controller driver with MSI support
v4 cover Altera PCIe host controller driver with MSI support
This is the 4th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resolve comments from Marc Zyngier in v3.
It is based on patch series from Marc Zyngier "Per-device MSI domain & platform MSI" [1] to get rid of struct msi_controller.
v3->v4 changes:
- pcie-altera: change to incremental count for loop
- pcie-altera: add udelay when polling
- pcie-altera: return -ENOMEM for irq_domain_add_linear error
- pcie-altera-msi: add WARN_ON(nr_irq) != 1
- update error handling for platform_get_resource_byname
History:
-------
[v1]: https://lkml.org/lkml/2015/7/28/395
[v2]: https://lkml.org/lkml/2015/7/31/267
[v3]: http://www.kernelhub.org/?msg=811940&p=2
Ley Foon Tan (5):
arm: add msi.h to Kbuild
pci:host: Add Altera PCIe host controller driver
pci: altera: Add Altera PCIe MSI driver
Documentation: dt-bindings: pci: altera pcie device tree binding
MAINTAINERS: Add Altera PCIe and MSI drivers maintainer
.../devicetree/bindings/pci/altera-pcie-msi.txt | 27 + .../devicetree/bindings/pci/altera-pcie.txt | 49 ++ MAINTAINERS | 16 + arch/arm/include/asm/Kbuild | 1 + drivers/pci/host/Kconfig | 15 + drivers/pci/host/Makefile | 2 + drivers/pci/host/pcie-altera-msi.c | 322 ++++++++++++ drivers/pci/host/pcie-altera.c | 543 +++++++++++++++++++++ 8 files changed, 975 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt create mode 100644 drivers/pci/host/pcie-altera-msi.c create mode 100644 drivers/pci/host/pcie-altera.c
Signature · 1 line
1.8.2.1
PATCH v4 1/5 arm: add msi.h to Kbuild
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error:
"include/linux/msi.h:123:21: fatal error: asm/msi.h:
No such file or directory"
--- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+)
arch/arm/include/asm/Kbuild +1 -0
@@ -14,6 +14,7 @@ generic-y += local.h generic-y += local64.h generic-y += mcs_spinlock.h generic-y += msgbuf.h +generic-y += msi.h generic-y += param.h generic-y += parport.h generic-y += poll.h
Signature · 1 line
1.8.2.1
PATCH v4 2/5 pci:host: Add Altera PCIe host controller driver
In reply to Ley Foon TanThis patch adds the Altera PCIe host controller driver.
--- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 543 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 551 insertions(+) create mode 100644 drivers/pci/host/pcie-altera.c
drivers/pci/host/Kconfig +7 -0
@@ -145,4 +145,11 @@ config PCIE_IPROC_BCMA Say Y here if you want to use the Broadcom iProc PCIe controller through the BCMA bus interface +config PCIE_ALTERA + tristate "Altera PCIe controller" + depends on ARCH_SOCFPGA + help + Say Y here if you want to enable PCIe controller support for Altera + SoCFPGA family of SoCs. + endmenu
drivers/pci/host/Makefile +1 -0
@@ -17,3 +17,4 @@ obj-$(CONFIG_PCI_VERSATILE) += pci-versatile.o obj-$(CONFIG_PCIE_IPROC) += pcie-iproc.o obj-$(CONFIG_PCIE_IPROC_PLATFORM) += pcie-iproc-platform.o obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-iproc-bcma.o +obj-$(CONFIG_PCIE_ALTERA) += pcie-altera.o
drivers/pci/host/pcie-altera.c new file +543 -0
543 lines not on this page · raw message
Signature · 1 line
1.8.2.1
PATCH v4 3/5 pci: altera: Add Altera PCIe MSI driver
In reply to Ley Foon TanThis patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter.
--- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera-msi.c | 322 +++++++++++++++++++++++++++++++++++++ 3 files changed, 331 insertions(+) create mode 100644 drivers/pci/host/pcie-altera-msi.c
drivers/pci/host/Kconfig +8 -0
@@ -152,4 +152,12 @@ config PCIE_ALTERA Say Y here if you want to enable PCIe controller support for Altera SoCFPGA family of SoCs. +config PCIE_ALTERA_MSI + bool "Altera PCIe MSI feature" + depends on PCI_MSI + select PCI_MSI_IRQ_DOMAIN + help + Say Y here if you want PCIe MSI support for the Altera SocFPGA SoC. + This MSI driver supports Altera MSI to GIC controller IP. + endmenu
drivers/pci/host/Makefile +1 -0
@@ -18,3 +18,4 @@ obj-$(CONFIG_PCIE_IPROC) += pcie-iproc.o obj-$(CONFIG_PCIE_IPROC_PLATFORM) += pcie-iproc-platform.o obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-iproc-bcma.o obj-$(CONFIG_PCIE_ALTERA) += pcie-altera.o +obj-$(CONFIG_PCIE_ALTERA_MSI) += pcie-altera-msi.o
drivers/pci/host/pcie-altera-msi.c new file +322 -0
322 lines not on this page · raw message
Signature · 1 line
1.8.2.1
PATCH v4 4/5 Documentation: dt-bindings: pci: altera pcie device tree binding
In reply to Ley Foon TanThis patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver.
--- .../devicetree/bindings/pci/altera-pcie-msi.txt | 27 ++++++++++++ .../devicetree/bindings/pci/altera-pcie.txt | 49 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +27 -0
@@ -0,0 +1,27 @@ +* Altera PCIe MSI controller + +Required properties: +- compatible: should contain "altr,msi-1.0" +- reg: specifies the physical base address of the controller and + the length of the memory mapped region. +- reg-names: Must include the following entries: + "csr": CSR registers + "vector_slave": vectors region +-interrupts: specifies the interrupt source of the parent interrupt + controller. The format of the interrupt specifier depends on the + parent interrupt controller. +- num-vectors: Number of vectors, range 1 to 32. +- msi-controller: indicates that this is MSI controller node + + +Example +msi0: msi at 0xFF200000 { + compatible = "altr,msi-1.0"; + reg = <0xFF200000 0x00000010 + 0xFF200010 0x00000080>; + reg-names = "csr", "vector_slave"; + interrupt-parent = <&hps_0_arm_gic_0>; + interrupts = <0 42 4>; + msi-controller = <1>; + num-vectors = <32>; +};
Documentation/devicetree/bindings/pci/altera-pcie.txt new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
1.8.2.1
PATCH v4 5/5 MAINTAINERS: Add Altera PCIe and MSI drivers maintainer
In reply to Ley Foon Tan--- MAINTAINERS | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
MAINTAINERS +16 -0
@@ -7759,6 +7759,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86/kernel/quirks.c +PCI DRIVER FOR ALTERA PCIE IP +M: Ley Foon Tan <[email protected]> +L: rfi at lists.rocketboards.org (moderated for non-subscribers) +L: linux-pci at vger.kernel.org +S: Supported +F: Documentation/devicetree/bindings/pci/altera-pcie.txt +F: drivers/pci/host/pcie-altera.c + PCI DRIVER FOR ARM VERSATILE PLATFORM M: Rob Herring <[email protected]> L: linux-pci at vger.kernel.org
@@ -7860,6 +7868,14 @@ L: linux-pci at vger.kernel.org S: Maintained F: drivers/pci/host/*spear* +PCI MSI DRIVER FOR ALTERA MSI IP +M: Ley Foon Tan <[email protected]> +L: rfi at lists.rocketboards.org (moderated for non-subscribers) +L: linux-pci at vger.kernel.org +S: Supported +F: Documentation/devicetree/bindings/pci/altera-pcie-msi.txt +F: drivers/pci/host/pcie-altera-msi.c + PCI MSI DRIVER FOR APPLIEDMICRO XGENE M: Duc Dang <[email protected]> L: linux-pci at vger.kernel.org
Signature · 1 line
1.8.2.1
Re: [PATCH v4 2/5] pci:host: Add Altera PCIe host controller driver
In reply to Ley Foon TanQuoted 18 lines · Ley Foon Tan
This patch adds the Altera PCIe host controller driver.
Signed-off-by Ley Foon Tan <[email protected]>--- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 543 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 551 insertions(+) create mode 100644 drivers/pci/host/pcie-altera.cdrivers/pci/host/Kconfig +0
-0@@ -145,4 +145,11 @@ config PCIE_IPROC_BCMA Say Y here if you want to use the Broadcom iProc PCIe controller through the BCMA bus interface
<snip>
drivers/pci/host/Kconfig
Quoted 9 lines
drivers/pci/host/Kconfig +9
-0+ +/* Address translation table entry size */ +#define ATT_ENTRY_SIZE 8 + +#define DWORD_MASK 3 + +struct altera_pcie { + struct platform_device *pdev; + struct resource *txs;
You have "Txs" documented in the bindings document, you have a pointer here, but you've never used it
anywhre in the code? What is it for?
Quoted 8 lines
drivers/pci/host/Kconfig +8
-0+ void __iomem *cra_base; + int irq; + u8 root_bus_nr; + struct irq_domain *irq_domain; + struct resource bus_range; + struct list_head resources; +}; +
<snip>
Quoted 32 lines
drivers/pci/host/Kconfig +32
-0+ +static int tlp_cfg_dword_read(struct altera_pcie *pcie, u8 bus, u32 devfn, + int where, u32 *value) +{ + int ret; + u32 headers[TLP_HDR_SIZE]; + + if (bus == pcie->root_bus_nr) + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGRD0); + else + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGRD1); + + headers[1] = TLP_CFG_DW1(TLP_REQ_ID(pcie->root_bus_nr, devfn), + TLP_READ_TAG); + headers[2] = TLP_CFG_DW2(bus, devfn, where); + + tlp_write_packet(pcie, headers, 0); + + ret = tlp_read_packet(pcie, value); + if (ret) + *value = ~0UL; /* return 0xFFFFFFFF if error */ + + return ret; +} + +static int tlp_cfg_dword_write(struct altera_pcie *pcie, u8 bus, u32 devfn, + int where, u32 value) +{ + u32 headers[TLP_HDR_SIZE]; + + if (bus == pcie->root_bus_nr) + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGWR0);
drivers/pci/host/Kconfig
Quoted 10 lines
drivers/pci/host/Kconfig +10
-0+ else + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGWR1); + + headers[1] = TLP_CFG_DW1(TLP_REQ_ID(pcie->root_bus_nr, devfn), + TLP_WRITE_TAG); + headers[2] = TLP_CFG_DW2(bus, devfn, where); + + tlp_write_packet(pcie, headers, value); + + tlp_read_packet(pcie, NULL);
You need to check for the error here.
Quoted 8 lines
drivers/pci/host/Kconfig +8
-0+ + /* Keep an eye out for changes to the root bus number */ + if ((bus == pcie->root_bus_nr) && (where == PCI_PRIMARY_BUS)) + pcie->root_bus_nr = (u8)(value); + + return PCIBIOS_SUCCESSFUL; +} +
<snip>
Quoted 6 lines
drivers/pci/host/Kconfig +6
-0+ +static int altera_pcie_parse_dt(struct altera_pcie *pcie) +{ + struct resource *cra; + struct platform_device *pdev = pcie->pdev; +
drivers/pci/host/Kconfig
Quoted 10 lines
drivers/pci/host/Kconfig +10
-0+ cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "Cra"); + if (!cra) { + cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cra"); + if (!cra) { + dev_err(&pdev->dev, + "no cra memory resource defined\n"); + return -ENODEV; + } + } +
What about "Txs"?
Dinh
Re: [PATCH v4 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding
In reply to Ley Foon TanQuoted 17 lines · Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver.
Signed-off-by Ley Foon Tan <[email protected]>--- .../devicetree/bindings/pci/altera-pcie-msi.txt | 27 ++++++++++++ .../devicetree/bindings/pci/altera-pcie.txt | 49 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txtDocumentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +0
-0
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt line 9
Quoted 9 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +9
-0@@ -0,0 +1,27 @@ +* Altera PCIe MSI controller + +Required properties: +- compatible: should contain "altr,msi-1.0" +- reg: specifies the physical base address of the controller and + the length of the memory mapped region. +- reg-names: Must include the following entries: + "csr": CSR registers + "vector_slave": vectors region
Can you be a little bit more specific here? What is a vectors region? Also, I'm not 100% sure, but I think "vector-slave" should be used.
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt line 12
Quoted 3 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +3
-0+-interrupts: specifies the interrupt source of the parent interrupt + controller. The format of the interrupt specifier depends on the + parent interrupt controller.
Need to document "interrupt-parent" .
Quoted 21 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +15
-0+- num-vectors: Number of vectors, range 1 to 32. +- msi-controller: indicates that this is MSI controller node + + +Example +msi0: msi at 0xFF200000 { + compatible = "altr,msi-1.0"; + reg = <0xFF200000 0x00000010 + 0xFF200010 0x00000080>; + reg-names = "csr", "vector_slave"; + interrupt-parent = <&hps_0_arm_gic_0>; + interrupts = <0 42 4>; + msi-controller = <1>; + num-vectors = <32>; +};Documentation/devicetree/bindings/pci/altera-pcie.txt new file +0
-0
Documentation/devicetree/bindings/pci/altera-pcie.txt line 7
Quoted 7 lines
Documentation/devicetree/bindings/pci/altera-pcie.txt new file +7
-0@@ -0,0 +1,49 @@ +* Altera PCIe controller + +Required properties: +- compatible : should contain "altr,pcie-root-port-1.0" +- reg: A list of physical base address and length for TXS and CRA. +- reg-names: Must include the following entries: + "Txs" or "txs": TXS region
What is a TXS region?
Documentation/devicetree/bindings/pci/altera-pcie.txt line 20
Quoted 13 lines
Documentation/devicetree/bindings/pci/altera-pcie.txt new file +13
-0+ "Cra" or "cra": Control register access region +-interrupts: specifies the interrupt source of the parent interrupt controller. + The format of the interrupt specifier depends on the parent interrupt + controller. +- device_type: must be "pci" +- #address-cells: set to <3> +- #size-cells: set to <2> +- #interrupt-cells: set to <1> +- ranges: Describes the translation of addresses for root ports and standard + PCI regions. +- interrupt-map-mask and interrupt-map: standard PCI properties + to define the mapping of the PCIe interface to interrupt + numbers.
"interrupt-parent" ?
Dinh
Re: [PATCH v4 2/5] pci:host: Add Altera PCIe host controller driver
In reply to Dinh NguyenQuoted 23 lines · Dinh Nguyen
Quoted 18 lines · Ley Foon Tan
This patch adds the Altera PCIe host controller driver.
Signed-off-by Ley Foon Tan <[email protected]>--- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 543 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 551 insertions(+) create mode 100644 drivers/pci/host/pcie-altera.cdrivers/pci/host/Kconfig +0
-0@@ -145,4 +145,11 @@ config PCIE_IPROC_BCMA Say Y here if you want to use the Broadcom iProc PCIe controller through the BCMA bus interface<snip>
Quoted 13 lines
drivers/pci/host/Kconfig
Quoted 9 lines
drivers/pci/host/Kconfig +9
-0+ +/* Address translation table entry size */ +#define ATT_ENTRY_SIZE 8 + +#define DWORD_MASK 3 + +struct altera_pcie { + struct platform_device *pdev; + struct resource *txs;You have "Txs" documented in the bindings document, you have a pointer here, but you've never used it
anywhre in the code? What is it for?
Good catch. Forgot to remove this txs field here, we no longer require to keep this in struct.
Quoted 48 lines
Quoted 9 lines
drivers/pci/host/Kconfig +8
-0+ void __iomem *cra_base; + int irq; + u8 root_bus_nr; + struct irq_domain *irq_domain; + struct resource bus_range; + struct list_head resources; +}; +<snip>
Quoted 36 lines
drivers/pci/host/Kconfig +36
-0+ +static int tlp_cfg_dword_read(struct altera_pcie *pcie, u8 bus, u32 devfn, + int where, u32 *value) +{ + int ret; + u32 headers[TLP_HDR_SIZE]; + + if (bus == pcie->root_bus_nr) + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGRD0); + else + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGRD1); + + headers[1] = TLP_CFG_DW1(TLP_REQ_ID(pcie->root_bus_nr, devfn), + TLP_READ_TAG); + headers[2] = TLP_CFG_DW2(bus, devfn, where); + + tlp_write_packet(pcie, headers, 0); + + ret = tlp_read_packet(pcie, value); + if (ret) + *value = ~0UL; /* return 0xFFFFFFFF if error */ + + return ret; +} + +static int tlp_cfg_dword_write(struct altera_pcie *pcie, u8 bus, u32 devfn, + int where, u32 value) +{ + u32 headers[TLP_HDR_SIZE]; + + if (bus == pcie->root_bus_nr) + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGWR0); + else + headers[0] = TLP_CFG_DW0(TLP_FMTTYPE_CFGWR1); + + headers[1] = TLP_CFG_DW1(TLP_REQ_ID(pcie->root_bus_nr, devfn),
Quoted 8 lines
drivers/pci/host/Kconfig
Quoted 6 lines
drivers/pci/host/Kconfig +6
-0+ TLP_WRITE_TAG); + headers[2] = TLP_CFG_DW2(bus, devfn, where); + + tlp_write_packet(pcie, headers, value); + + tlp_read_packet(pcie, NULL);You need to check for the error here.
Okay.
Quoted 22 lines
Quoted 9 lines
drivers/pci/host/Kconfig +8
-0+ + /* Keep an eye out for changes to the root bus number */ + if ((bus == pcie->root_bus_nr) && (where == PCI_PRIMARY_BUS)) + pcie->root_bus_nr = (u8)(value); + + return PCIBIOS_SUCCESSFUL; +} +<snip>
Quoted 10 lines
drivers/pci/host/Kconfig +10
-0+ +static int altera_pcie_parse_dt(struct altera_pcie *pcie) +{ + struct resource *cra; + struct platform_device *pdev = pcie->pdev; + + cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "Cra"); + if (!cra) { + cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cra"); + if (!cra) {
Quoted 8 lines
drivers/pci/host/Kconfig
Quoted 6 lines
drivers/pci/host/Kconfig +6
-0+ dev_err(&pdev->dev, + "no cra memory resource defined\n"); + return -ENODEV; + } + } +What about "Txs"?
We doesn't need to get resource for "Txs" here. We use standard pci binding with "ranges" dts parameter to map the pci memory region. Our dts generator still will generate this "Txs" dts parameter, because it is one of Avalon slave port of PCIe IP.
Regards
Ley Foon
Re: [PATCH v4 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding
In reply to Dinh NguyenQuoted 22 lines · Dinh Nguyen
Quoted 21 lines · Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver.
Signed-off-by Ley Foon Tan <[email protected]>--- .../devicetree/bindings/pci/altera-pcie-msi.txt | 27 ++++++++++++ .../devicetree/bindings/pci/altera-pcie.txt | 49 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txtDocumentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +4
-0@@ -0,0 +1,27 @@ +* Altera PCIe MSI controller + +Required properties: +- compatible: should contain "altr,msi-1.0"
Quoted 8 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt line 9
Quoted 5 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +5
-0+- reg: specifies the physical base address of the controller and + the length of the memory mapped region. +- reg-names: Must include the following entries: + "csr": CSR registers + "vector_slave": vectors regionCan you be a little bit more specific here? What is a vectors region? Also, I'm not 100% sure, but I think "vector-slave" should be used.
This parameter is the Avalon slave name in MSI IP hardware. It is auto generated from dts generator.
I can add more description for it here.
Quoted 6 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt line 12
Quoted 4 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +3
-0+-interrupts: specifies the interrupt source of the parent interrupt + controller. The format of the interrupt specifier depends on the + parent interrupt controller.Need to document "interrupt-parent" .
Okay.
Quoted 23 lines
Quoted 23 lines
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +15
-0+- num-vectors: Number of vectors, range 1 to 32. +- msi-controller: indicates that this is MSI controller node + + +Example +msi0: msi at 0xFF200000 { + compatible = "altr,msi-1.0"; + reg = <0xFF200000 0x00000010 + 0xFF200010 0x00000080>; + reg-names = "csr", "vector_slave"; + interrupt-parent = <&hps_0_arm_gic_0>; + interrupts = <0 42 4>; + msi-controller = <1>; + num-vectors = <32>; +};Documentation/devicetree/bindings/pci/altera-pcie.txt new file +1
-0@@ -0,0 +1,49 @@ +* Altera PCIe controller
Quoted 8 lines
Documentation/devicetree/bindings/pci/altera-pcie.txt line 7
Quoted 6 lines
Documentation/devicetree/bindings/pci/altera-pcie.txt new file +6
-0+ +Required properties: +- compatible : should contain "altr,pcie-root-port-1.0" +- reg: A list of physical base address and length for TXS and CRA. +- reg-names: Must include the following entries: + "Txs" or "txs": TXS regionWhat is a TXS region?
It is TX slave port in PCIe IP. I can update this.
Quoted 15 lines
Quoted 4 lines
Documentation/devicetree/bindings/pci/altera-pcie.txt new file +3
-0+ "Cra" or "cra": Control register access region +-interrupts: specifies the interrupt source of the parent interrupt controller. + The format of the interrupt specifier depends on the parent interruptDocumentation/devicetree/bindings/pci/altera-pcie.txt line 20
Quoted 10 lines
Documentation/devicetree/bindings/pci/altera-pcie.txt new file +10
-0+ controller. +- device_type: must be "pci" +- #address-cells: set to <3> +- #size-cells: set to <2> +- #interrupt-cells: set to <1> +- ranges: Describes the translation of addresses for root ports and standard + PCI regions. +- interrupt-map-mask and interrupt-map: standard PCI properties + to define the mapping of the PCIe interface to interrupt + numbers.
Quoted 1 line
"interrupt-parent" ?
Will add it.
Thanks.
Regards
Ley Foon