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

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
Geert Uytterhoeven 2014-03-23 20:35:02 +01:00 committed by Simon Horman
parent c9b60e922c
commit 39f0163098
1 changed files with 8 additions and 7 deletions

View File

@ -14,6 +14,7 @@
/dts-v1/; /dts-v1/;
#include "sh73a0.dtsi" #include "sh73a0.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>
/ { / {
@ -112,43 +113,43 @@ gpio-keys {
back-key { back-key {
gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>; gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
linux,code = <158>; linux,code = <KEY_BACK>;
label = "SW3"; label = "SW3";
}; };
right-key { right-key {
gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>; gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
linux,code = <106>; linux,code = <KEY_RIGHT>;
label = "SW2-R"; label = "SW2-R";
}; };
left-key { left-key {
gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>; gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
linux,code = <105>; linux,code = <KEY_LEFT>;
label = "SW2-L"; label = "SW2-L";
}; };
enter-key { enter-key {
gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>; gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
linux,code = <28>; linux,code = <KEY_ENTER>;
label = "SW2-P"; label = "SW2-P";
}; };
up-key { up-key {
gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>; gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
linux,code = <103>; linux,code = <KEY_UP>;
label = "SW2-U"; label = "SW2-U";
}; };
down-key { down-key {
gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>; gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
linux,code = <108>; linux,code = <KEY_DOWN>;
label = "SW2-D"; label = "SW2-D";
}; };
home-key { home-key {
gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>; gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
linux,code = <102>; linux,code = <KEY_HOME>;
label = "SW1"; label = "SW1";
}; };
}; };