ARM: dts: ixp4xx: Group PCI interrupt properties together
authorRob Herring <robh@kernel.org>
Tue, 28 Sep 2021 19:21:22 +0000 (14:21 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 20 Oct 2021 00:31:22 +0000 (02:31 +0200)
Move the PCI 'interrupt-map-mask' and '#interrupt-cells' properties
alongside the 'interrupt-map' property in each board dts. This avoids
having incomplete set of interrupt properties which may fail validation.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
13 files changed:
arch/arm/boot/dts/intel-ixp42x-adi-coyote.dts
arch/arm/boot/dts/intel-ixp42x-arcom-vulcan.dts
arch/arm/boot/dts/intel-ixp42x-dlink-dsm-g600.dts
arch/arm/boot/dts/intel-ixp42x-freecom-fsg-3.dts
arch/arm/boot/dts/intel-ixp42x-gateworks-gw2348.dts
arch/arm/boot/dts/intel-ixp42x-iomega-nas100d.dts
arch/arm/boot/dts/intel-ixp42x-ixdpg425.dts
arch/arm/boot/dts/intel-ixp42x-linksys-nslu2.dts
arch/arm/boot/dts/intel-ixp42x-linksys-wrv54g.dts
arch/arm/boot/dts/intel-ixp42x-netgear-wg302v2.dts
arch/arm/boot/dts/intel-ixp43x-gateworks-gw2358.dts
arch/arm/boot/dts/intel-ixp4xx-reference-design.dtsi
arch/arm/boot/dts/intel-ixp4xx.dtsi

index 44c017b780088201195d11e83533c1323c80c530..bd4230d7dac9ef709f5d5883d1255500d73fa73a 100644 (file)
@@ -63,6 +63,8 @@
                         * We have slots (IDSEL) 1 and 2 with one assigned IRQ
                         * each handling all IRQs.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 6 */
index 7200126cb3b5ae1b4b7b760ff29e782e8184c130..92b987bc3f99dc0a9874993b8dc86183ad2e9b2b 100644 (file)
                         * We have 2 slots (IDSEL) 1 and 2 with one dedicated interrupt
                         * per slot. This interrupt is shared (OR:ed) by all four pins.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 2 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 2 */
index 8b32e9f22d81cf1e458cd457a69f0a13c1d00258..5ab09fb10dae66f9d6c52d7fdf5653e952aca80d 100644 (file)
                         * We have slots (IDSEL) 1, 2, 3, 4 and pins 1, 2 and 3.
                         * Only slot 3 have three IRQs.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 7  IRQ_TYPE_LEVEL_LOW>, /* INT E on slot 1 is irq 7 */
index 77e78c6dc2cd58593654a5143a8249744b4f1211..598586fc086238ee434f33a65402367aafdb331c 100644 (file)
                         * Written based on the FSG-3 PCI boardfile.
                         * We have slots 12, 13 & 14 (IDSEL) with one IRQ each.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 12 */
                        <0x6000 0 0 1 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 5 */
index a20277ff0420daab2e3f5505997ee0a17585fd58..a5943f51e8c25b1fe26f2957236b39f0e05ac436 100644 (file)
                         *
                         * We have up to 4 slots (IDSEL) with 4 swizzled IRQs.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
index 8c18d802c8491792161c2d0abf0cc10336d1165a..cbc87b344f6a3bdc8f507052d9e64c60cac18bcd 100644 (file)
                         * Taken from NAS 100D PCI boardfile (nas100d-pci.c)
                         * We have slots (IDSEL) 1, 2 and 3 and pins 1, 2 and 3.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
index 002a8705abc9a0b49ae966085dcb08905f400a08..f17cab12a64b84aa399c86cb57e1ad75f4e77689 100644 (file)
@@ -68,6 +68,8 @@
                         * We have slots (IDSEL) 12, 13 and 14 with one assigned IRQ
                         * for 12 & 13 and one for 14.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 12 */
                        <0x6000 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 7 */
index e3a32b08d16707f6b32c9d69f3d198430a408849..0edc5928e00bd63401c0f41284b7aab70d758b62 100644 (file)
                         * Taken from NSLU2 PCI boardfile, INT A, B, C swizzled D constant
                         * We have slots (IDSEL) 1, 2 and 3.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
index 6b28dda747fd4938104ebc04ac9975e3ea71d367..5e7e31b74b04bd808011e777a7b1d67263a3ee3a 100644 (file)
                         * We have up to 2 slots (IDSEL) with 2 swizzled IRQs.
                         * Derived from the GTWX5715 PCI boardfile.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 0 */
                        <0x0000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 0 is irq 10 */
index 04a0f7138967111c29e546dac577b5dde09fc0a8..a57009436ed8e9eec8901fa2897cc85b813275d4 100644 (file)
@@ -62,6 +62,8 @@
                         * We have slots (IDSEL) 1 and 2 with one assigned IRQ
                         * each handling all IRQs.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 8 */
index 84e6aec8e6651b0f1d8cd5ed034fc451fdbab925..cf4010d6018765228ae865fcf17bad4c4265297c 100644 (file)
                         * have instead assumed that they are rotated (swizzled) like
                         * this with 11, 10, 9, 8 for the 4 pins on IDSEL 1 etc.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
index c1d9c49982b33a2330806f04ee27c0e28327408b..146352ba848beb0ba33b75d9ec478ad0c010f539 100644 (file)
                         * PCI slots on the BIXMB425BD base card.
                         * We have up to 4 slots (IDSEL) with 4 swizzled IRQs.
                         */
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
                        interrupt-map =
                        /* IDSEL 1 */
                        <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
index e5af2d4630748431304890671f16e2bf5e6d25af..46fede021476837b5724f32d85645530a2fb0d4c 100644 (file)
@@ -78,8 +78,6 @@
                        dma-ranges =
                        <0x02000000 0 0x00000000 0x00000000 0 0x04000000>;
 
-                       #interrupt-cells = <1>;
-                       interrupt-map-mask = <0xf800 0 0 7>;
                        /* Each unique DTS using PCI must specify the swizzling */
                };