mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
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>
This commit is contained in:
parent
cabaaf06fe
commit
3459013257
@ -12,19 +12,19 @@
|
|||||||
|
|
||||||
wps {
|
wps {
|
||||||
label = "wps";
|
label = "wps";
|
||||||
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_WPS_BUTTON>;
|
linux,code = <KEY_WPS_BUTTON>;
|
||||||
};
|
};
|
||||||
|
|
||||||
wifi {
|
wifi {
|
||||||
label = "wifi";
|
label = "wifi";
|
||||||
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_RFKILL>;
|
linux,code = <KEY_RFKILL>;
|
||||||
};
|
};
|
||||||
|
|
||||||
reset {
|
reset {
|
||||||
label = "reset";
|
label = "reset";
|
||||||
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_RESTART>;
|
linux,code = <KEY_RESTART>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user