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 7d0f981561e4e0c91664b318de9888ba8e7f7d39..21c5604fbf0e0e0e92028f11baf21f0fb7f577bb 100644 (file)
                wps {
                        label = "wps";
                        gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_1>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
index 3c2b0a74575c8946b0e6e467ba8ec7c55f319e24..47ab55e27349b16fc246cdf06a92c97dfc247db3 100644 (file)
                restart {
                        label = "restart";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                };
                reset {
                        label = "reset";
index d324e6e8544ff2addd70811141b0f3975e5e6d01..0fa5684feb9f16bc9df345682bce2193581cf3c7 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 2a37a3a0bd320c0bff0db706923ca2aae4ee0d0d..c409fcb1ea15952013e5f328652418523a7e0903 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 e00bd149fc03aa1bcc6f7610defddc81cdc5c5eb..7365cbe5cf6838e11f30b2272b1c8130f53d9dc3 100644 (file)
                        gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
+               /* key DECT is missing */
        };
 
        gpio-leds {
index d707a75265bcfb6d6967924fae86ec7b4b9191e7..28bda1a78d071a41e2e83135b6b025e373f8cc49 100644 (file)
                findhandset {
                        label = "findhandset";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_1>;
+                       linux,code = <KEY_PHONE>;
                };
                wps {
                        label = "wps";
index c290c7081bd41d91816a1b7b428882b4d5943c05..55b47ecc028c40e620f07ece32cf79fce1e1e17b 100644 (file)
                restart {
                        label = "restart";
                        gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_POWER>;
                };
                wps {
                        label = "wps";
index 5ce89178be5c664d73c0e429dfa559ef039e6108..051db9a217ec1e45be366cc070929952380c0b46 100644 (file)
                paging {
                        label = "paging";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_PHONE>;
                };
        };
 
index e12c7bf900560941eb243f4e5815e784e859bc6d..2580674ba9d43778f6089d894a0aaf235f66b205 100644 (file)
                power {
                        label = "power";
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_POWER>;
                };
 /*             wifi {
                        label = "wifi";
index f14cac2850ec31210520d82fd23403f37a4e045e..4cc491531276125e3bfe8950314d5f39b6a5defd 100644 (file)
                dect {
                        label = "dect";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_2>;
+                       linux,code = <KEY_PHONE>;
                };
        };
 
index 796458a6a5af9d91082116c6d3a9617f79629225..2a90a7f8c2ffb8304ab35cc792f3d6a22d3b4755 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 88daae7225a4fd8765d6624ddcdb81be28092bdd..b83596732666298948b1d2dd523a1f2a99c6997b 100644 (file)
                eco {
                        label = "eco";
                        gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RFKILL>;
+                       linux,code = <BTN_0>;
                };
                rfkill {
                        label = "rfkill";
index f814d242d6ded828a5a1db323f64da5f2945f45f..42a36438bf97eb00708759aab68122889788ee42 100644 (file)
                dect_paging {
                        label = "dect_paging";
                        gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_WPS_BUTTON>;
+                       linux,code = <KEY_PHONE>;
                };
        };
 
index 3dbc641e66873b05cfc8426c817b667ccf2db09d..7ae0cb74749bade07f6cf0a93e9f98522a800a4b 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 54bb98e81a4c012981e4abae38a91fe7e534e519..3058152f1b288a91da7a9f9833247935289fc193 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 f647a9658c2aa70a794e3ec90767e175c7ed7c62..101ea54b4587a6ac58597d4245c4759592c1f124 100644 (file)
@@ -41,7 +41,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 3c34c4aaaab4953fbf56f5af4b62838c540df0e7..c9f1105dd2c47f7583ee1cd16edf315bf1836bb8 100644 (file)
@@ -41,7 +41,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 9f8c2d266bb260a29c8ac410f7a12b95b7153016..b42d77ed2fb9f01ac409f90e92c807e3c341dcdd 100644 (file)
@@ -47,7 +47,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 6ca1aa9f62d64a9ec2080046e64df9d8f86640c0..4246fa4f3741e6f027e1e8faa9d25d6c8b0839ae 100644 (file)
@@ -84,7 +84,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index fa753047e89d0269393d09ad1759b2399490c64a..67def7ce7c1bbb0271a83523a844ad5a67b14d03 100644 (file)
@@ -61,7 +61,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 09e448019a25611870386440bd7c1ea627197152..a9aa67684969faf00c04bc4bc7a229a833fd6370 100644 (file)
@@ -84,7 +84,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 03583f99fe654e881a9851d61ccf3b2aa2443f0b..0ddc48f11f57caacd7e2053bee8eaa8d7f610147 100644 (file)
@@ -84,7 +84,7 @@
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <ABS_MT_WIDTH_MAJOR>;
+                       linux,code = <BTN_0>;
                };
        };
 };