brcm63xx: HG553 buttons support
authorJonas Gorski <jogo@openwrt.org>
Thu, 16 Jul 2015 11:12:41 +0000 (11:12 +0000)
committerJonas Gorski <jogo@openwrt.org>
Thu, 16 Jul 2015 11:12:41 +0000 (11:12 +0000)
This patch adds buttons support for Huawei EchoLife HG553.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46388

target/linux/brcm63xx/dts/hg553.dts

index 140e2de404c4c814f60fd79cf29d93ee06060a47..4d798246cf29f69a41a1bf090d4106e08b1421d2 100644 (file)
@@ -6,6 +6,26 @@
        model = "Huawei EchoLife HG553";
        compatible = "huawei,hg553", "brcm,bcm6358";
 
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <20>;
+               debounce-interval = <60>;
+
+               rfkill {
+                       label = "rfkill";
+                       gpios = <&gpio0 9 1>;
+                       linux,code = <0xf7>;
+               };
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio1 5 1>;
+                       linux,code = <0x198>;
+               };
+       };
+
        gpio-leds {
                compatible = "gpio-leds";