Change the PCIe INTx mapping to model the 4 INTx interrupts in the
IRQ domain of the iProc PCIe controller itself

Signed-off-by: Ray Jui <ray....@broadcom.com>
---
 arch/arm/boot/dts/bcm-nsp.dtsi | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi
index dcc55aa..8c4c8b2 100644
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
@@ -494,9 +494,14 @@
                compatible = "brcm,iproc-pcie";
                reg = <0x18012000 0x1000>;
 
+               interrupt-controller;
                #interrupt-cells = <1>;
-               interrupt-map-mask = <0 0 0 0>;
-               interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_NONE>;
+               interrupt-map-mask = <0 0 0 7>;
+               interrupt-map = <0 0 0 1 &pcie0 1>,
+                               <0 0 0 2 &pcie0 2>,
+                               <0 0 0 3 &pcie0 3>,
+                               <0 0 0 4 &pcie0 4>;
+               interrupts = <GIC_SPI 131 IRQ_TYPE_NONE>;
 
                linux,pci-domain = <0>;
 
@@ -531,9 +536,14 @@
                compatible = "brcm,iproc-pcie";
                reg = <0x18013000 0x1000>;
 
+               interrupt-controller;
                #interrupt-cells = <1>;
-               interrupt-map-mask = <0 0 0 0>;
-               interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_NONE>;
+               interrupt-map-mask = <0 0 0 7>;
+               interrupt-map = <0 0 0 1 &pcie1 1>,
+                               <0 0 0 2 &pcie1 2>,
+                               <0 0 0 3 &pcie1 3>,
+                               <0 0 0 4 &pcie1 4>;
+               interrupts = <GIC_SPI 137 IRQ_TYPE_NONE>;
 
                linux,pci-domain = <1>;
 
@@ -568,9 +578,14 @@
                compatible = "brcm,iproc-pcie";
                reg = <0x18014000 0x1000>;
 
+               interrupt-controller;
                #interrupt-cells = <1>;
-               interrupt-map-mask = <0 0 0 0>;
-               interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_NONE>;
+               interrupt-map-mask = <0 0 0 7>;
+               interrupt-map = <0 0 0 1 &pcie2 1>,
+                               <0 0 0 2 &pcie2 2>,
+                               <0 0 0 3 &pcie2 3>,
+                               <0 0 0 4 &pcie2 4>;
+               interrupts = <GIC_SPI 143 IRQ_TYPE_NONE>;
 
                linux,pci-domain = <2>;
 
-- 
2.1.4

Reply via email to