ARM: dts: meson: use GIC_SPI and IRQ_TYPE_EDGE_RISING macros
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Thu, 15 Jun 2017 21:33:44 +0000 (23:33 +0200)
committerKevin Hilman <khilman@baylibre.com>
Fri, 16 Jun 2017 19:07:10 +0000 (12:07 -0700)
This makes meson.dtsi easier to read as we are not using magic numbers
for the GIC interrupt type (GIC_SPI) and the interrupt polarity
(IRQ_TYPE_EDGE_RISING).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson.dtsi

index 8d9c36970dfd2964d5a033a5a263fb7f5ea063ed..d287f606e06f7aeab2e8dceff59969f609bbee50 100644 (file)
@@ -45,6 +45,8 @@
  *     OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
 /include/ "skeleton.dtsi"
 
 / {
                        uart_A: serial@84c0 {
                                compatible = "amlogic,meson-uart";
                                reg = <0x84c0 0x18>;
-                               interrupts = <0 26 1>;
+                               interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
                                status = "disabled";
                        };
 
                        uart_B: serial@84dc {
                                compatible = "amlogic,meson-uart";
                                reg = <0x84dc 0x18>;
-                               interrupts = <0 75 1>;
+                               interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
                                status = "disabled";
                        };
 
                        i2c_A: i2c@8500 {
                                compatible = "amlogic,meson6-i2c";
                                reg = <0x8500 0x20>;
-                               interrupts = <0 21 1>;
+                               interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
                                #address-cells = <1>;
                                #size-cells = <0>;
                                status = "disabled";
                        uart_C: serial@8700 {
                                compatible = "amlogic,meson-uart";
                                reg = <0x8700 0x18>;
-                               interrupts = <0 93 1>;
+                               interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
                                status = "disabled";
                        };
 
                        i2c_B: i2c@87c0 {
                                compatible = "amlogic,meson6-i2c";
                                reg = <0x87c0 0x20>;
-                               interrupts = <0 128 1>;
+                               interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
                                #address-cells = <1>;
                                #size-cells = <0>;
                                status = "disabled";
                        wdt: watchdog@9900 {
                                compatible = "amlogic,meson6-wdt";
                                reg = <0x9900 0x8>;
-                               interrupts = <0 0 1>;
+                               interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
                        };
 
                        timer@9940 {
                                compatible = "amlogic,meson6-timer";
                                reg = <0x9940 0x18>;
-                               interrupts = <0 10 1>;
+                               interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>;
                        };
                };
 
                        ir_receiver: ir-receiver@480 {
                                compatible= "amlogic,meson6-ir";
                                reg = <0x480 0x20>;
-                               interrupts = <0 15 1>;
+                               interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
                                status = "disabled";
                        };
 
                        uart_AO: serial@4c0 {
                                compatible = "amlogic,meson-uart";
                                reg = <0x4c0 0x18>;
-                               interrupts = <0 90 1>;
+                               interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
                                status = "disabled";
                        };
 
                        i2c_AO: i2c@500 {
                                compatible = "amlogic,meson6-i2c";
                                reg = <0x500 0x20>;
-                               interrupts = <0 92 1>;
+                               interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
                                #address-cells = <1>;
                                #size-cells = <0>;
                                status = "disabled";
                        compatible = "amlogic,meson6-dwmac", "snps,dwmac";
                        reg = <0xc9410000 0x10000
                               0xc1108108 0x4>;
-                       interrupts = <0 8 1>;
+                       interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
                        interrupt-names = "macirq";
                        status = "disabled";
                };