treewide: fix button keys codes used in dts
authorMathias Kresin <dev@kresin.me>
Sun, 27 Nov 2016 08:47:51 +0000 (09:47 +0100)
committerMathias Kresin <dev@kresin.me>
Sun, 27 Nov 2016 14:34:23 +0000 (15:34 +0100)
Use keycodes that matches the intended use case based on the label.

Signed-off-by: Mathias Kresin <dev@kresin.me>
22 files changed:
target/linux/lantiq/dts/ARV452CQW.dts
target/linux/lantiq/dts/ARV7510PW22.dts
target/linux/lantiq/dts/ARV752DPW.dts
target/linux/lantiq/dts/ARV752DPW22.dts
target/linux/lantiq/dts/ARV8539PW22.dts
target/linux/lantiq/dts/BTHOMEHUBV2B.dts
target/linux/lantiq/dts/BTHOMEHUBV3A.dts
target/linux/lantiq/dts/EASY80920.dtsi
target/linux/lantiq/dts/FRITZ3370.dts
target/linux/lantiq/dts/FRITZ7320.dts
target/linux/lantiq/dts/FRITZ7360SL.dts
target/linux/lantiq/dts/VGV7519.dtsi
target/linux/lantiq/dts/VR200v.dts
target/linux/lantiq/dts/WBMR.dts
target/linux/lantiq/dts/WBMR300.dts
target/linux/ramips/dts/AWM002-EVB-4M.dts
target/linux/ramips/dts/AWM002-EVB-8M.dts
target/linux/ramips/dts/AWM003-EVB.dts
target/linux/ramips/dts/UR-326N4G.dts
target/linux/ramips/dts/UR-336UN.dts
target/linux/ramips/dts/WR512-3GN-4M.dts
target/linux/ramips/dts/WR512-3GN-8M.dts

index 7d0f981..21c5604 100644 (file)
                wps {
                        label = "wps";
                        gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_1>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
index 3c2b0a7..47ab55e 100644 (file)
                restart {
                        label = "restart";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                };
                reset {
                        label = "reset";
index d324e6e..0fa5684 100644 (file)
                restart {
                        label = "restart";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                };
                dsl {
                        label = "dsl";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_1>;
+                       linux,code = <BTN_0>;
                };
                reset {
                        label = "reset";
index 2a37a3a..c409fcb 100644 (file)
                restart {
                        label = "restart";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_LEFT>;
+                       linux,code = <KEY_POWER>;
                };
                dsl {
                        label = "dsl";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_RIGHT>;
+                       linux,code = <BTN_0>;
                };
                reset {
                        label = "reset";
index e00bd14..7365cbe 100644 (file)
                        gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
+               /* key DECT is missing */
        };
 
        gpio-leds {
index d707a75..28bda1a 100644 (file)
                findhandset {
                        label = "findhandset";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_1>;
+                       linux,code = <KEY_PHONE>;
                };
                wps {
                        label = "wps";
index c290c70..55b47ec 100644 (file)
                restart {
                        label = "restart";
                        gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_POWER>;
                };
                wps {
                        label = "wps";
index 5ce8917..051db9a 100644 (file)
                paging {
                        label = "paging";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_PHONE>;
                };
        };
 
index e12c7bf..2580674 100644 (file)
                power {
                        label = "power";
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                };
 /*             wifi {
                        label = "wifi";
index f14cac2..4cc4915 100644 (file)
                dect {
                        label = "dect";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_2>;
+                       linux,code = <KEY_PHONE>;
                };
        };
 
index 796458a..2a90a7f 100644 (file)
                #size-cells = <0>;
                poll-interval = <100>;
                dect {
-                       label = "power";
+                       label = "dect";
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
-                       linux,code = <BTN_2>;
+                       linux,code = <KEY_PHONE>;
                };
                wifi {
                        label = "wifi";
                        gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
-                       linux,code = <BTN_1>;
+                       linux,code = <KEY_WLAN>;
                };
        };
 
index 88daae7..b835967 100644 (file)
                eco {
                        label = "eco";
                        gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RFKILL>;
+                       linux,code = <BTN_0>;
                };
                rfkill {
                        label = "rfkill";
index f814d24..42a3643 100644 (file)
                dect_paging {
                        label = "dect_paging";
                        gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_WPS_BUTTON>;
+                       linux,code = <KEY_PHONE>;
                };
        };
 
index 3dbc641..7ae0cb7 100644 (file)
                eject {
                        label = "eject";
                        gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RFKILL>;
+                       linux,code = <KEY_EJECTCD>;
                };
                movie {
                        label = "movie";
                        gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_9>;
+                       linux,code = <KEY_VIDEO>;
                };
        };
 
index 54bb98e..3058152 100644 (file)
                router {
                        label = "router";
                        gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
-                       linux,code = <BTN_0>;
+                       linux,code = <BTN_1>;
                        linux,input-type = <EV_SW>;
                };
        };
index f647a96..101ea54 100644 (file)
@@ -41,7 +41,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 3c34c4a..c9f1105 100644 (file)
@@ -41,7 +41,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 9f8c2d2..b42d77e 100644 (file)
@@ -47,7 +47,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 6ca1aa9..4246fa4 100644 (file)
@@ -84,7 +84,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index fa75304..67def7c 100644 (file)
@@ -61,7 +61,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 09e4480..a9aa676 100644 (file)
@@ -84,7 +84,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 03583f9..0ddc48f 100644 (file)
@@ -84,7 +84,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };