Commit 2d7a5bd9 authored by Sachin Kamat's avatar Sachin Kamat Committed by Kukjin Kim

ARM: dts: use key code macros on Origen and Arndale boards

Key code macros improve readability on exnos4210-origen,
exynos4412-origen and exynos5250-arndale boards.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
[kgene.kim@samsung.com: squashed similar two patches]
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent db070679
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
/dts-v1/; /dts-v1/;
#include "exynos4210.dtsi" #include "exynos4210.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "Insignal Origen evaluation board based on Exynos4210"; model = "Insignal Origen evaluation board based on Exynos4210";
...@@ -259,35 +260,35 @@ gpio_keys { ...@@ -259,35 +260,35 @@ gpio_keys {
up { up {
label = "Up"; label = "Up";
gpios = <&gpx2 0 1>; gpios = <&gpx2 0 1>;
linux,code = <103>; linux,code = <KEY_UP>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
down { down {
label = "Down"; label = "Down";
gpios = <&gpx2 1 1>; gpios = <&gpx2 1 1>;
linux,code = <108>; linux,code = <KEY_DOWN>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
back { back {
label = "Back"; label = "Back";
gpios = <&gpx1 7 1>; gpios = <&gpx1 7 1>;
linux,code = <158>; linux,code = <KEY_BACK>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
home { home {
label = "Home"; label = "Home";
gpios = <&gpx1 6 1>; gpios = <&gpx1 6 1>;
linux,code = <102>; linux,code = <KEY_HOME>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
menu { menu {
label = "Menu"; label = "Menu";
gpios = <&gpx1 5 1>; gpios = <&gpx1 5 1>;
linux,code = <139>; linux,code = <KEY_MENU>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
}; };
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
/dts-v1/; /dts-v1/;
#include "exynos4412.dtsi" #include "exynos4412.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "Insignal Origen evaluation board based on Exynos4412"; model = "Insignal Origen evaluation board based on Exynos4412";
...@@ -84,37 +85,37 @@ keypad@100A0000 { ...@@ -84,37 +85,37 @@ keypad@100A0000 {
key_home { key_home {
keypad,row = <0>; keypad,row = <0>;
keypad,column = <0>; keypad,column = <0>;
linux,code = <102>; linux,code = <KEY_HOME>;
}; };
key_down { key_down {
keypad,row = <0>; keypad,row = <0>;
keypad,column = <1>; keypad,column = <1>;
linux,code = <108>; linux,code = <KEY_DOWN>;
}; };
key_up { key_up {
keypad,row = <1>; keypad,row = <1>;
keypad,column = <0>; keypad,column = <0>;
linux,code = <103>; linux,code = <KEY_UP>;
}; };
key_menu { key_menu {
keypad,row = <1>; keypad,row = <1>;
keypad,column = <1>; keypad,column = <1>;
linux,code = <139>; linux,code = <KEY_MENU>;
}; };
key_back { key_back {
keypad,row = <2>; keypad,row = <2>;
keypad,column = <0>; keypad,column = <0>;
linux,code = <158>; linux,code = <KEY_BACK>;
}; };
key_enter { key_enter {
keypad,row = <2>; keypad,row = <2>;
keypad,column = <1>; keypad,column = <1>;
linux,code = <28>; linux,code = <KEY_ENTER>;
}; };
}; };
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
/dts-v1/; /dts-v1/;
#include "exynos5250.dtsi" #include "exynos5250.dtsi"
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/input.h>
/ { / {
model = "Insignal Arndale evaluation board based on EXYNOS5250"; model = "Insignal Arndale evaluation board based on EXYNOS5250";
...@@ -444,42 +445,42 @@ gpio_keys { ...@@ -444,42 +445,42 @@ gpio_keys {
menu { menu {
label = "SW-TACT2"; label = "SW-TACT2";
gpios = <&gpx1 4 1>; gpios = <&gpx1 4 1>;
linux,code = <139>; linux,code = <KEY_MENU>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
home { home {
label = "SW-TACT3"; label = "SW-TACT3";
gpios = <&gpx1 5 1>; gpios = <&gpx1 5 1>;
linux,code = <102>; linux,code = <KEY_HOME>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
up { up {
label = "SW-TACT4"; label = "SW-TACT4";
gpios = <&gpx1 6 1>; gpios = <&gpx1 6 1>;
linux,code = <103>; linux,code = <KEY_UP>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
down { down {
label = "SW-TACT5"; label = "SW-TACT5";
gpios = <&gpx1 7 1>; gpios = <&gpx1 7 1>;
linux,code = <108>; linux,code = <KEY_DOWN>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
back { back {
label = "SW-TACT6"; label = "SW-TACT6";
gpios = <&gpx2 0 1>; gpios = <&gpx2 0 1>;
linux,code = <158>; linux,code = <KEY_BACK>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
wakeup { wakeup {
label = "SW-TACT7"; label = "SW-TACT7";
gpios = <&gpx2 1 1>; gpios = <&gpx2 1 1>;
linux,code = <143>; linux,code = <KEY_WAKEUP>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment