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:18 +0100 |
commit | 5d30ff1bc6e5a4f0d1f65f12aa062caf5278ab08 (patch) | |
tree | bc96e0ac54e0902874bb56ac33b58d88abd583f1 /target/linux/ramips/dts/R6220.dtsi | |
parent | 9834c3dae030d59df6302d1063fec491de180e9f (diff) | |
download | upstream-5d30ff1bc6e5a4f0d1f65f12aa062caf5278ab08.tar.gz upstream-5d30ff1bc6e5a4f0d1f65f12aa062caf5278ab08.tar.bz2 upstream-5d30ff1bc6e5a4f0d1f65f12aa062caf5278ab08.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>
(cherry picked from commit f7f9fe5256ebb660d3160452c3c01a9eb080938f)
Diffstat (limited to 'target/linux/ramips/dts/R6220.dtsi')
-rw-r--r-- | target/linux/ramips/dts/R6220.dtsi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/R6220.dtsi b/target/linux/ramips/dts/R6220.dtsi index 4dbb234e82..c9268b0caa 100644 --- a/target/linux/ramips/dts/R6220.dtsi +++ b/target/linux/ramips/dts/R6220.dtsi @@ -58,19 +58,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>; }; }; |