提交 ab00639e 编写于 作者: A Anthoine Bourgeois 提交者: Tony Lindgren

ARM: dts: omap3-devkit8000: Add user button support

This patch links the user button to the BTN_EXTRA action.
Signed-off-by: NAnthoine Bourgeois <anthoine.bourgeois@gmail.com>
[tony@atomide.com: added missing sign as noted by Anthoine]
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 1e9f7474
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
*/ */
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h>
#include "omap34xx.dtsi" #include "omap34xx.dtsi"
/ { / {
model = "TimLL OMAP3 Devkit8000"; model = "TimLL OMAP3 Devkit8000";
...@@ -54,6 +56,17 @@ ...@@ -54,6 +56,17 @@
"MAINMIC", "Main Mic", "MAINMIC", "Main Mic",
"Main Mic", "Mic Bias 1"; "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 { &i2c1 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册