Skip to content

Commit

Permalink
ARM: dts: omap3-devkit8000: Add user button support
Browse files Browse the repository at this point in the history
This patch links the user button to the BTN_EXTRA action.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
[tony@atomide.com: added missing sign as noted by Anthoine]
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Anthoine Bourgeois authored and Tony Lindgren committed Aug 6, 2015
1 parent 1e9f747 commit ab00639
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arch/arm/boot/dts/omap3-devkit8000.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/
/dts-v1/;

#include <dt-bindings/input/input.h>

#include "omap34xx.dtsi"
/ {
model = "TimLL OMAP3 Devkit8000";
Expand Down Expand Up @@ -54,6 +56,17 @@
"MAINMIC", "Main Mic",
"Main Mic", "Mic Bias 1";
};

gpio_keys {
compatible = "gpio-keys";

user {
label = "user";
gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_EXTRA>;
gpio-key,wakeup;
};
};
};

&i2c1 {
Expand Down

0 comments on commit ab00639

Please sign in to comment.