aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorSven Roederer <devel-sven@geroedel.de>2017-05-05 22:18:44 +0200
committerMathias Kresin <dev@kresin.me>2017-05-06 09:49:00 +0200
commit4c3953ba291abfb1d28b1452b6e519367bf4f242 (patch)
tree805d37b43b5df170a914c88f6952f03be0735cfd /target
parent64f2efcdff0f0e3d030340f2bb8fc7e5f6cae5b1 (diff)
downloadupstream-4c3953ba291abfb1d28b1452b6e519367bf4f242.tar.gz
upstream-4c3953ba291abfb1d28b1452b6e519367bf4f242.tar.bz2
upstream-4c3953ba291abfb1d28b1452b6e519367bf4f242.zip
ramips: use GPIO_ACTIVE macros in UBNT-ERX.dts
- reorder includes - use GPIO_ACTIVE_LOW macro instead of hardcoded "1" Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/UBNT-ERX.dts7
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/UBNT-ERX.dts b/target/linux/ramips/dts/UBNT-ERX.dts
index 0b2da95b30..cf86bbb7e6 100644
--- a/target/linux/ramips/dts/UBNT-ERX.dts
+++ b/target/linux/ramips/dts/UBNT-ERX.dts
@@ -1,9 +1,10 @@
-#include <dt-bindings/input/input.h>
-
/dts-v1/;
#include "mt7621.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
model = "UBNT-ERX";
@@ -24,7 +25,7 @@
reset {
label = "reset";
- gpios = <&gpio0 12 1>;
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};