aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2019-11-09 19:10:51 +0100
committerDavid Bauer <mail@david-bauer.net>2019-11-09 19:15:40 +0100
commit3459013257e0e3f02efc8b1682aaa3a35e0fe374 (patch)
treef2b0c0fb7e4f7e92c0871c232843fc6c3b0ff24d
parentcabaaf06fe4185aa51c46aa8cd3b4041904f624a (diff)
downloadupstream-3459013257e0e3f02efc8b1682aaa3a35e0fe374.tar.gz
upstream-3459013257e0e3f02efc8b1682aaa3a35e0fe374.tar.bz2
upstream-3459013257e0e3f02efc8b1682aaa3a35e0fe374.zip
ramips: correct R6220 button flag
All buttons on the Netgear R6220 are active-low while they are flagged as active-high. The GPIO status reads the following for no buttons pressed: root@64367-r6220:~# cat /sys/kernel/debug/gpio gpio-7 ( |wps ) in hi gpio-8 ( |wifi ) in hi gpio-14 ( |reset ) in hi Signed-off-by: David Bauer <mail@david-bauer.net>
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_r6220.dts6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7621_netgear_r6220.dts b/target/linux/ramips/dts/mt7621_netgear_r6220.dts
index 281c0d5331..f23e12b852 100644
--- a/target/linux/ramips/dts/mt7621_netgear_r6220.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_r6220.dts
@@ -12,19 +12,19 @@
wps {
label = "wps";
- gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
wifi {
label = "wifi";
- gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
- gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};