From: Tolga Cakir Date: Tue, 24 Oct 2017 20:03:33 +0000 (+0200) Subject: ipq806x: fix Zyxel NBG6817 WiFi button X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2bee675d33f57ca7b995e848d3aca987013ee2ae;p=openwrt%2Fstaging%2Fhauke.git 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 --- diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts index 4db1a30592..9abe44eb37 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts @@ -41,7 +41,7 @@ pinmux@800000 { button_pins: button_pins { mux { - pins = "gpio6", "gpio54", "gpio65"; + pins = "gpio53", "gpio54", "gpio65"; function = "gpio"; drive-strength = <2>; bias-pull-up; @@ -334,8 +334,9 @@ wifi { label = "wifi"; - gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>; + gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>; linux,code = ; + linux,input-type = ; }; reset {