layerscape: add LS1043A Rev1.1 support
[openwrt/staging/yousong.git] / target / linux / layerscape / patches-4.4 / 0240-ARM-dts-ls1021a-add-SCFG-MSI-dts-node.patch
1 From b57dcab78fdc76a6c56c2df71518fb022429e244 Mon Sep 17 00:00:00 2001
2 From: Minghuan Lian <Minghuan.Lian@nxp.com>
3 Date: Wed, 6 Apr 2016 19:02:07 +0800
4 Subject: [PATCH 02/13] ARM: dts: ls1021a: add SCFG MSI dts node
5
6 Cherry-pick upstream patch.
7
8 Add SCFG MSI dts node and add msi-parent property to PCIe dts node
9 that points to the corresponding MSI node.
10
11 Signed-off-by: Minghuan Lian <Minghuan.Lian@nxp.com>
12 Tested-by: Alexander Stein <alexander.stein@systec-electronic.com>
13 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
14 ---
15 arch/arm/boot/dts/ls1021a.dtsi | 16 ++++++++++++++++
16 1 file changed, 16 insertions(+)
17
18 diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
19 index 38272d0..527f653 100644
20 --- a/arch/arm/boot/dts/ls1021a.dtsi
21 +++ b/arch/arm/boot/dts/ls1021a.dtsi
22 @@ -119,6 +119,20 @@
23
24 };
25
26 + msi1: msi-controller@1570e00 {
27 + compatible = "fsl,1s1021a-msi";
28 + reg = <0x0 0x1570e00 0x0 0x8>;
29 + msi-controller;
30 + interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
31 + };
32 +
33 + msi2: msi-controller@1570e08 {
34 + compatible = "fsl,1s1021a-msi";
35 + reg = <0x0 0x1570e08 0x0 0x8>;
36 + msi-controller;
37 + interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
38 + };
39 +
40 ifc: ifc@1530000 {
41 compatible = "fsl,ifc", "simple-bus";
42 reg = <0x0 0x1530000 0x0 0x10000>;
43 @@ -554,6 +568,7 @@
44 bus-range = <0x0 0xff>;
45 ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
46 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
47 + msi-parent = <&msi1>;
48 #interrupt-cells = <1>;
49 interrupt-map-mask = <0 0 0 7>;
50 interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
51 @@ -576,6 +591,7 @@
52 bus-range = <0x0 0xff>;
53 ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
54 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
55 + msi-parent = <&msi2>;
56 #interrupt-cells = <1>;
57 interrupt-map-mask = <0 0 0 7>;
58 interrupt-map = <0000 0 0 1 &gic GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
59 --
60 2.1.0.27.g96db324
61