summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/dts/VR200v.dts
diff options
context:
space:
mode:
authorAndreas Eberlein <foodeas@aeberlein.de>2016-09-29 18:22:55 +0200
committerMathias Kresin <dev@kresin.me>2016-10-19 19:55:04 +0200
commiteba84bee4ce518dc509fe51f252c5307dccf3a1c (patch)
treee2f79978f223531baed356be87f12d3d407f342b /target/linux/lantiq/dts/VR200v.dts
parent72d12672de933274f6a0c54277e5621b0ea275e1 (diff)
downloadmtk-20170518-eba84bee4ce518dc509fe51f252c5307dccf3a1c.zip
mtk-20170518-eba84bee4ce518dc509fe51f252c5307dccf3a1c.tar.gz
mtk-20170518-eba84bee4ce518dc509fe51f252c5307dccf3a1c.tar.bz2
lantiq: Sanitize device tree files
The device tree file of ARV752DPW uses numbers/hex values for gpio states and input event codes. This cleans it up and uses the available macros from header files. This way the functions are easier to read and comprehend. Signed-off-by: Andreas Eberlein <foodeas@aeberlein.de> [sanitize all device tree files] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/dts/VR200v.dts')
-rw-r--r--target/linux/lantiq/dts/VR200v.dts42
1 files changed, 21 insertions, 21 deletions
diff --git a/target/linux/lantiq/dts/VR200v.dts b/target/linux/lantiq/dts/VR200v.dts
index 8715b89..777bef9 100644
--- a/target/linux/lantiq/dts/VR200v.dts
+++ b/target/linux/lantiq/dts/VR200v.dts
@@ -1,6 +1,6 @@
/dts-v1/;
-/include/ "vr9.dtsi"
+#include "vr9.dtsi"
/ {
model = "VR200v - TP-LINK Archer VR200v";
@@ -68,13 +68,13 @@
ifxhcd@E101000 {
status = "okay";
- gpios = <&gpio 33 0>;
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
- gpios = <&gpio 33 0>;
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
};
};
@@ -91,27 +91,27 @@
poll-interval = <100>;
reset {
label = "reset";
- gpios = <&gpio 22 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
wifi {
label = "wifi";
- gpios = <&gpio 0 0>;
- linux,code = <0xf7>;
- linux,input-type = <5>; /* EV_SW */
+ gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RFKILL>;
+ linux,input-type = <EV_SW>;
};
wps {
label = "wps";
- gpios = <&gpio 2 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
dect_paging {
label = "dect_paging";
- gpios = <&gpio 39 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
@@ -119,35 +119,35 @@
compatible = "gpio-leds";
power: power {
label = "vr200v:blue:power";
- gpios = <&gpio 46 1>;
+ gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "vr200v:blue:dsl";
- gpios = <&gpio 4 1>;
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
internet: internet {
label = "vr200v:blue:internet";
- gpios = <&gpio 5 1>;
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "vr200v:blue:usb";
- gpios = <&gpio 25 1>;
+ gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
};
eth {
label = "vr200v:blue:lan";
- gpios = <&gpio 40 1>;
+ gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wlan {
label = "vr200v:blue:wlan";
- gpios = <&gpio 24 1>;
+ gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
wlan5g {
label = "vr200v:blue:wlan5g";
- gpios = <&gpio 20 1>;
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
phone {
label = "vr200v:blue:phone";
- gpios = <&gpio 44 1>;
+ gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
};
};
@@ -229,7 +229,7 @@
reg = <0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
- // gpios = <&gpio 42 1>;
+ // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
ethernet@5 {
compatible = "lantiq,xrx200-pdi-port";