From 1dad1fbe4c5fb50e3f1672348de4a2b50ffd6ff1 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Thu, 24 Dec 2015 09:21:45 +0100 Subject: [PATCH] ARM: socfpga: Enable PCIe support Add DT bits to enable PCIe support on the DENX MCV EVK with MCV SoM. Signed-off-by: Marek Vasut Cc: Alan Tull Cc: Dinh Nguyen Cc: Olof Johansson Cc: Steffen Trumtrar Cc: Thor Thayer Cc: Vince Bridgers --- arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts b/arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts index 7186a29..e56e23e 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts @@ -29,6 +29,40 @@ chosen { stdout-path = "serial0:115200n8"; }; + + pcie_0: pcie@0xc00000000 { + compatible = "altr,pcie-root-port-1.0"; + reg = <0xc0000000 0x20000000>, + <0xff220000 0x00004000>; + reg-names = "Txs", "Cra"; + interrupt-parent = <&intc>; + interrupts = <0 40 4>; + interrupt-controller; + #interrupt-cells = <1>; + bus-range = <0x0 0xFF>; + device_type = "pci"; + msi-parent = <&msi0>; + #address-cells = <3>; + #size-cells = <2>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_0 1>, + <0 0 0 2 &pcie_0 2>, + <0 0 0 3 &pcie_0 3>, + <0 0 0 4 &pcie_0 4>; + ranges = <0x82000000 0x00000000 0xc0000000 0xc0000000 0x00000000 0x10000000 + 0x82000000 0x00000000 0xd0000000 0xd0000000 0x00000000 0x10000000>; + }; + + msi0: msi@0xFF200000 { + compatible = "altr,msi-1.0"; + reg = <0xFF200080 0x00000010 + 0xFF200000 0x00000080>; + reg-names = "csr", "vector_slave"; + interrupt-parent = <&intc>; + interrupts = <0 41 4>; + msi-controller; + num-vectors = <32>; + }; }; &can0 { -- 2.1.4