diff options
author | Tolga Cakir <tolga@cevel.net> | 2017-10-24 22:03:33 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-10-25 09:22:14 +0200 |
commit | f4d4a3c0ef5839e3a8e15027870520fe0b48312c (patch) | |
tree | 8ff54950d4f969ae1b267b52e874bc247f2b7045 /target/linux/ipq806x/files-4.9 | |
parent | 080061c1ba61805974aed22dbf59438da329e5ea (diff) | |
download | upstream-f4d4a3c0ef5839e3a8e15027870520fe0b48312c.tar.gz upstream-f4d4a3c0ef5839e3a8e15027870520fe0b48312c.tar.bz2 upstream-f4d4a3c0ef5839e3a8e15027870520fe0b48312c.zip |
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>
Diffstat (limited to 'target/linux/ipq806x/files-4.9')
-rw-r--r-- | target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts index 5fe14da268..930f2ad075 100644 --- a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts +++ b/target/linux/ipq806x/files-4.9/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 = <KEY_RFKILL>; + linux,input-type = <EV_SW>; }; reset { |