layerscape: add LS1043A Rev1.1 support
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 0239-ARM-dts-ls1021a-add-PCIe-dts-node.patch
1 From 1f58043afef0dca3d12dc23ac3a35d7074412939 Mon Sep 17 00:00:00 2001
2 From: Minghuan Lian <Minghuan.Lian@nxp.com>
3 Date: Tue, 2 Feb 2016 16:30:07 +0800
4 Subject: [PATCH 01/13] ARM: dts: ls1021a: add PCIe dts node
5
6 Cherry-pick upstream patch.
7
8 LS1021a contains two PCIe controllers. The patch adds their node to
9 dts file.
10
11 Signed-off-by: Minghuan Lian <Minghuan.Lian@nxp.com>
12 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
13 ---
14 arch/arm/boot/dts/ls1021a.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++++
15 1 file changed, 44 insertions(+)
16
17 diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
18 index 9430a99..38272d0 100644
19 --- a/arch/arm/boot/dts/ls1021a.dtsi
20 +++ b/arch/arm/boot/dts/ls1021a.dtsi
21 @@ -539,5 +539,49 @@
22 dr_mode = "host";
23 snps,quirk-frame-length-adjustment = <0x20>;
24 };
25 +
26 + pcie@3400000 {
27 + compatible = "fsl,ls1021a-pcie", "snps,dw-pcie";
28 + reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */
29 + 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
30 + reg-names = "regs", "config";
31 + interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
32 + fsl,pcie-scfg = <&scfg 0>;
33 + #address-cells = <3>;
34 + #size-cells = <2>;
35 + device_type = "pci";
36 + num-lanes = <4>;
37 + bus-range = <0x0 0xff>;
38 + ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
39 + 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
40 + #interrupt-cells = <1>;
41 + interrupt-map-mask = <0 0 0 7>;
42 + interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
43 + <0000 0 0 2 &gic GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>,
44 + <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
45 + <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
46 + };
47 +
48 + pcie@3500000 {
49 + compatible = "fsl,ls1021a-pcie", "snps,dw-pcie";
50 + reg = <0x00 0x03500000 0x0 0x00010000 /* controller registers */
51 + 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
52 + reg-names = "regs", "config";
53 + interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
54 + fsl,pcie-scfg = <&scfg 1>;
55 + #address-cells = <3>;
56 + #size-cells = <2>;
57 + device_type = "pci";
58 + num-lanes = <4>;
59 + bus-range = <0x0 0xff>;
60 + ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
61 + 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
62 + #interrupt-cells = <1>;
63 + interrupt-map-mask = <0 0 0 7>;
64 + interrupt-map = <0000 0 0 1 &gic GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
65 + <0000 0 0 2 &gic GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
66 + <0000 0 0 3 &gic GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
67 + <0000 0 0 4 &gic GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
68 + };
69 };
70 };
71 --
72 2.1.0.27.g96db324
73