aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/DIR-320-B1.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/DIR-320-B1.dts')
-rw-r--r--target/linux/ramips/dts/DIR-320-B1.dts17
1 files changed, 9 insertions, 8 deletions
diff --git a/target/linux/ramips/dts/DIR-320-B1.dts b/target/linux/ramips/dts/DIR-320-B1.dts
index 0716229835..9e05b63e98 100644
--- a/target/linux/ramips/dts/DIR-320-B1.dts
+++ b/target/linux/ramips/dts/DIR-320-B1.dts
@@ -2,10 +2,11 @@
#include "rt5350.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
- compatible = "DIR-320-B1", "ralink,rt5350-soc";
+ compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
model = "D-Link DIR-320 B1";
gpio-leds {
@@ -13,17 +14,17 @@
status {
label = "dir-320-b1:green:status";
- gpios = <&gpio0 9 1>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
usb {
label = "dir-320-b1:green:usb";
- gpios = <&gpio0 14 1>;
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
wps {
label = "dir-320-b1:green:wps";
- gpios = <&gpio0 13 1>;
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
};
@@ -35,13 +36,13 @@
reset {
label = "reset";
- gpios = <&gpio0 10 1>;
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
- gpios = <&gpio0 0 1>;
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
@@ -53,13 +54,13 @@
usb {
gpio-export,name = "usb";
gpio-export,output = <1>;
- gpios = <&gpio0 7 0>;
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
};
root_hub {
gpio-export,name = "root_hub";
gpio-export,output = <1>;
- gpios = <&gpio0 12 0>;
+ gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
};
};