From 2078870a250124a94bad1c8fbf390bfac66b588e Mon Sep 17 00:00:00 2001 From: AnilKumar Ch Date: Tue, 6 Nov 2012 19:18:38 +0530 Subject: [PATCH] --- yaml --- r: 339910 b: refs/heads/master c: 00834b783ee3029a96489fae0c2eb3b1a198205d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/boot/dts/am335x-evmsk.dts | 31 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ff2e6b5e0063..329c4939e5c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d98258b81721d452d2da98e9fc83c57e6ef70667 +refs/heads/master: 00834b783ee3029a96489fae0c2eb3b1a198205d diff --git a/trunk/arch/arm/boot/dts/am335x-evmsk.dts b/trunk/arch/arm/boot/dts/am335x-evmsk.dts index 0f825dd2d178..f5a6162a4ff2 100644 --- a/trunk/arch/arm/boot/dts/am335x-evmsk.dts +++ b/trunk/arch/arm/boot/dts/am335x-evmsk.dts @@ -139,6 +139,37 @@ default-state = "off"; }; }; + + gpio_buttons: gpio_buttons@0 { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + switch@1 { + label = "button0"; + linux,code = <0x100>; + gpios = <&gpio3 3 0>; + }; + + switch@2 { + label = "button1"; + linux,code = <0x101>; + gpios = <&gpio3 2 0>; + }; + + switch@3 { + label = "button2"; + linux,code = <0x102>; + gpios = <&gpio1 30 0>; + gpio-key,wakeup; + }; + + switch@4 { + label = "button3"; + linux,code = <0x103>; + gpios = <&gpio3 5 0>; + }; + }; }; /include/ "tps65910.dtsi"