From: Andrew Murray <andrew.murray@arm.com>
To: Tsahee Zidenberg <tsahee@annapurnalabs.com>,
Antoine Tenart <antoine.tenart@bootlin.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Jesper Nilsson <jesper.nilsson@axis.com>,
Lars Persson <lars.persson@axis.com>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Linus Walleij <linus.walleij@linaro.org>,
Santosh Shilimkar <ssantosh@kernel.org>,
Andy Gross <agross@kernel.org>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@axis.com, linux-arm-msm@vger.kernel.org
Subject: [PATCH v1 3/7] arm: dts: Use IRQ flags for legacy PCI IRQ interrupts
Date: Mon, 4 Nov 2019 16:38:17 +0000 [thread overview]
Message-ID: <20191104163834.8932-4-andrew.murray@arm.com> (raw)
In-Reply-To: <20191104163834.8932-1-andrew.murray@arm.com>
Replace magic numbers used to describe legacy PCI IRQ interrupts
with #define.
Signed-off-by: Andrew Murray <andrew.murray@arm.com>
---
arch/arm/boot/dts/alpine.dtsi | 6 ++--
arch/arm/boot/dts/artpec6.dtsi | 10 +++---
arch/arm/boot/dts/gemini-dlink-dir-685.dts | 34 ++++++++++----------
arch/arm/boot/dts/gemini-sl93512r.dts | 34 ++++++++++----------
arch/arm/boot/dts/gemini-sq201.dts | 34 ++++++++++----------
arch/arm/boot/dts/gemini-wbd111.dts | 34 ++++++++++----------
arch/arm/boot/dts/gemini-wbd222.dts | 34 ++++++++++----------
arch/arm/boot/dts/imx6qdl.dtsi | 10 +++---
arch/arm/boot/dts/imx6sx.dtsi | 10 +++---
arch/arm/boot/dts/integratorap.dts | 36 ++++++++++++----------
arch/arm/boot/dts/keystone-k2e.dtsi | 11 ++++---
arch/arm/boot/dts/keystone.dtsi | 10 +++---
arch/arm/boot/dts/qcom-apq8064.dtsi | 10 +++---
arch/arm/boot/dts/qcom-ipq4019.dtsi | 10 +++---
arch/arm/boot/dts/versatile-pb.dts | 36 ++++++++++++----------
15 files changed, 162 insertions(+), 157 deletions(-)
diff --git a/arch/arm/boot/dts/alpine.dtsi b/arch/arm/boot/dts/alpine.dtsi
index d3036ea823d1..51d8a7d1e569 100644
--- a/arch/arm/boot/dts/alpine.dtsi
+++ b/arch/arm/boot/dts/alpine.dtsi
@@ -152,10 +152,10 @@
#address-cells = <3>;
#interrupt-cells = <1>;
reg = <0x0 0xfbc00000 0x0 0x100000>;
- interrupt-map-mask = <0xf800 0 0 7>;
+ interrupt-map-mask = <0xf800 0 0 IRQ_INT_ALL>;
/* Add legacy interrupts for SATA devices only */
- interrupt-map = <0x4000 0 0 1 &gic 0 43 4>,
- <0x4800 0 0 1 &gic 0 44 4>;
+ interrupt-map = <0x4000 0 0 IRQ_INTA &gic 0 43 4>,
+ <0x4800 0 0 IRQ_INTA &gic 0 44 4>;
/* 32 bit non prefetchable memory space */
ranges = <0x02000000 0x0 0xfe000000 0x0 0xfe000000 0x0 0x1000000>;
diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi
index 037157e6c5ee..b2cf3d656ba4 100644
--- a/arch/arm/boot/dts/artpec6.dtsi
+++ b/arch/arm/boot/dts/artpec6.dtsi
@@ -177,11 +177,11 @@
interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi";
#interrupt-cells = <1>;
- interrupt-map-mask = <0 0 0 0x7>;
- interrupt-map = <0 0 0 1 &intc GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 2 &intc GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 3 &intc GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 4 &intc GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-map-mask = <0 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0 0 0 IRQ_INTA &intc GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTB &intc GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTC &intc GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTD &intc GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
axis,syscon-pcie = <&syscon>;
status = "disabled";
};
diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
index e2030ba16512..826022a9949b 100644
--- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts
+++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
@@ -407,24 +407,24 @@
pci@50000000 {
status = "okay";
- interrupt-map-mask = <0xf800 0 0 7>;
+ interrupt-map-mask = <0xf800 0 0 IRQ_INT_ALL>;
interrupt-map =
- <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
- <0x4800 0 0 2 &pci_intc 1>,
- <0x4800 0 0 3 &pci_intc 2>,
- <0x4800 0 0 4 &pci_intc 3>,
- <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
- <0x5000 0 0 2 &pci_intc 2>,
- <0x5000 0 0 3 &pci_intc 3>,
- <0x5000 0 0 4 &pci_intc 0>,
- <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
- <0x5800 0 0 2 &pci_intc 3>,
- <0x5800 0 0 3 &pci_intc 0>,
- <0x5800 0 0 4 &pci_intc 1>,
- <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
- <0x6000 0 0 2 &pci_intc 0>,
- <0x6000 0 0 3 &pci_intc 1>,
- <0x6000 0 0 4 &pci_intc 2>;
+ <0x4800 0 0 IRQ_INTA &pci_intc 0>, /* Slot 9 */
+ <0x4800 0 0 IRQ_INTB &pci_intc 1>,
+ <0x4800 0 0 IRQ_INTC &pci_intc 2>,
+ <0x4800 0 0 IRQ_INTD &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTA &pci_intc 1>, /* Slot 10 */
+ <0x5000 0 0 IRQ_INTB &pci_intc 2>,
+ <0x5000 0 0 IRQ_INTC &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTD &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTA &pci_intc 2>, /* Slot 11 */
+ <0x5800 0 0 IRQ_INTB &pci_intc 3>,
+ <0x5800 0 0 IRQ_INTC &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTD &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTA &pci_intc 3>, /* Slot 12 */
+ <0x6000 0 0 IRQ_INTB &pci_intc 0>,
+ <0x6000 0 0 IRQ_INTC &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTD &pci_intc 2>;
};
ethernet@60000000 {
diff --git a/arch/arm/boot/dts/gemini-sl93512r.dts b/arch/arm/boot/dts/gemini-sl93512r.dts
index a98af0351906..e80c59174431 100644
--- a/arch/arm/boot/dts/gemini-sl93512r.dts
+++ b/arch/arm/boot/dts/gemini-sl93512r.dts
@@ -256,24 +256,24 @@
pci@50000000 {
status = "okay";
- interrupt-map-mask = <0xf800 0 0 7>;
+ interrupt-map-mask = <0xf800 0 0 IRQ_INT_ALL>;
interrupt-map =
- <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
- <0x4800 0 0 2 &pci_intc 1>,
- <0x4800 0 0 3 &pci_intc 2>,
- <0x4800 0 0 4 &pci_intc 3>,
- <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
- <0x5000 0 0 2 &pci_intc 2>,
- <0x5000 0 0 3 &pci_intc 3>,
- <0x5000 0 0 4 &pci_intc 0>,
- <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
- <0x5800 0 0 2 &pci_intc 3>,
- <0x5800 0 0 3 &pci_intc 0>,
- <0x5800 0 0 4 &pci_intc 1>,
- <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
- <0x6000 0 0 2 &pci_intc 0>,
- <0x6000 0 0 3 &pci_intc 1>,
- <0x6000 0 0 4 &pci_intc 2>;
+ <0x4800 0 0 IRQ_INTA &pci_intc 0>, /* Slot 9 */
+ <0x4800 0 0 IRQ_INTB &pci_intc 1>,
+ <0x4800 0 0 IRQ_INTC &pci_intc 2>,
+ <0x4800 0 0 IRQ_INTD &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTA &pci_intc 1>, /* Slot 10 */
+ <0x5000 0 0 IRQ_INTB &pci_intc 2>,
+ <0x5000 0 0 IRQ_INTC &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTD &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTA &pci_intc 2>, /* Slot 11 */
+ <0x5800 0 0 IRQ_INTB &pci_intc 3>,
+ <0x5800 0 0 IRQ_INTC &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTD &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTA &pci_intc 3>, /* Slot 12 */
+ <0x6000 0 0 IRQ_INTB &pci_intc 0>,
+ <0x6000 0 0 IRQ_INTC &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTD &pci_intc 2>;
};
ethernet@60000000 {
diff --git a/arch/arm/boot/dts/gemini-sq201.dts b/arch/arm/boot/dts/gemini-sq201.dts
index 239dfacaae4d..95deff80446a 100644
--- a/arch/arm/boot/dts/gemini-sq201.dts
+++ b/arch/arm/boot/dts/gemini-sq201.dts
@@ -252,24 +252,24 @@
pci@50000000 {
status = "okay";
- interrupt-map-mask = <0xf800 0 0 7>;
+ interrupt-map-mask = <0xf800 0 0 IRQ_INT_ALL>;
interrupt-map =
- <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
- <0x4800 0 0 2 &pci_intc 1>,
- <0x4800 0 0 3 &pci_intc 2>,
- <0x4800 0 0 4 &pci_intc 3>,
- <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
- <0x5000 0 0 2 &pci_intc 2>,
- <0x5000 0 0 3 &pci_intc 3>,
- <0x5000 0 0 4 &pci_intc 0>,
- <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
- <0x5800 0 0 2 &pci_intc 3>,
- <0x5800 0 0 3 &pci_intc 0>,
- <0x5800 0 0 4 &pci_intc 1>,
- <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
- <0x6000 0 0 2 &pci_intc 0>,
- <0x6000 0 0 3 &pci_intc 1>,
- <0x6000 0 0 4 &pci_intc 2>;
+ <0x4800 0 0 IRQ_INTA &pci_intc 0>, /* Slot 9 */
+ <0x4800 0 0 IRQ_INTB &pci_intc 1>,
+ <0x4800 0 0 IRQ_INTC &pci_intc 2>,
+ <0x4800 0 0 IRQ_INTD &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTA &pci_intc 1>, /* Slot 10 */
+ <0x5000 0 0 IRQ_INTB &pci_intc 2>,
+ <0x5000 0 0 IRQ_INTC &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTD &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTA &pci_intc 2>, /* Slot 11 */
+ <0x5800 0 0 IRQ_INTB &pci_intc 3>,
+ <0x5800 0 0 IRQ_INTC &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTD &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTA &pci_intc 3>, /* Slot 12 */
+ <0x6000 0 0 IRQ_INTB &pci_intc 0>,
+ <0x6000 0 0 IRQ_INTC &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTD &pci_intc 2>;
};
ethernet@60000000 {
diff --git a/arch/arm/boot/dts/gemini-wbd111.dts b/arch/arm/boot/dts/gemini-wbd111.dts
index 3a2761dd460f..832b58739d4e 100644
--- a/arch/arm/boot/dts/gemini-wbd111.dts
+++ b/arch/arm/boot/dts/gemini-wbd111.dts
@@ -140,24 +140,24 @@
pci@50000000 {
status = "okay";
- interrupt-map-mask = <0xf800 0 0 7>;
+ interrupt-map-mask = <0xf800 0 0 IRQ_INT_ALL>;
interrupt-map =
- <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
- <0x4800 0 0 2 &pci_intc 1>,
- <0x4800 0 0 3 &pci_intc 2>,
- <0x4800 0 0 4 &pci_intc 3>,
- <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
- <0x5000 0 0 2 &pci_intc 2>,
- <0x5000 0 0 3 &pci_intc 3>,
- <0x5000 0 0 4 &pci_intc 0>,
- <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
- <0x5800 0 0 2 &pci_intc 3>,
- <0x5800 0 0 3 &pci_intc 0>,
- <0x5800 0 0 4 &pci_intc 1>,
- <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
- <0x6000 0 0 2 &pci_intc 0>,
- <0x6000 0 0 3 &pci_intc 1>,
- <0x6000 0 0 4 &pci_intc 2>;
+ <0x4800 0 0 IRQ_INTA &pci_intc 0>, /* Slot 9 */
+ <0x4800 0 0 IRQ_INTB &pci_intc 1>,
+ <0x4800 0 0 IRQ_INTC &pci_intc 2>,
+ <0x4800 0 0 IRQ_INTD &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTA &pci_intc 1>, /* Slot 10 */
+ <0x5000 0 0 IRQ_INTB &pci_intc 2>,
+ <0x5000 0 0 IRQ_INTC &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTD &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTA &pci_intc 2>, /* Slot 11 */
+ <0x5800 0 0 IRQ_INTB &pci_intc 3>,
+ <0x5800 0 0 IRQ_INTC &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTD &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTA &pci_intc 3>, /* Slot 12 */
+ <0x6000 0 0 IRQ_INTB &pci_intc 0>,
+ <0x6000 0 0 IRQ_INTC &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTD &pci_intc 2>;
};
ethernet@60000000 {
diff --git a/arch/arm/boot/dts/gemini-wbd222.dts b/arch/arm/boot/dts/gemini-wbd222.dts
index 52b4dbc0c072..19776090a920 100644
--- a/arch/arm/boot/dts/gemini-wbd222.dts
+++ b/arch/arm/boot/dts/gemini-wbd222.dts
@@ -151,24 +151,24 @@
pci@50000000 {
status = "okay";
- interrupt-map-mask = <0xf800 0 0 7>;
+ interrupt-map-mask = <0xf800 0 0 IRQ_INT_ALL>;
interrupt-map =
- <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
- <0x4800 0 0 2 &pci_intc 1>,
- <0x4800 0 0 3 &pci_intc 2>,
- <0x4800 0 0 4 &pci_intc 3>,
- <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
- <0x5000 0 0 2 &pci_intc 2>,
- <0x5000 0 0 3 &pci_intc 3>,
- <0x5000 0 0 4 &pci_intc 0>,
- <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
- <0x5800 0 0 2 &pci_intc 3>,
- <0x5800 0 0 3 &pci_intc 0>,
- <0x5800 0 0 4 &pci_intc 1>,
- <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
- <0x6000 0 0 2 &pci_intc 0>,
- <0x6000 0 0 3 &pci_intc 1>,
- <0x6000 0 0 4 &pci_intc 2>;
+ <0x4800 0 0 IRQ_INTA &pci_intc 0>, /* Slot 9 */
+ <0x4800 0 0 IRQ_INTB &pci_intc 1>,
+ <0x4800 0 0 IRQ_INTC &pci_intc 2>,
+ <0x4800 0 0 IRQ_INTD &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTA &pci_intc 1>, /* Slot 10 */
+ <0x5000 0 0 IRQ_INTB &pci_intc 2>,
+ <0x5000 0 0 IRQ_INTC &pci_intc 3>,
+ <0x5000 0 0 IRQ_INTD &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTA &pci_intc 2>, /* Slot 11 */
+ <0x5800 0 0 IRQ_INTB &pci_intc 3>,
+ <0x5800 0 0 IRQ_INTC &pci_intc 0>,
+ <0x5800 0 0 IRQ_INTD &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTA &pci_intc 3>, /* Slot 12 */
+ <0x6000 0 0 IRQ_INTB &pci_intc 0>,
+ <0x6000 0 0 IRQ_INTC &pci_intc 1>,
+ <0x6000 0 0 IRQ_INTD &pci_intc 2>;
};
ethernet@60000000 {
diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
index e6b4b8525f98..e3f52e20bc5f 100644
--- a/arch/arm/boot/dts/imx6qdl.dtsi
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
@@ -282,11 +282,11 @@
interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi";
#interrupt-cells = <1>;
- interrupt-map-mask = <0 0 0 0x7>;
- interrupt-map = <0 0 0 1 &gpc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 2 &gpc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 3 &gpc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 4 &gpc GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-map-mask = <0 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0 0 0 IRQ_INTA &gpc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTB &gpc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTC &gpc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTD &gpc GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6QDL_CLK_PCIE_AXI>,
<&clks IMX6QDL_CLK_LVDS1_GATE>,
<&clks IMX6QDL_CLK_PCIE_REF_125M>;
diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi
index 531a52c1e987..5549820dbca4 100644
--- a/arch/arm/boot/dts/imx6sx.dtsi
+++ b/arch/arm/boot/dts/imx6sx.dtsi
@@ -1377,11 +1377,11 @@
interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi";
#interrupt-cells = <1>;
- interrupt-map-mask = <0 0 0 0x7>;
- interrupt-map = <0 0 0 1 &gpc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 2 &gpc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 3 &gpc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
- <0 0 0 4 &gpc GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-map-mask = <0 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0 0 0 IRQ_INTA &gpc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTB &gpc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTC &gpc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTD &gpc GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6SX_CLK_PCIE_AXI>,
<&clks IMX6SX_CLK_LVDS1_OUT>,
<&clks IMX6SX_CLK_PCIE_REF_125M>,
diff --git a/arch/arm/boot/dts/integratorap.dts b/arch/arm/boot/dts/integratorap.dts
index 94d2ff9836d0..ea35a90123c6 100644
--- a/arch/arm/boot/dts/integratorap.dts
+++ b/arch/arm/boot/dts/integratorap.dts
@@ -6,6 +6,8 @@
/dts-v1/;
/include/ "integrator.dtsi"
+#include <dt-bindings/interrupt-controller/irq.h>
+
/ {
model = "ARM Integrator/AP";
compatible = "arm,integrator-ap";
@@ -174,28 +176,28 @@
0x20000000 0 0x20000000 /* 512 MB @ LB 20000000 1:1 */
0x02000000 0 0x80000000 /* Core module alias memory */
0x80000000 0 0x40000000>; /* 1GB @ LB 80000000 */
- interrupt-map-mask = <0xf800 0 0 0x7>;
+ interrupt-map-mask = <0xf800 0 0 IRQ_INT_ALL>;
interrupt-map = <
/* IDSEL 9 */
- 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
- 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
- 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
- 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
+ 0x4800 0 0 IRQ_INTA &pic 13 /* INT A on slot 9 is irq 13 */
+ 0x4800 0 0 IRQ_INTB &pic 14 /* INT B on slot 9 is irq 14 */
+ 0x4800 0 0 IRQ_INTC &pic 15 /* INT C on slot 9 is irq 15 */
+ 0x4800 0 0 IRQ_INTD &pic 16 /* INT D on slot 9 is irq 16 */
/* IDSEL 10 */
- 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
- 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
- 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
- 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
+ 0x5000 0 0 IRQ_INTA &pic 14 /* INT A on slot 10 is irq 14 */
+ 0x5000 0 0 IRQ_INTB &pic 15 /* INT B on slot 10 is irq 15 */
+ 0x5000 0 0 IRQ_INTC &pic 16 /* INT C on slot 10 is irq 16 */
+ 0x5000 0 0 IRQ_INTD &pic 13 /* INT D on slot 10 is irq 13 */
/* IDSEL 11 */
- 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
- 0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
- 0x5800 0 0 3 &pic 13 /* INT C on slot 11 is irq 13 */
- 0x5800 0 0 4 &pic 14 /* INT D on slot 11 is irq 14 */
+ 0x5800 0 0 IRQ_INTA &pic 15 /* INT A on slot 11 is irq 15 */
+ 0x5800 0 0 IRQ_INTB &pic 16 /* INT B on slot 11 is irq 16 */
+ 0x5800 0 0 IRQ_INTC &pic 13 /* INT C on slot 11 is irq 13 */
+ 0x5800 0 0 IRQ_INTD &pic 14 /* INT D on slot 11 is irq 14 */
/* IDSEL 12 */
- 0x6000 0 0 1 &pic 16 /* INT A on slot 12 is irq 16 */
- 0x6000 0 0 2 &pic 13 /* INT B on slot 12 is irq 13 */
- 0x6000 0 0 3 &pic 14 /* INT C on slot 12 is irq 14 */
- 0x6000 0 0 4 &pic 15 /* INT D on slot 12 is irq 15 */
+ 0x6000 0 0 IRQ_INTA &pic 16 /* INT A on slot 12 is irq 16 */
+ 0x6000 0 0 IRQ_INTB &pic 13 /* INT B on slot 12 is irq 13 */
+ 0x6000 0 0 IRQ_INTC &pic 14 /* INT C on slot 12 is irq 14 */
+ 0x6000 0 0 IRQ_INTD &pic 15 /* INT D on slot 12 is irq 15 */
>;
};
diff --git a/arch/arm/boot/dts/keystone-k2e.dtsi b/arch/arm/boot/dts/keystone-k2e.dtsi
index 085e7326ea8e..d612aaac3759 100644
--- a/arch/arm/boot/dts/keystone-k2e.dtsi
+++ b/arch/arm/boot/dts/keystone-k2e.dtsi
@@ -5,6 +5,7 @@
* Copyright (C) 2013-2017 Texas Instruments Incorporated - http://www.ti.com/
*/
+#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/reset/ti-syscon.h>
/ {
@@ -153,11 +154,11 @@
/* error interrupt */
interrupts = <GIC_SPI 385 IRQ_TYPE_EDGE_RISING>;
#interrupt-cells = <1>;
- interrupt-map-mask = <0 0 0 7>;
- interrupt-map = <0 0 0 1 &pcie_intc1 0>, /* INT A */
- <0 0 0 2 &pcie_intc1 1>, /* INT B */
- <0 0 0 3 &pcie_intc1 2>, /* INT C */
- <0 0 0 4 &pcie_intc1 3>; /* INT D */
+ interrupt-map-mask = <0 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0 0 0 IRQ_INTA &pcie_intc1 0>,
+ <0 0 0 IRQ_INTB &pcie_intc1 1>,
+ <0 0 0 IRQ_INTC &pcie_intc1 2>,
+ <0 0 0 IRQ_INTD &pcie_intc1 3>;
pcie_msi_intc1: msi-interrupt-controller {
interrupt-controller;
diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi
index c298675a29a5..c7c8f3f58cfb 100644
--- a/arch/arm/boot/dts/keystone.dtsi
+++ b/arch/arm/boot/dts/keystone.dtsi
@@ -313,11 +313,11 @@
/* error interrupt */
interrupts = <GIC_SPI 38 IRQ_TYPE_EDGE_RISING>;
#interrupt-cells = <1>;
- interrupt-map-mask = <0 0 0 7>;
- interrupt-map = <0 0 0 1 &pcie_intc0 0>, /* INT A */
- <0 0 0 2 &pcie_intc0 1>, /* INT B */
- <0 0 0 3 &pcie_intc0 2>, /* INT C */
- <0 0 0 4 &pcie_intc0 3>; /* INT D */
+ interrupt-map-mask = <0 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0 0 0 IRQ_INTA &pcie_intc0 0>,
+ <0 0 0 IRQ_INTB &pcie_intc0 1>,
+ <0 0 0 IRQ_INTC &pcie_intc0 2>,
+ <0 0 0 IRQ_INTD &pcie_intc0 3>;
pcie_msi_intc0: msi-interrupt-controller {
interrupt-controller;
diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
index 8b79b4112ee1..2a80fc9d2c67 100644
--- a/arch/arm/boot/dts/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
@@ -1391,11 +1391,11 @@
interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi";
#interrupt-cells = <1>;
- interrupt-map-mask = <0 0 0 0x7>;
- interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
- <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
- <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
- <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
+ interrupt-map-mask = <0 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0 0 0 IRQ_INTA &intc 0 36 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTB &intc 0 37 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTC &intc 0 38 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTD &intc 0 39 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gcc PCIE_A_CLK>,
<&gcc PCIE_H_CLK>,
<&gcc PCIE_PHY_REF_CLK>;
diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi
index 56f51599852d..d95f6bc2705e 100644
--- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
+++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
@@ -398,11 +398,11 @@
interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi";
#interrupt-cells = <1>;
- interrupt-map-mask = <0 0 0 0x7>;
- interrupt-map = <0 0 0 1 &intc 0 142 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
- <0 0 0 2 &intc 0 143 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
- <0 0 0 3 &intc 0 144 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
- <0 0 0 4 &intc 0 145 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
+ interrupt-map-mask = <0 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0 0 0 IRQ_INTA &intc 0 142 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTB &intc 0 143 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTC &intc 0 144 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 IRQ_INTD &intc 0 145 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gcc GCC_PCIE_AHB_CLK>,
<&gcc GCC_PCIE_AXI_M_CLK>,
<&gcc GCC_PCIE_AXI_S_CLK>;
diff --git a/arch/arm/boot/dts/versatile-pb.dts b/arch/arm/boot/dts/versatile-pb.dts
index 06a0fdf24026..ec91e3b81972 100644
--- a/arch/arm/boot/dts/versatile-pb.dts
+++ b/arch/arm/boot/dts/versatile-pb.dts
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
#include "versatile-ab.dts"
+#include <dt-bindings/interrupt-controller/irq.h>
+
/ {
model = "ARM Versatile PB";
compatible = "arm,versatile-pb";
@@ -55,26 +57,26 @@
0x02000000 0 0x50000000 0x50000000 0 0x10000000 /* non-prefetchable memory */
0x42000000 0 0x60000000 0x60000000 0 0x10000000>; /* prefetchable memory */
- interrupt-map-mask = <0x1800 0 0 7>;
- interrupt-map = <0x1800 0 0 1 &sic 28
- 0x1800 0 0 2 &sic 29
- 0x1800 0 0 3 &sic 30
- 0x1800 0 0 4 &sic 27
+ interrupt-map-mask = <0x1800 0 0 IRQ_INT_ALL>;
+ interrupt-map = <0x1800 0 0 IRQ_INTA &sic 28
+ 0x1800 0 0 IRQ_INTB &sic 29
+ 0x1800 0 0 IRQ_INTC &sic 30
+ 0x1800 0 0 IRQ_INTD &sic 27
- 0x1000 0 0 1 &sic 27
- 0x1000 0 0 2 &sic 28
- 0x1000 0 0 3 &sic 29
- 0x1000 0 0 4 &sic 30
+ 0x1000 0 0 IRQ_INTA &sic 27
+ 0x1000 0 0 IRQ_INTB &sic 28
+ 0x1000 0 0 IRQ_INTC &sic 29
+ 0x1000 0 0 IRQ_INTD &sic 30
- 0x0800 0 0 1 &sic 30
- 0x0800 0 0 2 &sic 27
- 0x0800 0 0 3 &sic 28
- 0x0800 0 0 4 &sic 29
+ 0x0800 0 0 IRQ_INTA &sic 30
+ 0x0800 0 0 IRQ_INTB &sic 27
+ 0x0800 0 0 IRQ_INTC &sic 28
+ 0x0800 0 0 IRQ_INTD &sic 29
- 0x0000 0 0 1 &sic 29
- 0x0000 0 0 2 &sic 30
- 0x0000 0 0 3 &sic 27
- 0x0000 0 0 4 &sic 28>;
+ 0x0000 0 0 IRQ_INTA &sic 29
+ 0x0000 0 0 IRQ_INTB &sic 30
+ 0x0000 0 0 IRQ_INTC &sic 27
+ 0x0000 0 0 IRQ_INTD &sic 28>;
};
fpga {
--
2.21.0
next prev parent reply other threads:[~2019-11-04 16:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 16:38 [PATCH v1 0/7] PCI: dt: Remove magic numbers for legacy PCI IRQ interrupts Andrew Murray
2019-11-04 16:38 ` [PATCH v1 2/7] arm64: dts: Use IRQ flags " Andrew Murray
2019-11-06 10:03 ` Liviu Dudau
2019-11-08 14:34 ` Heiko Stuebner
2019-11-09 6:03 ` Wei Xu
2019-11-04 16:38 ` Andrew Murray [this message]
2019-11-05 15:06 ` [PATCH v1 3/7] arm: " Linus Walleij
2019-11-05 17:20 ` Jesper Nilsson
2019-11-04 16:38 ` [PATCH v1 7/7] dt-bindings: PCI: " Andrew Murray
2019-11-06 23:47 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191104163834.8932-4-andrew.murray@arm.com \
--to=andrew.murray@arm.com \
--cc=agross@kernel.org \
--cc=antoine.tenart@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=jesper.nilsson@axis.com \
--cc=kernel@pengutronix.de \
--cc=lars.persson@axis.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@axis.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=ssantosh@kernel.org \
--cc=tsahee@annapurnalabs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).