diff mbox

[v6,8/8] ARM: dts: cygnus: enable GPIO based hook detection

Message ID 1425933902-20652-9-git-send-email-rjui@broadcom.com
State New
Headers show

Commit Message

Ray Jui March 9, 2015, 8:45 p.m. UTC
This enables GPIO based phone hook detection for Broadcom BCM911360
phone factor board (bcm911360_entphn)

Signed-off-by: Ray Jui <rjui@broadcom.com>
---
 arch/arm/boot/dts/bcm911360_entphn.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Linus Walleij March 10, 2015, 10:22 a.m. UTC | #1
On Mon, Mar 9, 2015 at 9:45 PM, Ray Jui <rjui@broadcom.com> wrote:

> 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>

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Florian Fainelli March 10, 2015, 4:39 p.m. UTC | #2
2015-03-10 3:22 GMT-07:00 Linus Walleij <linus.walleij@linaro.org>:
> On Mon, Mar 9, 2015 at 9:45 PM, Ray Jui <rjui@broadcom.com> wrote:
>
>> 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>

Applied to devicetree/next.
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/bcm911360_entphn.dts b/arch/arm/boot/dts/bcm911360_entphn.dts
index d2ee952..7db4843 100644
--- a/arch/arm/boot/dts/bcm911360_entphn.dts
+++ b/arch/arm/boot/dts/bcm911360_entphn.dts
@@ -33,6 +33,7 @@ 
 /dts-v1/;
 
 #include "bcm-cygnus.dtsi"
+#include "dt-bindings/input/input.h"
 
 / {
 	model = "Cygnus Enterprise Phone (BCM911360_ENTPHN)";
@@ -50,4 +51,16 @@ 
 	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>;
+		};
+	};
 };