summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/dts/EASY80920.dtsi
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/EASY80920.dtsi
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/EASY80920.dtsi')
-rw-r--r--target/linux/lantiq/dts/EASY80920.dtsi32
1 files changed, 16 insertions, 16 deletions
diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi
index 57dc457..c643bf1 100644
--- a/target/linux/lantiq/dts/EASY80920.dtsi
+++ b/target/linux/lantiq/dts/EASY80920.dtsi
@@ -1,4 +1,4 @@
-/include/ "vr9.dtsi"
+#include "vr9.dtsi"
/ {
chosen {
@@ -116,7 +116,7 @@
ifxhcd@E101000 {
status = "okay";
- gpios = <&gpio 33 0>;
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
@@ -138,7 +138,7 @@
interrupt-map = <
0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
>;
- gpios-reset = <&gpio 21 0>;
+ gpios-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
};
@@ -157,13 +157,13 @@
poll-interval = <100>;
/* reset {
label = "reset";
- gpios = <&gpio 7 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};*/
paging {
label = "paging";
- gpios = <&gpio 11 1>;
- linux,code = <0x100>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_0>;
};
};
@@ -172,40 +172,40 @@
power: power {
label = "easy80920:green:power";
- gpios = <&stp 9 0>;
+ gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
warning {
label = "easy80920:green:warning";
- gpios = <&stp 22 0>;
+ gpios = <&stp 22 GPIO_ACTIVE_HIGH>;
};
fxs1 {
label = "easy80920:green:fxs1";
- gpios = <&stp 21 0>;
+ gpios = <&stp 21 GPIO_ACTIVE_HIGH>;
};
fxs2 {
label = "easy80920:green:fxs2";
- gpios = <&stp 20 0>;
+ gpios = <&stp 20 GPIO_ACTIVE_HIGH>;
};
fxo {
label = "easy80920:green:fxo";
- gpios = <&stp 19 0>;
+ gpios = <&stp 19 GPIO_ACTIVE_HIGH>;
};
usb1: usb1 {
label = "easy80920:green:usb1";
- gpios = <&stp 18 0>;
+ gpios = <&stp 18 GPIO_ACTIVE_HIGH>;
};
usb2: usb2 {
label = "easy80920:green:usb2";
- gpios = <&stp 15 0>;
+ gpios = <&stp 15 GPIO_ACTIVE_HIGH>;
};
sd {
label = "easy80920:green:sd";
- gpios = <&stp 14 0>;
+ gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
};
wps {
label = "easy80920:green:wps";
- gpios = <&stp 12 0>;
+ gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
};
};
};