ARM: dts: uniphier: use macros in dt-bindings header
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 17 Nov 2017 05:24:45 +0000 (14:24 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 Dec 2017 15:47:20 +0000 (00:47 +0900)
The dt-bindings header was applied to the driver subsystem.  I had to
wait for a merge window to use it from DT.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/boot/dts/uniphier-ld4-ref.dts
arch/arm/boot/dts/uniphier-ld4.dtsi
arch/arm/boot/dts/uniphier-ld6b-ref.dts
arch/arm/boot/dts/uniphier-pro4-ref.dts
arch/arm/boot/dts/uniphier-pro4.dtsi
arch/arm/boot/dts/uniphier-pxs2.dtsi
arch/arm/boot/dts/uniphier-sld8-ref.dts
arch/arm/boot/dts/uniphier-sld8.dtsi

index 0056852c4fb0a20a6396a7de2d1b45db1776c72c..a3afd0cda42f4c875bada921151e63a3bab779f5 100644 (file)
@@ -56,7 +56,7 @@
 &gpio {
        xirq1 {
                gpio-hog;
-               gpios = <121 0>;
+               gpios = <UNIPHIER_GPIO_IRQ(1) 0>;
                input;
        };
 };
index 01fc3e16e2bd5adae80f8a42d17a6b4d039c85d7..1b98778caef18f95aebba9975a3197ffb0c85c3e 100644 (file)
@@ -7,6 +7,8 @@
  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  */
 
+#include <dt-bindings/gpio/uniphier-gpio.h>
+
 / {
        compatible = "socionext,uniphier-ld4";
        #address-cells = <1>;
index 0e510a725976e38cf928d2edba5b46ac7a937fff..811b999800ed72c62bd6f8010d38416bc36ac1aa 100644 (file)
@@ -58,7 +58,7 @@
 &gpio {
        xirq4 {
                gpio-hog;
-               gpios = <124 0>;
+               gpios = <UNIPHIER_GPIO_IRQ(4) 0>;
                input;
        };
 };
index be99467ac6bb9b0cc4e39f1bbb32d79d046cf5f5..6a004e5cf7869ac57e6ab638bcfbb4256bc54a3b 100644 (file)
@@ -58,7 +58,7 @@
 &gpio {
        xirq2 {
                gpio-hog;
-               gpios = <122 0>;
+               gpios = <UNIPHIER_GPIO_IRQ(2) 0>;
                input;
        };
 };
index 7955c3a49e659695f1526b024192c8c13a31a138..b682a420a476e00683d3ffb075806e3bad401bb4 100644 (file)
@@ -7,6 +7,8 @@
  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  */
 
+#include <dt-bindings/gpio/uniphier-gpio.h>
+
 / {
        compatible = "socionext,uniphier-pro4";
        #address-cells = <1>;
index d82d6d8721319a462086cfb5d2330c5e9e12118d..eafe4ddcb7b68a949807ecd1bef3d6ae0357754a 100644 (file)
@@ -7,6 +7,7 @@
  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  */
 
+#include <dt-bindings/gpio/uniphier-gpio.h>
 #include <dt-bindings/thermal/thermal.h>
 
 / {
index 1c0e7077a5609920323b356712b59cd6e51c75fb..e052ea3b402037e13f7da7778bff32353a2e76c5 100644 (file)
@@ -56,7 +56,7 @@
 &gpio {
        xirq0 {
                gpio-hog;
-               gpios = <120 0>;
+               gpios = <UNIPHIER_GPIO_IRQ(0) 0>;
                input;
        };
 };
index 71885366cd238339f1ddc03ae3010c4052806ce8..89c01cc8c2088df7eb18e1cfe88e13bd6c78c518 100644 (file)
@@ -7,6 +7,8 @@
  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  */
 
+#include <dt-bindings/gpio/uniphier-gpio.h>
+
 / {
        compatible = "socionext,uniphier-sld8";
        #address-cells = <1>;