arm64: dts: uniphier: Use GIC interrupt definitions
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 13 Sep 2022 04:23:16 +0000 (13:23 +0900)
committerArnd Bergmann <arnd@arndb.de>
Wed, 28 Sep 2022 20:41:46 +0000 (22:41 +0200)
Use human-readable definitions for GIC interrupt type and flag, instead of
hard-coding the numbers. No functional change.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20220913042321.4817-6-hayashi.kunihiko@socionext.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts
arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
arch/arm64/boot/dts/socionext/uniphier-ld20-akebi96.dts
arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi

index 41b47f5..414aeb9 100644 (file)
 };
 
 &ethsc {
-       interrupts = <0 8>;
+       interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
 };
 
 &serialsc {
-       interrupts = <0 8>;
+       interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
 };
 
 &serial0 {
index 16d281c..525bff7 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/gpio/uniphier-gpio.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
 
 / {
        compatible = "socionext,uniphier-ld11";
 
        timer {
                compatible = "arm,armv8-timer";
-               interrupts = <1 13 4>,
-                            <1 14 4>,
-                            <1 11 4>,
-                            <1 10 4>;
+               interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
        };
 
        reserved-memory {
                        reg = <0x54006000 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 39 4>;
+                       interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi0>;
                        clocks = <&peri_clk 11>;
                        reg = <0x54006100 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 216 4>;
+                       interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi1>;
                        clocks = <&peri_clk 12>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006800 0x40>;
-                       interrupts = <0 33 4>;
+                       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart0>;
                        clocks = <&peri_clk 0>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006900 0x40>;
-                       interrupts = <0 35 4>;
+                       interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart1>;
                        clocks = <&peri_clk 1>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006a00 0x40>;
-                       interrupts = <0 37 4>;
+                       interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart2>;
                        clocks = <&peri_clk 2>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006b00 0x40>;
-                       interrupts = <0 177 4>;
+                       interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart3>;
                        clocks = <&peri_clk 3>;
                audio@56000000 {
                        compatible = "socionext,uniphier-ld11-aio";
                        reg = <0x56000000 0x80000>;
-                       interrupts = <0 144 4>;
+                       interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_aout1>,
                                    <&pinctrl_aoutiec1>;
                        reg = <0x58780000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 41 4>;
+                       interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c0>;
                        clocks = <&peri_clk 4>;
                        reg = <0x58781000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 42 4>;
+                       interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c1>;
                        clocks = <&peri_clk 5>;
                        reg = <0x58782000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 43 4>;
+                       interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&peri_clk 6>;
                        resets = <&peri_rst 6>;
                        clock-frequency = <400000>;
                        reg = <0x58783000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 44 4>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c3>;
                        clocks = <&peri_clk 7>;
                        reg = <0x58784000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 45 4>;
+                       interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c4>;
                        clocks = <&peri_clk 8>;
                        reg = <0x58785000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 25 4>;
+                       interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&peri_clk 9>;
                        resets = <&peri_rst 9>;
                        clock-frequency = <400000>;
                emmc: mmc@5a000000 {
                        compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
                        reg = <0x5a000000 0x400>;
-                       interrupts = <0 78 4>;
+                       interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&sys_clk 4>;
                        compatible = "socionext,uniphier-ehci", "generic-ehci";
                        status = "disabled";
                        reg = <0x5a800100 0x100>;
-                       interrupts = <0 243 4>;
+                       interrupts = <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_usb0>;
                        clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
                        compatible = "socionext,uniphier-ehci", "generic-ehci";
                        status = "disabled";
                        reg = <0x5a810100 0x100>;
-                       interrupts = <0 244 4>;
+                       interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_usb1>;
                        clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
                        compatible = "socionext,uniphier-ehci", "generic-ehci";
                        status = "disabled";
                        reg = <0x5a820100 0x100>;
-                       interrupts = <0 245 4>;
+                       interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_usb2>;
                        clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>,
                xdmac: dma-controller@5fc10000 {
                        compatible = "socionext,uniphier-xdmac";
                        reg = <0x5fc10000 0x5300>;
-                       interrupts = <0 188 4>;
+                       interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
                        dma-channels = <16>;
                        #dma-cells = <2>;
                };
                              <0x5fe40000 0x80000>;     /* GICR */
                        interrupt-controller;
                        #interrupt-cells = <3>;
-                       interrupts = <1 9 4>;
+                       interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
                };
 
                sysctrl@61840000 {
                        compatible = "socionext,uniphier-ld11-ave4";
                        status = "disabled";
                        reg = <0x65000000 0x8500>;
-                       interrupts = <0 66 4>;
+                       interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "ether";
                        clocks = <&sys_clk 6>;
                        reset-names = "ether";
                        reg = <0x68000000 0x20>, <0x68100000 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 65 4>;
+                       interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
                        clock-names = "nand", "nand_x", "ecc";
index b55b70d..fba454a 100644 (file)
                spi-max-frequency = <12500000>;
                interrupt-parent = <&gpio>;
                interrupt-names = "udc";
-               interrupts = <0 2>;
+               interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
        };
 };
 
index 8c11158..a5f2083 100644 (file)
 };
 
 &ethsc {
-       interrupts = <0 8>;
+       interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
 };
 
 &serialsc {
-       interrupts = <0 8>;
+       interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
 };
 
 &serial0 {
index 6466c92..b789654 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/gpio/uniphier-gpio.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/thermal/thermal.h>
 
 / {
 
        timer {
                compatible = "arm,armv8-timer";
-               interrupts = <1 13 4>,
-                            <1 14 4>,
-                            <1 11 4>,
-                            <1 10 4>;
+               interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
        };
 
        thermal-zones {
                        reg = <0x54006000 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 39 4>;
+                       interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi0>;
                        clocks = <&peri_clk 11>;
                        reg = <0x54006100 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 216 4>;
+                       interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi1>;
                        clocks = <&peri_clk 12>;
                        reg = <0x54006200 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 229 4>;
+                       interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi2>;
                        clocks = <&peri_clk 13>;
                        reg = <0x54006300 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 230 4>;
+                       interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi3>;
                        clocks = <&peri_clk 14>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006800 0x40>;
-                       interrupts = <0 33 4>;
+                       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart0>;
                        clocks = <&peri_clk 0>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006900 0x40>;
-                       interrupts = <0 35 4>;
+                       interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart1>;
                        clocks = <&peri_clk 1>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006a00 0x40>;
-                       interrupts = <0 37 4>;
+                       interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart2>;
                        clocks = <&peri_clk 2>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006b00 0x40>;
-                       interrupts = <0 177 4>;
+                       interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart3>;
                        clocks = <&peri_clk 3>;
                audio@56000000 {
                        compatible = "socionext,uniphier-ld20-aio";
                        reg = <0x56000000 0x80000>;
-                       interrupts = <0 144 4>;
+                       interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_aout1>,
                                    <&pinctrl_aoutiec1>;
                        reg = <0x58780000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 41 4>;
+                       interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c0>;
                        clocks = <&peri_clk 4>;
                        reg = <0x58781000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 42 4>;
+                       interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c1>;
                        clocks = <&peri_clk 5>;
                        reg = <0x58782000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 43 4>;
+                       interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&peri_clk 6>;
                        resets = <&peri_rst 6>;
                        clock-frequency = <400000>;
                        reg = <0x58783000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 44 4>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c3>;
                        clocks = <&peri_clk 7>;
                        reg = <0x58784000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 45 4>;
+                       interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c4>;
                        clocks = <&peri_clk 8>;
                        reg = <0x58785000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 25 4>;
+                       interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&peri_clk 9>;
                        resets = <&peri_rst 9>;
                        clock-frequency = <400000>;
                emmc: mmc@5a000000 {
                        compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
                        reg = <0x5a000000 0x400>;
-                       interrupts = <0 78 4>;
+                       interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&sys_clk 4>;
                        compatible = "socionext,uniphier-sd-v3.1.1";
                        status = "disabled";
                        reg = <0x5a400000 0x800>;
-                       interrupts = <0 76 4>;
+                       interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_sd>;
                        clocks = <&sd_clk 0>;
                xdmac: dma-controller@5fc10000 {
                        compatible = "socionext,uniphier-xdmac";
                        reg = <0x5fc10000 0x5300>;
-                       interrupts = <0 188 4>;
+                       interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
                        dma-channels = <16>;
                        #dma-cells = <2>;
                };
                              <0x5fe80000 0x80000>;     /* GICR */
                        interrupt-controller;
                        #interrupt-cells = <3>;
-                       interrupts = <1 9 4>;
+                       interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
                };
 
                sysctrl@61840000 {
 
                        pvtctl: thermal-sensor {
                                compatible = "socionext,uniphier-ld20-thermal";
-                               interrupts = <0 3 4>;
+                               interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
                                #thermal-sensor-cells = <0>;
                                socionext,tmod-calibration = <0x0f22 0x68ee>;
                        };
                        compatible = "socionext,uniphier-ld20-ave4";
                        status = "disabled";
                        reg = <0x65000000 0x8500>;
-                       interrupts = <0 66 4>;
+                       interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_ether_rgmii>;
                        clock-names = "ether";
                        status = "disabled";
                        reg = <0x65a00000 0xcd00>;
                        interrupt-names = "host";
-                       interrupts = <0 134 4>;
+                       interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>,
                                    <&pinctrl_usb2>, <&pinctrl_usb3>;
                                <0x82000000 0 0x20000000 0x20000000 0 0x0ffe0000>;
                        #interrupt-cells = <1>;
                        interrupt-names = "dma", "msi";
-                       interrupts = <0 224 4>, <0 225 4>;
+                       interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-map-mask = <0 0 0 7>;
                        interrupt-map = <0 0 0 1 &pcie_intc 0>, /* INTA */
                                        <0 0 0 2 &pcie_intc 1>, /* INTB */
                                interrupt-controller;
                                #interrupt-cells = <1>;
                                interrupt-parent = <&gic>;
-                               interrupts = <0 226 4>;
+                               interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
                        };
                };
 
                        reg = <0x68000000 0x20>, <0x68100000 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 65 4>;
+                       interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
                        clock-names = "nand", "nand_x", "ecc";
index feb070f..506c7b9 100644 (file)
 };
 
 &ethsc {
-       interrupts = <4 8>;
+       interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
 };
 
 &serialsc {
-       interrupts = <4 8>;
+       interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
 };
 
 &spi0 {
index 513a2b9..bd5c1e3 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/gpio/uniphier-gpio.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/thermal/thermal.h>
 
 / {
 
        timer {
                compatible = "arm,armv8-timer";
-               interrupts = <1 13 4>,
-                            <1 14 4>,
-                            <1 11 4>,
-                            <1 10 4>;
+               interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
        };
 
        thermal-zones {
                        reg = <0x54006000 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 39 4>;
+                       interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi0>;
                        clocks = <&peri_clk 11>;
                        reg = <0x54006100 0x100>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 216 4>;
+                       interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_spi1>;
                        clocks = <&peri_clk 12>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006800 0x40>;
-                       interrupts = <0 33 4>;
+                       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart0>;
                        clocks = <&peri_clk 0>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006900 0x40>;
-                       interrupts = <0 35 4>;
+                       interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart1>;
                        clocks = <&peri_clk 1>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006a00 0x40>;
-                       interrupts = <0 37 4>;
+                       interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart2>;
                        clocks = <&peri_clk 2>;
                        compatible = "socionext,uniphier-uart";
                        status = "disabled";
                        reg = <0x54006b00 0x40>;
-                       interrupts = <0 177 4>;
+                       interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_uart3>;
                        clocks = <&peri_clk 3>;
                        reg = <0x58780000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 41 4>;
+                       interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c0>;
                        clocks = <&peri_clk 4>;
                        reg = <0x58781000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 42 4>;
+                       interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c1>;
                        clocks = <&peri_clk 5>;
                        reg = <0x58782000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 43 4>;
+                       interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c2>;
                        clocks = <&peri_clk 6>;
                        reg = <0x58783000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 44 4>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_i2c3>;
                        clocks = <&peri_clk 7>;
                        reg = <0x58786000 0x80>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 26 4>;
+                       interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&peri_clk 10>;
                        resets = <&peri_rst 10>;
                        clock-frequency = <400000>;
                emmc: mmc@5a000000 {
                        compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
                        reg = <0x5a000000 0x400>;
-                       interrupts = <0 78 4>;
+                       interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_emmc>;
                        clocks = <&sys_clk 4>;
                        compatible = "socionext,uniphier-sd-v3.1.1";
                        status = "disabled";
                        reg = <0x5a400000 0x800>;
-                       interrupts = <0 76 4>;
+                       interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default", "uhs";
                        pinctrl-0 = <&pinctrl_sd>;
                        pinctrl-1 = <&pinctrl_sd_uhs>;
                xdmac: dma-controller@5fc10000 {
                        compatible = "socionext,uniphier-xdmac";
                        reg = <0x5fc10000 0x5300>;
-                       interrupts = <0 188 4>;
+                       interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
                        dma-channels = <16>;
                        #dma-cells = <2>;
                };
                              <0x5fe80000 0x80000>;     /* GICR */
                        interrupt-controller;
                        #interrupt-cells = <3>;
-                       interrupts = <1 9 4>;
+                       interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
                };
 
                sysctrl@61840000 {
 
                        pvtctl: thermal-sensor {
                                compatible = "socionext,uniphier-pxs3-thermal";
-                               interrupts = <0 3 4>;
+                               interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
                                #thermal-sensor-cells = <0>;
                                socionext,tmod-calibration = <0x0f22 0x68ee>;
                        };
                        compatible = "socionext,uniphier-pxs3-ave4";
                        status = "disabled";
                        reg = <0x65000000 0x8500>;
-                       interrupts = <0 66 4>;
+                       interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_ether_rgmii>;
                        clock-names = "ether";
                        compatible = "socionext,uniphier-pxs3-ave4";
                        status = "disabled";
                        reg = <0x65200000 0x8500>;
-                       interrupts = <0 67 4>;
+                       interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_ether1_rgmii>;
                        clock-names = "ether";
                        status = "disabled";
                        reg = <0x65a00000 0xcd00>;
                        interrupt-names = "dwc_usb3";
-                       interrupts = <0 134 4>;
+                       interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
                        clock-names = "ref", "bus_early", "suspend";
                        status = "disabled";
                        reg = <0x65c00000 0xcd00>;
                        interrupt-names = "dwc_usb3";
-                       interrupts = <0 137 4>;
+                       interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
                        clock-names = "ref", "bus_early", "suspend";
                                <0x82000000 0 0x20000000 0x20000000 0 0x0ffe0000>;
                        #interrupt-cells = <1>;
                        interrupt-names = "dma", "msi";
-                       interrupts = <0 224 4>, <0 225 4>;
+                       interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-map-mask = <0 0 0 7>;
                        interrupt-map = <0 0 0 1 &pcie_intc 0>, /* INTA */
                                        <0 0 0 2 &pcie_intc 1>, /* INTB */
                                interrupt-controller;
                                #interrupt-cells = <1>;
                                interrupt-parent = <&gic>;
-                               interrupts = <0 226 4>;
+                               interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
                        };
                };
 
                        reg = <0x68000000 0x20>, <0x68100000 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       interrupts = <0 65 4>;
+                       interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
                        clock-names = "nand", "nand_x", "ecc";