]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: cygnus: enable GPIO based hook detection
authorRay Jui <rjui@broadcom.com>
Mon, 9 Mar 2015 20:45:02 +0000 (13:45 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 10 Mar 2015 16:27:05 +0000 (09:27 -0700)
This enables GPIO based phone hook detection for Broadcom BCM911360
phone factor board (bcm911360_entphn)

Signed-off-by: Ray Jui <rjui@broadcom.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm911360_entphn.dts

index d2ee952805488df5c410fad41ccbf2d66d4d45e7..7db484323fd62dc7ed9a988e6a3008597f59467f 100644 (file)
@@ -33,6 +33,7 @@
 /dts-v1/;
 
 #include "bcm-cygnus.dtsi"
+#include "dt-bindings/input/input.h"
 
 / {
        model = "Cygnus Enterprise Phone (BCM911360_ENTPHN)";
        uart3: serial@18023000 {
                status = "okay";
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               hook {
+                       label = "HOOK";
+                       linux,code = <KEY_O>;
+                       gpios = <&gpio_asiu 48 0>;
+               };
+       };
 };