mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-20 11:39:02 +00:00
ipq806x: fix Zyxel NBG6817 WiFi button
Zyxel NBG6817 features a WiFi button, which becomes functional by setting correct GPIO. It is a switch-type button, so it emits KEY_RFKILL on each ON and OFF state. This is achieved by setting input-type to EV_SW. Signed-off-by: Tolga Cakir <tolga@cevel.net>
This commit is contained in:
parent
f5935f78a1
commit
2bee675d33
@ -41,7 +41,7 @@
|
|||||||
pinmux@800000 {
|
pinmux@800000 {
|
||||||
button_pins: button_pins {
|
button_pins: button_pins {
|
||||||
mux {
|
mux {
|
||||||
pins = "gpio6", "gpio54", "gpio65";
|
pins = "gpio53", "gpio54", "gpio65";
|
||||||
function = "gpio";
|
function = "gpio";
|
||||||
drive-strength = <2>;
|
drive-strength = <2>;
|
||||||
bias-pull-up;
|
bias-pull-up;
|
||||||
@ -334,8 +334,9 @@
|
|||||||
|
|
||||||
wifi {
|
wifi {
|
||||||
label = "wifi";
|
label = "wifi";
|
||||||
gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
|
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_RFKILL>;
|
linux,code = <KEY_RFKILL>;
|
||||||
|
linux,input-type = <EV_SW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
reset {
|
reset {
|
||||||
|
Loading…
Reference in New Issue
Block a user