ARM: dts: use key code macros on Origen and Arndale boards
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 27 May 2014 15:56:16 +0000 (00:56 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 30 May 2014 17:06:51 +0000 (02:06 +0900)
Key code macros improve readability on exnos4210-origen,
exynos4412-origen and exynos5250-arndale boards.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
[kgene.kim@samsung.com: squashed similar two patches]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/boot/dts/exynos4210-origen.dts
arch/arm/boot/dts/exynos4412-origen.dts
arch/arm/boot/dts/exynos5250-arndale.dts

index f018e21491687aed73eae0bc30d4ca2b73225430..f767c425d0b5d277a369e4d1101efe26a208d3fb 100644 (file)
@@ -16,6 +16,7 @@
 
 /dts-v1/;
 #include "exynos4210.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Insignal Origen evaluation board based on Exynos4210";
                up {
                        label = "Up";
                        gpios = <&gpx2 0 1>;
-                       linux,code = <103>;
+                       linux,code = <KEY_UP>;
                        gpio-key,wakeup;
                };
 
                down {
                        label = "Down";
                        gpios = <&gpx2 1 1>;
-                       linux,code = <108>;
+                       linux,code = <KEY_DOWN>;
                        gpio-key,wakeup;
                };
 
                back {
                        label = "Back";
                        gpios = <&gpx1 7 1>;
-                       linux,code = <158>;
+                       linux,code = <KEY_BACK>;
                        gpio-key,wakeup;
                };
 
                home {
                        label = "Home";
                        gpios = <&gpx1 6 1>;
-                       linux,code = <102>;
+                       linux,code = <KEY_HOME>;
                        gpio-key,wakeup;
                };
 
                menu {
                        label = "Menu";
                        gpios = <&gpx1 5 1>;
-                       linux,code = <139>;
+                       linux,code = <KEY_MENU>;
                        gpio-key,wakeup;
                };
        };
index bd3985b767c4c472ca7749668e23fea968aa603a..e925c9fbfb07f95e173823970f43bace333a685a 100644 (file)
@@ -14,6 +14,7 @@
 
 /dts-v1/;
 #include "exynos4412.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Insignal Origen evaluation board based on Exynos4412";
                key_home {
                        keypad,row = <0>;
                        keypad,column = <0>;
-                       linux,code = <102>;
+                       linux,code = <KEY_HOME>;
                };
 
                key_down {
                        keypad,row = <0>;
                        keypad,column = <1>;
-                       linux,code = <108>;
+                       linux,code = <KEY_DOWN>;
                };
 
                key_up {
                        keypad,row = <1>;
                        keypad,column = <0>;
-                       linux,code = <103>;
+                       linux,code = <KEY_UP>;
                };
 
                key_menu {
                        keypad,row = <1>;
                        keypad,column = <1>;
-                       linux,code = <139>;
+                       linux,code = <KEY_MENU>;
                };
 
                key_back {
                        keypad,row = <2>;
                        keypad,column = <0>;
-                       linux,code = <158>;
+                       linux,code = <KEY_BACK>;
                };
 
                key_enter {
                        keypad,row = <2>;
                        keypad,column = <1>;
-                       linux,code = <28>;
+                       linux,code = <KEY_ENTER>;
                };
        };
 
index 090f9830b129b72259e4976be890917182b8a6f5..1f5afb39355f4d82c536fdb20ec4fa5bc463f2eb 100644 (file)
@@ -12,6 +12,7 @@
 /dts-v1/;
 #include "exynos5250.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Insignal Arndale evaluation board based on EXYNOS5250";
                menu {
                        label = "SW-TACT2";
                        gpios = <&gpx1 4 1>;
-                       linux,code = <139>;
+                       linux,code = <KEY_MENU>;
                        gpio-key,wakeup;
                };
 
                home {
                        label = "SW-TACT3";
                        gpios = <&gpx1 5 1>;
-                       linux,code = <102>;
+                       linux,code = <KEY_HOME>;
                        gpio-key,wakeup;
                };
 
                up {
                        label = "SW-TACT4";
                        gpios = <&gpx1 6 1>;
-                       linux,code = <103>;
+                       linux,code = <KEY_UP>;
                        gpio-key,wakeup;
                };
 
                down {
                        label = "SW-TACT5";
                        gpios = <&gpx1 7 1>;
-                       linux,code = <108>;
+                       linux,code = <KEY_DOWN>;
                        gpio-key,wakeup;
                };
 
                back {
                        label = "SW-TACT6";
                        gpios = <&gpx2 0 1>;
-                       linux,code = <158>;
+                       linux,code = <KEY_BACK>;
                        gpio-key,wakeup;
                };
 
                wakeup {
                        label = "SW-TACT7";
                        gpios = <&gpx2 1 1>;
-                       linux,code = <143>;
+                       linux,code = <KEY_WAKEUP>;
                        gpio-key,wakeup;
                };
        };