[source] ipq806x: fix Zyxel NBG6817 WiFi button

LEDE Commits lede-commits at lists.infradead.org
Wed Oct 25 00:23:59 PDT 2017


mkresin pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/2bee675d33f57ca7b995e848d3aca987013ee2ae

commit 2bee675d33f57ca7b995e848d3aca987013ee2ae
Author: Tolga Cakir <tolga at cevel.net>
AuthorDate: Tue Oct 24 22:03:33 2017 +0200

    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 at cevel.net>
---
 .../linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 4db1a30..9abe44e 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 at 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 = <KEY_RFKILL>;
+			linux,input-type = <EV_SW>;
 		};
 
 		reset {



More information about the lede-commits mailing list