aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-22 17:26:16 -0400
committerJason Cooper <jason@lakedaemon.net>2014-04-26 10:39:31 -0400
commit2a93474299e5c9e39678596ff69fd5dbf1914769 (patch)
tree773599a462603377698dbf5eb89201dfa2e1981a
parent48be9707b4d4e85c950fc9c3ae4ed574a453c060 (diff)
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Link: https://lkml.kernel.org/r/1398202002-28530-13-git-send-email-thomas.petazzoni@free-electrons.com Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts b/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
index 0245bb3a4cb6..24f1ce7c9c10 100644
--- a/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
+++ b/arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
@@ -8,6 +8,8 @@
8 8
9/dts-v1/; 9/dts-v1/;
10 10
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/input/input.h>
11#include "orion5x.dtsi" 13#include "orion5x.dtsi"
12 14
13/ { 15/ {
@@ -40,8 +42,8 @@
40 #size-cells = <0>; 42 #size-cells = <0>;
41 button@1 { 43 button@1 {
42 label = "Power-on Switch"; 44 label = "Power-on Switch";
43 linux,code = <116>; /* KEY_POWER */ 45 linux,code = <KEY_POWER>;
44 gpios = <&gpio0 18 0>; 46 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
45 }; 47 };
46 }; 48 };
47 49
@@ -50,7 +52,7 @@
50 52
51 led@1 { 53 led@1 {
52 label = "power:blue"; 54 label = "power:blue";
53 gpios = <&gpio0 16 1>; 55 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
54 }; 56 };
55 }; 57 };
56}; 58};