Commit 2a934742 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper

ARM: orion5x: use existing dt-bindings include for Device Tree files

The orion5x-lacie-ethernet-disk-mini-v2.dts can benefit from using
gpio.h and input.h dt-bindings headers to replace hardcoded values by
more meaningful macros.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1398202002-28530-13-git-send-email-thomas.petazzoni@free-electrons.comAcked-by: default avatarSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 48be9707
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "orion5x.dtsi" #include "orion5x.dtsi"
/ { / {
...@@ -40,8 +42,8 @@ gpio_keys { ...@@ -40,8 +42,8 @@ gpio_keys {
#size-cells = <0>; #size-cells = <0>;
button@1 { button@1 {
label = "Power-on Switch"; label = "Power-on Switch";
linux,code = <116>; /* KEY_POWER */ linux,code = <KEY_POWER>;
gpios = <&gpio0 18 0>; gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -50,7 +52,7 @@ gpio_leds { ...@@ -50,7 +52,7 @@ gpio_leds {
led@1 { led@1 {
label = "power:blue"; label = "power:blue";
gpios = <&gpio0 16 1>; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment