aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/dts/FRITZ7360SL.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/FRITZ7360SL.dts
parent72d12672de933274f6a0c54277e5621b0ea275e1 (diff)
downloadupstream-eba84bee4ce518dc509fe51f252c5307dccf3a1c.tar.gz
upstream-eba84bee4ce518dc509fe51f252c5307dccf3a1c.tar.bz2
upstream-eba84bee4ce518dc509fe51f252c5307dccf3a1c.zip
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/FRITZ7360SL.dts')
-rw-r--r--target/linux/lantiq/dts/FRITZ7360SL.dts26
1 files changed, 13 insertions, 13 deletions
diff --git a/target/linux/lantiq/dts/FRITZ7360SL.dts b/target/linux/lantiq/dts/FRITZ7360SL.dts
index 02e97810f6..f41ea41f3b 100644
--- a/target/linux/lantiq/dts/FRITZ7360SL.dts
+++ b/target/linux/lantiq/dts/FRITZ7360SL.dts
@@ -1,6 +1,6 @@
/dts-v1/;
-/include/ "vr9.dtsi"
+#include "vr9.dtsi"
/ {
model = "FRITZ7360SL - 1&1 HomeServer";
@@ -115,13 +115,13 @@
poll-interval = <100>;
dect {
label = "power";
- gpios = <&gpio 1 0>;
- linux,code = <0x102>;
+ gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_2>;
};
wifi {
label = "wifi";
- gpios = <&gpio 29 0>;
- linux,code = <0x101>;
+ gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_1>;
};
};
@@ -130,28 +130,28 @@
power_green: power {
label = "fritz7360sl:green:power";
- gpios = <&gpio 32 1>;
+ gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
label = "fritz7360sl:red:power";
- gpios = <&gpio 33 1>;
+ gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
};
info_red {
label = "fritz7360sl:red:info";
- gpios = <&gpio 34 1>;
+ gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
};
info_green: info_green {
label = "fritz7360sl:green:info";
- gpios = <&gpio 47 1>;
+ gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "fritz7360sl:green:wlan";
- gpios = <&gpio 36 1>;
+ gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
};
dect {
label = "fritz7360sl:green:dect";
- gpios = <&gpio 35 1>;
+ gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
};
};
};
@@ -170,14 +170,14 @@
reg = <0>;
phy-mode = "rmii";
phy-handle = <&phy0>;
- // gpios = <&gpio 37 1>;
+ // gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
ethernet@1 {
compatible = "lantiq,xrx200-pdi-port";
reg = <1>;
phy-mode = "rmii";
phy-handle = <&phy1>;
- // gpios = <&gpio 44 1>;
+ // gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
ethernet@2 {
compatible = "lantiq,xrx200-pdi-port";