diff options
author | David Bauer <mail@david-bauer.net> | 2019-11-09 19:10:51 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-11-09 19:15:40 +0100 |
commit | 3459013257e0e3f02efc8b1682aaa3a35e0fe374 (patch) | |
tree | f2b0c0fb7e4f7e92c0871c232843fc6c3b0ff24d /target | |
parent | cabaaf06fe4185aa51c46aa8cd3b4041904f624a (diff) | |
download | upstream-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>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/dts/mt7621_netgear_r6220.dts | 6 |
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>; }; }; |