aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/BR-6475ND.dts
diff options
context:
space:
mode:
authorL. D. Pinney <ldpinney@gmail.com>2017-07-29 10:14:07 +0800
committerMathias Kresin <dev@kresin.me>2017-08-03 19:37:40 +0200
commit70b192f57358f753842cbe1f8f82e26e8c6f9e1e (patch)
treecba041befbc7be0c927f73327f9a5fcf0a910725 /target/linux/ramips/dts/BR-6475ND.dts
parentb70a96285c0f489be68bfea7a84a7950a58ddc79 (diff)
downloadupstream-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.tar.gz
upstream-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.tar.bz2
upstream-70b192f57358f753842cbe1f8f82e26e8c6f9e1e.zip
ramips: update device tree source files
Use the GPIO dt-bindings macros and add compatible strings in the ramips device tree source files. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts/BR-6475ND.dts')
-rw-r--r--target/linux/ramips/dts/BR-6475ND.dts19
1 files changed, 10 insertions, 9 deletions
diff --git a/target/linux/ramips/dts/BR-6475ND.dts b/target/linux/ramips/dts/BR-6475ND.dts
index a93b8177be..4e52da04b5 100644
--- a/target/linux/ramips/dts/BR-6475ND.dts
+++ b/target/linux/ramips/dts/BR-6475ND.dts
@@ -2,10 +2,11 @@
#include "rt3883.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
- compatible = "BR-6475ND", "ralink,rt3883-soc";
+ compatible = "edimax,br-6475nd", "ralink,rt3883-soc";
model = "Edimax BR-6475nD";
gpio-keys-polled {
@@ -16,13 +17,13 @@
reset {
label = "reset";
- gpios = <&gpio0 7 1>;
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
rfkill {
label = "rfkill";
- gpios = <&gpio0 9 1>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_SW>;
linux,code = <KEY_RFKILL>;
};
@@ -33,17 +34,17 @@
power {
label = "br-6475nd:green:power";
- gpios = <&gpio0 10 1>;
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
wlan {
label = "br-6475nd:amber:wlan";
- gpios = <&gpio0 11 1>;
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
wlan_5ghz {
label = "br-6475nd:amber:wlan_5ghz";
- gpios = <&gpio0 14 1>;
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
@@ -86,8 +87,8 @@
rtl8367 {
compatible = "realtek,rtl8367";
- gpio-sda = <&gpio0 5 0>;
- gpio-sck = <&gpio0 4 0>;
+ gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
};
@@ -102,7 +103,7 @@
usb {
gpio-export,name="usb";
gpio-export,output=<0>;
- gpios = <&gpio0 19 0>;
+ gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
};
};
*/