提交 c9b60e92 编写于 作者: G Geert Uytterhoeven 提交者: Simon Horman

ARM: shmobile: armadillo-reference dts: Use KEY_* macros for gpio-keys

Signed-off-by: NGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 19f647cb
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
/dts-v1/; /dts-v1/;
#include "r8a7740.dtsi" #include "r8a7740.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pwm/pwm.h> #include <dt-bindings/pwm/pwm.h>
...@@ -77,26 +78,26 @@ ...@@ -77,26 +78,26 @@
power-key { power-key {
gpios = <&pfc 99 GPIO_ACTIVE_LOW>; gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
linux,code = <116>; linux,code = <KEY_POWER>;
label = "SW3"; label = "SW3";
gpio-key,wakeup; gpio-key,wakeup;
}; };
back-key { back-key {
gpios = <&pfc 100 GPIO_ACTIVE_LOW>; gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
linux,code = <158>; linux,code = <KEY_BACK>;
label = "SW4"; label = "SW4";
}; };
menu-key { menu-key {
gpios = <&pfc 97 GPIO_ACTIVE_LOW>; gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
linux,code = <139>; linux,code = <KEY_MENU>;
label = "SW5"; label = "SW5";
}; };
home-key { home-key {
gpios = <&pfc 98 GPIO_ACTIVE_LOW>; gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
linux,code = <102>; linux,code = <KEY_HOME>;
label = "SW6"; label = "SW6";
}; };
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册