2b9b900064afee1a6c24454452974207854b665e
[openwrt/staging/chunkeey.git] / target / linux / bcm53xx / patches-3.18 / 047-ARM-BCM5301X-Add-buttons-for-Netgear-R6250.patch
1 From f6f8234439737171e571a41264280e844a429699 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Sun, 30 Nov 2014 18:28:29 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add buttons for Netgear R6250
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 ---
12 arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 25 +++++++++++++++++++++++++
13 arch/arm/boot/dts/bcm5301x.dtsi | 1 +
14 2 files changed, 26 insertions(+)
15
16 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
17 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
18 @@ -66,4 +66,29 @@
19 linux,default-trigger = "default-off";
20 };
21 };
22 +
23 + gpio-keys {
24 + compatible = "gpio-keys";
25 + #address-cells = <1>;
26 + #size-cells = <0>;
27 + poll-interval = <200>;
28 +
29 + wps {
30 + label = "WPS";
31 + linux,code = <KEY_WPS_BUTTON>;
32 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
33 + };
34 +
35 + rfkill {
36 + label = "WiFi";
37 + linux,code = <KEY_RFKILL>;
38 + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
39 + };
40 +
41 + restart {
42 + label = "Reset";
43 + linux,code = <KEY_RESTART>;
44 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
45 + };
46 + };
47 };
48 --- a/arch/arm/boot/dts/bcm5301x.dtsi
49 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
50 @@ -9,6 +9,7 @@
51 */
52
53 #include <dt-bindings/gpio/gpio.h>
54 +#include <dt-bindings/input/input.h>
55 #include <dt-bindings/interrupt-controller/irq.h>
56 #include <dt-bindings/interrupt-controller/arm-gic.h>
57 #include "skeleton.dtsi"