ARM: dts: uniphier: use macros in dt-bindings header

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>
This commit is contained in:
Masahiro Yamada 2017-11-17 14:24:45 +09:00
parent 50c4c4e268
commit d1194d493c
8 changed files with 11 additions and 4 deletions

View File

@ -56,7 +56,7 @@
&gpio { &gpio {
xirq1 { xirq1 {
gpio-hog; gpio-hog;
gpios = <121 0>; gpios = <UNIPHIER_GPIO_IRQ(1) 0>;
input; input;
}; };
}; };

View File

@ -7,6 +7,8 @@
* SPDX-License-Identifier: (GPL-2.0+ OR MIT) * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/ */
#include <dt-bindings/gpio/uniphier-gpio.h>
/ { / {
compatible = "socionext,uniphier-ld4"; compatible = "socionext,uniphier-ld4";
#address-cells = <1>; #address-cells = <1>;

View File

@ -58,7 +58,7 @@
&gpio { &gpio {
xirq4 { xirq4 {
gpio-hog; gpio-hog;
gpios = <124 0>; gpios = <UNIPHIER_GPIO_IRQ(4) 0>;
input; input;
}; };
}; };

View File

@ -58,7 +58,7 @@
&gpio { &gpio {
xirq2 { xirq2 {
gpio-hog; gpio-hog;
gpios = <122 0>; gpios = <UNIPHIER_GPIO_IRQ(2) 0>;
input; input;
}; };
}; };

View File

@ -7,6 +7,8 @@
* SPDX-License-Identifier: (GPL-2.0+ OR MIT) * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/ */
#include <dt-bindings/gpio/uniphier-gpio.h>
/ { / {
compatible = "socionext,uniphier-pro4"; compatible = "socionext,uniphier-pro4";
#address-cells = <1>; #address-cells = <1>;

View File

@ -7,6 +7,7 @@
* SPDX-License-Identifier: (GPL-2.0+ OR MIT) * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/ */
#include <dt-bindings/gpio/uniphier-gpio.h>
#include <dt-bindings/thermal/thermal.h> #include <dt-bindings/thermal/thermal.h>
/ { / {

View File

@ -56,7 +56,7 @@
&gpio { &gpio {
xirq0 { xirq0 {
gpio-hog; gpio-hog;
gpios = <120 0>; gpios = <UNIPHIER_GPIO_IRQ(0) 0>;
input; input;
}; };
}; };

View File

@ -7,6 +7,8 @@
* SPDX-License-Identifier: (GPL-2.0+ OR MIT) * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/ */
#include <dt-bindings/gpio/uniphier-gpio.h>
/ { / {
compatible = "socionext,uniphier-sld8"; compatible = "socionext,uniphier-sld8";
#address-cells = <1>; #address-cells = <1>;