treewide: dts: use keycode defines from input dt-binding
authorMathias Kresin <dev@kresin.me>
Fri, 11 Nov 2016 21:43:08 +0000 (22:43 +0100)
committerMathias Kresin <dev@kresin.me>
Sun, 13 Nov 2016 06:07:58 +0000 (07:07 +0100)
All compiled device tree files not mentioned are binary identical to the
former ones.

Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts.

Due to the include of the input binding header, the BTN_* node names in:

  - ramips/GL-MT300A.dts
  - ramips/GL-MT300N.dts
  - ramips/GL-MT750.dts
  - ramips/Timecloud.dts

will be changed by the compiler to the numerical equivalent.

Move the binding include of lantiq boards to the file where they are
used the first time to hint the user where the values do come from.

Signed-off-by: Mathias Kresin <dev@kresin.me>
211 files changed:
target/linux/brcm63xx/dts/homehub2a.dts
target/linux/lantiq/dts/ARV4510PW.dts
target/linux/lantiq/dts/ARV4518PWR01.dtsi
target/linux/lantiq/dts/ARV4519PW.dts
target/linux/lantiq/dts/ARV4520PW.dts
target/linux/lantiq/dts/ARV4525PW.dts
target/linux/lantiq/dts/ARV452CQW.dts
target/linux/lantiq/dts/ARV7506PW11.dts
target/linux/lantiq/dts/ARV7510PW22.dts
target/linux/lantiq/dts/ARV7518PW.dts
target/linux/lantiq/dts/ARV7519PW.dts
target/linux/lantiq/dts/ARV7519RW22.dts
target/linux/lantiq/dts/ARV7525PW.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/BTHOMEHUBV5A.dts
target/linux/lantiq/dts/DGN1000B.dts
target/linux/lantiq/dts/DGN3500.dtsi
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/GIGASX76X.dts
target/linux/lantiq/dts/H201L.dts
target/linux/lantiq/dts/P2601HNFX.dts
target/linux/lantiq/dts/P2812HNUFX.dtsi
target/linux/lantiq/dts/TDW89X0.dtsi
target/linux/lantiq/dts/VG3503J.dts
target/linux/lantiq/dts/VGV7510KW22.dtsi
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/lantiq/dts/amazonse.dtsi
target/linux/lantiq/dts/ar9.dtsi
target/linux/lantiq/dts/danube.dtsi
target/linux/lantiq/dts/vr9.dtsi
target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts
target/linux/ramips/dts/3G-6200N.dts
target/linux/ramips/dts/3G-6200NL.dts
target/linux/ramips/dts/3G150B.dts
target/linux/ramips/dts/3G300M.dts
target/linux/ramips/dts/A5-V11.dts
target/linux/ramips/dts/AI-BR100.dts
target/linux/ramips/dts/AIR3GII.dts
target/linux/ramips/dts/ALL0239-3G.dts
target/linux/ramips/dts/ALL0256N-4M.dts
target/linux/ramips/dts/ALL0256N-8M.dts
target/linux/ramips/dts/AR670W.dts
target/linux/ramips/dts/AR725W.dts
target/linux/ramips/dts/ASL26555-16M.dts
target/linux/ramips/dts/ASL26555-8M.dts
target/linux/ramips/dts/ATP-52B.dts
target/linux/ramips/dts/AWAPN2403.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/ArcherC20i.dts
target/linux/ramips/dts/BC2.dts
target/linux/ramips/dts/BR-6425.dts
target/linux/ramips/dts/BR-6475ND.dts
target/linux/ramips/dts/BROADWAY.dts
target/linux/ramips/dts/CF-WR800N.dts
target/linux/ramips/dts/CS-QR10.dts
target/linux/ramips/dts/CY-SWR1100.dts
target/linux/ramips/dts/D105.dts
target/linux/ramips/dts/DAP-1350.dts
target/linux/ramips/dts/DB-WRT01.dts
target/linux/ramips/dts/DCH-M225.dts
target/linux/ramips/dts/DCS-930.dts
target/linux/ramips/dts/DCS-930L-B1.dts
target/linux/ramips/dts/DIR-300-B1.dts
target/linux/ramips/dts/DIR-300-B7.dts
target/linux/ramips/dts/DIR-320-B1.dts
target/linux/ramips/dts/DIR-600-B1.dts
target/linux/ramips/dts/DIR-600-B2.dts
target/linux/ramips/dts/DIR-610-A1.dts
target/linux/ramips/dts/DIR-615-D.dts
target/linux/ramips/dts/DIR-615-H1.dts
target/linux/ramips/dts/DIR-620-A1.dts
target/linux/ramips/dts/DIR-620-D1.dts
target/linux/ramips/dts/DIR-645.dts
target/linux/ramips/dts/DIR-810L.dts
target/linux/ramips/dts/DIR-860L-B1.dts
target/linux/ramips/dts/DUZUN-DM06.dts
target/linux/ramips/dts/E1700.dts
target/linux/ramips/dts/ESR-9753.dts
target/linux/ramips/dts/EX2700.dts
target/linux/ramips/dts/F5D8235_V1.dts
target/linux/ramips/dts/F7C027.dts
target/linux/ramips/dts/FIREWRT.dts
target/linux/ramips/dts/FONERA20N.dts
target/linux/ramips/dts/GL-MT300A.dts
target/linux/ramips/dts/GL-MT300N.dts
target/linux/ramips/dts/GL-MT750.dts
target/linux/ramips/dts/HC5XXX.dtsi
target/linux/ramips/dts/HG255D.dts
target/linux/ramips/dts/HLKRM04.dts
target/linux/ramips/dts/HPM.dts
target/linux/ramips/dts/HT-TM02.dts
target/linux/ramips/dts/HW550-3G.dts
target/linux/ramips/dts/IP2202.dts
target/linux/ramips/dts/JHR-N805R.dts
target/linux/ramips/dts/JHR-N825R.dts
target/linux/ramips/dts/JHR-N926R.dts
target/linux/ramips/dts/LINKIT7688.dts
target/linux/ramips/dts/M2M.dts
target/linux/ramips/dts/M3.dts
target/linux/ramips/dts/M4-4M.dts
target/linux/ramips/dts/M4-8M.dts
target/linux/ramips/dts/MINIEMBPLUG.dts
target/linux/ramips/dts/MINIEMBWIFI.dts
target/linux/ramips/dts/MIWIFI-MINI.dts
target/linux/ramips/dts/MLW221.dts
target/linux/ramips/dts/MLWG2.dts
target/linux/ramips/dts/MOFI3500-3GN.dts
target/linux/ramips/dts/MPRA1.dts
target/linux/ramips/dts/MPRA2.dts
target/linux/ramips/dts/MR-102N.dts
target/linux/ramips/dts/MT7620a.dts
target/linux/ramips/dts/MT7620a_MT7610e.dts
target/linux/ramips/dts/MT7620a_V22SG.dts
target/linux/ramips/dts/MZK-750DHP.dts
target/linux/ramips/dts/MZK-DP150N.dts
target/linux/ramips/dts/MZK-EX300NP.dts
target/linux/ramips/dts/MZK-EX750NP.dts
target/linux/ramips/dts/MZK-W300NH2.dts
target/linux/ramips/dts/MicroWRT.dts
target/linux/ramips/dts/NA930.dts
target/linux/ramips/dts/NBG-419N.dts
target/linux/ramips/dts/NBG-419N2.dts
target/linux/ramips/dts/NW718.dts
target/linux/ramips/dts/Newifi-D1.dts
target/linux/ramips/dts/OY-0001.dts
target/linux/ramips/dts/PBR-D1.dts
target/linux/ramips/dts/PBR-M1.dts
target/linux/ramips/dts/PSG1208.dts
target/linux/ramips/dts/PSG1218.dts
target/linux/ramips/dts/PSR-680W.dts
target/linux/ramips/dts/PWH2004.dts
target/linux/ramips/dts/PX-4885.dtsi
target/linux/ramips/dts/RE6500.dts
target/linux/ramips/dts/RP-N53.dts
target/linux/ramips/dts/RT-G32-B1.dts
target/linux/ramips/dts/RT-N10-PLUS.dts
target/linux/ramips/dts/RT-N13U.dts
target/linux/ramips/dts/RT-N14U.dts
target/linux/ramips/dts/RT-N15.dts
target/linux/ramips/dts/RT-N56U.dts
target/linux/ramips/dts/RUT5XX.dts
target/linux/ramips/dts/SAP-G3200U3.dts
target/linux/ramips/dts/SK-WB8.dts
target/linux/ramips/dts/SL-R7205.dts
target/linux/ramips/dts/TEW-691GR.dts
target/linux/ramips/dts/TEW-692GR.dts
target/linux/ramips/dts/TEW-714TRU.dts
target/linux/ramips/dts/TINY-AC.dts
target/linux/ramips/dts/Timecloud.dts
target/linux/ramips/dts/UR-326N4G.dts
target/linux/ramips/dts/UR-336UN.dts
target/linux/ramips/dts/V11STFE.dts
target/linux/ramips/dts/V22RW-2X2.dts
target/linux/ramips/dts/VR500.dts
target/linux/ramips/dts/W150M.dts
target/linux/ramips/dts/W306R_V20.dts
target/linux/ramips/dts/W502U.dts
target/linux/ramips/dts/WCR150GN.dts
target/linux/ramips/dts/WF-2881.dts
target/linux/ramips/dts/WHR-1166D.dts
target/linux/ramips/dts/WHR-300HP2.dts
target/linux/ramips/dts/WHR-600D.dts
target/linux/ramips/dts/WHR-G300N.dts
target/linux/ramips/dts/WIDORA-NEO.dts
target/linux/ramips/dts/WITI.dts
target/linux/ramips/dts/WIZFI630A.dts
target/linux/ramips/dts/WL-330N.dts
target/linux/ramips/dts/WL-330N3G.dts
target/linux/ramips/dts/WL-341V3.dts
target/linux/ramips/dts/WL-351.dts
target/linux/ramips/dts/WLI-TX4-AG300N.dts
target/linux/ramips/dts/WMR-300.dts
target/linux/ramips/dts/WNCE2001.dts
target/linux/ramips/dts/WNDR3700V5.dts
target/linux/ramips/dts/WR512-3GN-4M.dts
target/linux/ramips/dts/WR512-3GN-8M.dts
target/linux/ramips/dts/WR6202.dts
target/linux/ramips/dts/WRH-300CR.dts
target/linux/ramips/dts/WRTNODE2.dtsi
target/linux/ramips/dts/WSR-1166.dts
target/linux/ramips/dts/WSR-600.dts
target/linux/ramips/dts/WT3020-4M.dts
target/linux/ramips/dts/WT3020-8M.dts
target/linux/ramips/dts/WZR-AGL300NH.dts
target/linux/ramips/dts/X5.dts
target/linux/ramips/dts/X8.dts
target/linux/ramips/dts/XDXRN502J.dts
target/linux/ramips/dts/Y1.dtsi
target/linux/ramips/dts/YOUKU-YK1.dts
target/linux/ramips/dts/ZBT-APE522II.dts
target/linux/ramips/dts/ZBT-CPE102.dts
target/linux/ramips/dts/ZBT-WA05.dts
target/linux/ramips/dts/ZBT-WE826.dts
target/linux/ramips/dts/ZBT-WG2626.dts
target/linux/ramips/dts/ZBT-WG3526.dts
target/linux/ramips/dts/ZBT-WR8305RT.dts
target/linux/ramips/dts/ZTE-Q7.dts

index af5136c88243f5b21761281aba7e2e1e439dcf99..b86a48fe40daf24c272c1e1dd3d009e0c86f8637 100644 (file)
@@ -43,7 +43,7 @@
                phone {
                        label = "phone";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <169>;
+                       linux,code = <KEY_PHONE>;
                };
                reset {
                        label = "reset";
index 6f07c5f996e5d923953976ce9c68d6223c2d2bf3..c34ffe81d947b87b653e20e48daaf9c56c69877c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV4510PW - Wippies, Elisa";
 
index 49b7e50eb61ae722b3de18d362587793efd834a6..84c3c4aff568322a4c10511a43a451093d350f05 100644 (file)
@@ -1,5 +1,7 @@
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
index 43334f18d7b4536b9001b342a62b6340283aa045..77d466d82609995600c50767f940bf3481fb2f77 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
 
index 17288b35273f058bf52c107afca9a65651bf15a3..0466968e6f39c66c3fbf0a57ff169e6395dc2052 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV4520PW - Easybox 800, WAV-281";
 
index 69fd1aa29d0bf9269fd6077ef162e71577f20f4d..605df428ef15913ee4e24d3eed3a6dc459581de8 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV4525PW - Speedport W501V Typ A";
 
index 4710a0148680ab918efe834c0c442149500a5ca1..7d0f981561e4e0c91664b318de9888ba8e7f7d39 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV452CQW - Arcor 801";
 
index 5c8b0fe3a377512f98c845a10b75c6c121e0a57b..ef3ff306a9489b8a1e4503fc14ddbadbc1fdd770 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV7506PW11 - Alice/O2 IAD 4421";
 
index 079c85630821f100eda2672a061d17a142e493bd..3c2b0a74575c8946b0e6e467ba8ec7c55f319e24 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV7510PW22 - Astoria Networks";
 
index d44927b813e88a97caea51ba8963a79a87685ac6..8a6b620eb71ffa7b541d9d8ceba46cc6f4189b87 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV7518PW - Astoria Networks";
 
index 1fa52c3d905d3a5edcbc9e850e6d323f0b90c3ee..ea9b0dab006ba6c46356ef2227808247b459806f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV7519PW - Astoria Networks";
 
index 3d08b9384059ae2ce2bbbd89b9802f634b886739..c25a3b5d5ee5b9b17b3d469ec6b8e35413b58f2b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV7519RW22 - Orange Livebox 2.1";
 
index f259c17d264baecd1b61dcb758789ffbafff7a4d..be498e4d1eae87f41c6503ebd9d9e66cda500733 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV7525PW - Speedport W303V Typ A";
 
index d51a70a593ee677536472e717a95b591a2d9a879..d324e6e8544ff2addd70811141b0f3975e5e6d01 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV752DPW - Arcor 802";
 
index 7343a5d2ffbcbe96cc7a1d441cdeefbe55834fe1..2a37a3a0bd320c0bff0db706923ca2aae4ee0d0d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV752DPW22 - Arcor 803";
 
index 5728993017cef1d974c2f61dc82ba4bb213cb6ec..e00bd149fc03aa1bcc6f7610defddc81cdc5c5eb 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "ARV8539PW22 - Speedport W 504V Typ A";
 
index 502132e4e9cec22c2401258f1182ee3fb03f1b7a..d707a75265bcfb6d6967924fae86ec7b4b9191e7 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "BTHOMEHUBV2B - BT Home Hub 2B";  /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */
 
index e3a252bfc411a5ad70bfc4d5c1123d0c55915556..c290c7081bd41d91816a1b7b428882b4d5943c05 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "ar9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "BTHOMEHUBV3A - BT Home Hub 3A";  /* SoC: Lantiq ar9 @ 333MHz */
 
index c2fe11a59e3abc0e990aadca2b293d634430bacf..f99d32e07143aeaae4b392cbacf6138d601d2142 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "BTHOMEHUBV5A - BT Home Hub 5A";
 
index a63199f4f55af097f6d92d8e8838dba3c6df6b9e..e15a4e25ced9deb4df46825e0cae759c6b10952c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "amazonse.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "DGN1000B - Netgear DGN1000B";
 
index c7d0b2d30ccb29c6327410522ff6e78b457f4586..1d0d71cdaee82873c2594bd25fe3a61442c703e9 100644 (file)
@@ -1,5 +1,7 @@
 #include "ar9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "root= console=ttyLTQ0,115200";
index bce8d5e2657b917cbe975de39b15b761cade3cfc..5ce89178be5c664d73c0e429dfa559ef039e6108 100644 (file)
@@ -1,5 +1,7 @@
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
index 775fa5d43825b4e3a524b181f43ae493c705ca9a..e12c7bf900560941eb243f4e5815e784e859bc6d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "FRITZ3370 - Fritz!Box WLAN 3370";
 
index e1e70bef6c43b0c934f20b3ea9382bae5c45f3da..f14cac2850ec31210520d82fd23403f37a4e045e 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "ar9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "FRITZ7320 - 1&1 HomeServer";
 
index f41ea41f3b87f600799138deb3e8ffb21c6ebedc..796458a6a5af9d91082116c6d3a9617f79629225 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "FRITZ7360SL - 1&1 HomeServer";
 
index 6507157d986fc3d4af0e7cc9e494339ea6dfda19..6602693b7ce21c5d13db37d938349e766765ae0a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "danube.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "GIGASX76X - Gigaset SX761,SX762,SX763";
 
index 85723592b59b781fce1f7aa8c67502efe9a1f5cb..7d4a24c661eec88bfe34b33d0445fc0cc0d41b65 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "ar9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "H201L - ZTE H210L";
 
index 250de38122e7a1e12ccb2417b45af0e59a59b5fa..c82ab3dcb816c035ad26ff2f1f9f531956fbea64 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "ar9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "P2601HNFX - ZyXEL P-2601HN-Fx";
 
index f0dfe98501869bb2cc55433469164804fb9a757a..afd13eaf035fad0d158386dc9080f9fee9f0aa15 100644 (file)
@@ -1,5 +1,7 @@
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
index fd37352959df32ef1524f55faf09fbded1d42f22..6447451d183fdeb3a9285e2d2f384732c989a5ba 100644 (file)
@@ -1,5 +1,7 @@
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
index 46b047a09d76011c33d80c9df15e674c274890b9..db25b8748843f3b68cfb18c77dac41b7a996bca5 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "VG3503J - BT OpenReach VDSL Modem";
 
index 5ca2844d08a131ac238482e86169432fcc05a6b6..370ef57e06a233d0ab7695a9a7a206f4ec8ebbf7 100644 (file)
@@ -1,5 +1,7 @@
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "VGV7510KW22 - o2 Box 6431";
 
index a7b421fff93ab69a62875ed809623c3cd77a4bbe..ad4233a43d050ff95b9a894e1efe5e9dc705557b 100644 (file)
@@ -1,5 +1,7 @@
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
 
        model = "VGV7519 - KPN Experiabox V8";
index 777bef9372067c6484842a13a86c92c5fbc865a7..f814d242d6ded828a5a1db323f64da5f2945f45f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "VR200v - TP-LINK Archer VR200v";
 
index 07671d60536e44f89dd7dcdf6ae2361c30671737..3dbc641e66873b05cfc8426c817b667ccf2db09d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "ar9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "WBMR - Buffalo WBMR-HP-G300H";
 
index dc0b2862a9ec4a98ccc2382c9d6e75812b43668f..54bb98e81a4c012981e4abae38a91fe7e534e519 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "WBMR300 - Buffalo WBMR-300HPD";
 
index 520f0e0e852c2cdd3bbd9f7b4a0ca7ec2fb2ab02..33a5a3533982638aeebad4989c0a71ec3bcfb9bd 100644 (file)
@@ -1,5 +1,4 @@
 #include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
index 32bed972b1cdeeecd956ae812e85452a77d85397..4d3fd6f9a33d09dd7317a6ee485db966c7a070a4 100644 (file)
@@ -1,5 +1,4 @@
 #include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
index 39f2865779b92c4cef98a34c78ac97b5d265fdd6..62e31d6bec59c8ef66f18c13954e962e70c0a366 100644 (file)
@@ -1,5 +1,4 @@
 #include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
index 5478e1a9df73df1960f961f9c8cd13043913ac85..779e23e61f7315ea75e8672572b80586fd435444 100644 (file)
@@ -1,5 +1,4 @@
 #include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
index 4dc969c1fd9498882bd45278efcec2db723f318b..712c03e4256d018b3ee00cfd9b0c01e8f321419f 100644 (file)
@@ -9,6 +9,8 @@
 /dts-v1/;
 #include "ox820.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "Akitio MyCloud mini";
 
                power {
                        label = "power";
                        gpios = <&GPIOA 11 1>;
-                       linux,code = <116>;
+                       linux,code = <KEY_POWER>;
                };
                reset {
                        label = "reset";
                        gpios = <&GPIOB 6 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index b5c79dede386d8cb51844ea708667b131d216792..1312fd63b56468934517317c9350f5354e489dc8 100644 (file)
@@ -9,6 +9,8 @@
 /dts-v1/;
 #include "ox820.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "Shuttle KD20";
 
                power {
                        label = "power";
                        gpios = <&GPIOA 10 1>;
-                       linux,code = <116>;
+                       linux,code = <KEY_POWER>;
                };
                reset {
                        label = "reset";
                        gpios = <&GPIOA 11 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                eject1 {
                        label = "eject1";
                        gpios = <&GPIOA 5 1>;
-                       linux,code = <161>;
+                       linux,code = <KEY_EJECTCD>;
                };
                eject2 {
                        label = "eject2";
index a0704bb348ea63f72529c767c32e582e1a92cfa5..a8112c947c07e7ae4a5f39b90b241435424b40a0 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "ox820.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "MitraStar Technology Corp. STG-212";
 
                reset {
                        label = "reset";
                        gpios = <&GPIOB 11 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                copy {
                        label = "copy";
                        gpios = <&GPIOB 13 1>;
-                       linux,code = <0x85>;
+                       linux,code = <KEY_COPY>;
                };
        };
 
index a8032c5a78d5acf8f8561b77468174f07651960a..502020e5d1b24bae51491549cf6da65f78e4ae3c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "3G-6200N", "ralink,rt3050-soc";
        model = "Edimax 3g-6200n";
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "wlanswitch";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index 453e45b0226067892842bdeb68bf165f0bfec951..111fef314ff55566265c387c40eacd133f390275 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "3G-6200NL", "ralink,rt3050-soc";
        model = "Edimax 3g-6200nl";
@@ -67,7 +69,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 3d348ff0f35a74a6f4ee20a747813d9f880b025f..b64f9403676cbc3960bf0719b29fa878902b4d1c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "3G150B", "ralink,rt5350-soc";
        model = "Tenda 3G150B";
@@ -29,7 +31,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index df770d83d5110b063b4ac0126a0cb06029a005ed..4d19bca6dad3464556a7afb8e97d1b0d3df89466 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "3G300M", "ralink,rt3052-soc";
        model = "Tenda 3G300M";
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 51eb00587460634fd19ef6c6156bec909bb9d3ee..748e1edac75951f74522efbb8d05ead76b68a54e 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "A5-V11", "ralink,rt5350-soc";
        model = "A5-V11";
@@ -29,7 +31,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 2c3293331a95e885360a52b72bbf06aeddaf081e..2405ae700fd34b38988ac19a187c1f48a769b633 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "AI-BR100", "ralink,mt7620a-soc";
        model = "Aigale Ai-BR100";
@@ -29,7 +31,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 2b08895b496bc098738be0e715e37f69d11cbf6b..4d9a3b543248b9ccc4bf55015ed52678a0fb9c1d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "AIR3GII", "ralink,rt5350-soc";
        model = "AirLive Air3GII";
@@ -29,7 +31,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index d1d92e168c9b0e11414589f173e9d394cd333b42..7957bad2f9b9eadbc8c453ac6677c6441af5f679 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ALL0239-3G", "ralink,rt3052-soc";
        model = "Allnet ALL0239-3G";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                connect {
                        label = "connect";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0xda>;
+                       linux,code = <KEY_CONNECT>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 1cfaed67bb7c50c88918b47b8c418fa47c536b01..19cef87cbd8e4cdd525126e783540ca02eb5fba7 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ALL0256N", "ralink,rt3050-soc";
        model = "Allnet ALL0256N";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 074273d6088c08ab16418d50f218b0bdf29dec34..a3fbeecb2796ae27b63879124d321525e4348ec2 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ALL0256N", "ralink,rt3050-soc";
        model = "Allnet ALL0256N";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index c1eac438816dc5e593ec06399fa7d417b2563e65..3d26c3b6ff4e3c43c19ab354d62240d3e85fcc79 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "AR670W", "ralink,rt2880-soc";
        model = "Airlink101 AR670W";
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 3b8cfb3be7117788ac36b2809f5db6cc817d87ae..3a2003e8a376f8dc9428ad6d8b98e147629e4790 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "AR725W", "ralink,rt2880-soc";
        model = "Airlink101 AR725W";
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 56f3c9d99c9fb854ece6b76f57338ca3886d2fe6..2887a6ef02734aeb5793a8b181de5168a22d50d8 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ASL26555", "ralink,rt3050-soc";
        model = "Alpha ASL26555";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 12 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 0dbc1dd337366c1950c7c3d558bcf1168ce0be58..5ab65938a1a5596de626da4aa7982aeae6607645 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ASL26555", "ralink,rt3050-soc";
        model = "Alpha ASL26555";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 12 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index c15d3a464588bc83bed8ff2f237f0c89c6b19907..7e872985dd21ce2685a53d1936a4708af72f59be 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ATP-52B", "ralink,rt3052-soc";
        model = "Argus ATP-52B";
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 7babe42d56f84397b06537d69055c9e84af08f23..a1b5b217b22e10e59836d487d03fc53e7258684b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "AWAPN2403", "ralink,rt3052-soc";
        model = "AsiaRF AWAPN2403";
@@ -24,7 +26,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index e1252325578f4ddd0e640bfaeebabf912ef39153..f647a9658c2aa70a794e3ec90767e175c7ed7c62 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "AWM002-4M.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "AsiaRF AWM002 EVB";
 
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
index f2f91bb3d93e2750ae251427bfcf95b6390cea96..3c34c4aaaab4953fbf56f5af4b62838c540df0e7 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "AWM002-8M.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        model = "AsiaRF AWM002 EVB";
 
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
index 13e6964ccc207bf9a75f32c686ae67282377824e..9f8c2d266bb260a29c8ac410f7a12b95b7153016 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "AWM002-8M.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "AWM003", "ralink,rt5350-soc";
        model = "AsiaRF AWM003 EVB";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
index a58fa57ced5d675c23979d99d969add5fc2de68c..711274e62578079eeef67116511a9875f40ff54d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "TP-Link Archer C20i";
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 5ae10a31a0f796813da37ffc1b5895b47c60e611..55cf8964f35e7937211e39730a032e1edff5693d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "BC2", "ralink,rt3052-soc";
        model = "NexAira BC2";
@@ -56,7 +58,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 17 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index b871ead992aa5191a8fb08c3f54701ec4d398287..1e13c97ada215eb8084bc064d03222161c10b862 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "BR-6425", "ralink,rt3052-soc";
        model = "Edimax BR-6425";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "RFKILL switch";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index 2ab2cba8941c92a9d3f9d26c541b498bc3d2ec95..a93b8177bee54e850ee58d301cbd8f7434ec860d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "BR-6475ND", "ralink,rt3883-soc";
        model = "Edimax BR-6475nD";
                reset {
                        label = "reset";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 9 1>;
-                       linux,input-type = <5>;
-                       linux,code = <0xf7>;
+                       linux,input-type = <EV_SW>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 
index 790dcc0467f2664dc10664540ee4fe658e0d4a11..6cfac0f988ea7ba54311ba32bd7bd66ee7b9a85a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "BROADWAY", "ralink,rt3052-soc";
        model = "Hauppauge Broadway";
@@ -61,7 +63,7 @@
                factory {
                        label = "Factory Reset button";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 913f142f3528490ca59cbfada1990a9c5e566e1c..6ce4b27301fb19b021f4fd0553b6b8f461d914f6 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "cf-wr800n", "ralink,mt7620n-soc";
        model = "Comfast CF-WR800N";
@@ -38,7 +40,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index c3cb711a05f1e520d0298c1a6545f98f80a27967..bdd828fe8fde7c1f0547ef02e6a3b8f2f2ff7164 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Planex CS-QR10";
                s1 {
                        label = "reset";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                s2 {
                        label = "wps";
                        gpios = <&gpio1 3 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 95827d5017f534ca18111ff922eab463c5cdac5b..e77227952588c1566113a4c2778c5ef3a14e0244 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "CY-SWR1100", "ralink,rt3883-soc";
        model = "Samsung CY-SWR1100";
                reset {
                        label = "reset";
                        gpios = <&gpio0 6 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 3 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 2e86d1edac2a35e138243759984c23547a106f33..f7ace49f6285a7c2c19a884d2863e2f3223194db 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "D105", "ralink,rt3050-soc";
        model = "Huawei D105";
@@ -61,7 +63,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 4628544fb6ace70d3d37f7d6c0654d623061a0a3..c3225db9527ba333bd8c1b4f24445c14763d9119 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DAP-1350", "ralink,rt3052-soc";
        model = "D-Link DAP-1350";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                rt {
                        label = "rt";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index 4560dc5ca84b9387687d23488e1b26eefdf11aaf..400c5ef51b4b50df4c3a4ac1291a90d491a7edbd 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Planex DB-WRT01";
@@ -24,7 +26,7 @@
                s1 {
                        label = "wps";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index ee7c2c404a5ae7d6fd62e50884b2d33d9ec91e7d..21133a9b88cd1bc1ad0f006610634d130467e394 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
        model = "D-Link DCH-M225";
                wps {
                        label = "wps";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 373973c3df82c0719de1987e139692fdab42b959..d57682ec7bf1aae0bb1dfd46e6367701b5713c4d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DCS-930", "ralink,rt3050-soc";
        model = "D-Link DCS-930";
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 133245cb74b174b7db3ab2a6589fb292e4aca712..17996d2358c2f898440d0562ad469d44c5c8099f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DCS-930L-B1", "ralink,rt5350-soc";
        model = "D-Link DCS-930L B1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 20 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 4f0a7ffde751b9e326915c53f8fd8eac00d500fa..2ba6ae64c60b13f6df97b73c9c30bc2d685f28c6 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-300-B1", "ralink,rt3050-soc";
        model = "D-Link DIR-300 B1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 9b9a6a4592601d6c235b521afe1d80d81359ad0d..fb93f5d646e101f7eb5ace3b911667098fa6de6c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-300-B7", "ralink,rt5350-soc";
        model = "D-Link DIR-300 B7";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 102e06abf9ac2859d5d8f999dd4d4cbd2328bf55..2335c9a391e955e44cd62209dfff4b9795777a64 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-320-B1", "ralink,rt5350-soc";
        model = "D-Link DIR-320 B1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index d45d3c5ccdf417b562e85186f3c5f9a56e159f10..493d49bb73096d87a6e5575bfeed6a433f9219fd 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-600-B1", "ralink,rt3050-soc";
        model = "D-Link DIR-600 B1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index f0269cfa2e5968000708e94e6e08fe4abce52c66..f1f10ad2545b3c562554d30b9d7b27ae6c704875 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-600-B2", "ralink,rt3050-soc";
        model = "D-Link DIR-600 B2";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 9ec66b4b003c19a746265702dcfc819aa2fb3dc1..e69997f474648f945e340b99bb3c93c26fd4ae78 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-610-A1", "ralink,rt5350-soc";
        model = "D-Link DIR-610 A1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index cac9d2602cb9e00f69cb74c7d701b755ac9f885d..67705fe3ce445eadc7851a9c59984495ea224331 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-615-D", "ralink,rt3050-soc";
        model = "D-Link DIR-615 D";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index d53c82609f0e8d68ac10e17f5aba16da30e331cd..9fbd7356c496130b61c38a229cc8aed08e5f13dd 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3352.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-615-H1", "ralink,rt3352-soc";
        model = "D-Link DIR-615 H1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 68a23465a643d5cbcabb899b884b44651e6af058..50967b29c2a839d9379c102b2fe2a5fdb47099d5 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-620-A1", "ralink,rt3050-soc";
        model = "D-Link DIR-620 A1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 5cf330e66bbec23e96c35ae3a2e1f77a3e1fba80..1bdcaffb4ac626c4969dc85090197d240938a393 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3352.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-620-D1", "ralink,rt3352-soc";
        model = "D-Link DIR-620 D1";
@@ -29,7 +31,7 @@
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index d508297ac186ecf0eccc3fc05cd9c945610a3a89..30eccaf5f591b14f6d8a237665ecfb0bf9741d68 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "DIR-645", "ralink,rt3883-soc";
        model = "D-Link DIR-645";
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 14 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 1f9ad8a5d2d6a5a40c562469a39fdcbabee4eb0c..4ccea0d45b032f38595023c1f9aa6720e0ae5973 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
        model = "D-Link DIR-810L";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 
index 579df585c71a5a33de1c9fa2cd32599f588313cf..5154a4dedb6e245b4f627601175d7ab0f1b7098c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
        model = "D-Link DIR-860L B1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 05bb56181e5930a121c6c86298c28efc7bc85300..5715791a68807c026ce6078b582c53787b23e0f4 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc";
        model = "DuZun DM06";
                reset {
                        label = "reset";
                        gpios = <&gpio1 14 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 6 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 36126ab42b0c0acf3b1036a28d1d5ea5dda3a8fe..050303a41364ed7be984668d11625041dcad5103 100644 (file)
@@ -12,6 +12,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "linksys,e1700", "ralink,mt7620a-soc";
        model = "Linksys E1700";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 2 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 6869166787460b28cd88141ae2ceca81707a794d..59a961d69907cec5c4c274360aace960e18b5a0b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ESR-9753", "ralink,rt3052-soc";
        model = "Senao / EnGenius ESR-9753";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index c711adc6b4e754e794c4e0ed6c0bbd21b0d1ce52..348ca789d1051cc16f68a6ff009d2d5001c2588c 100644 (file)
@@ -12,6 +12,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Netgear EX2700";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index dacdea6ca400be3a50daf49e9294c42bc861492d..74e423c26544e9bc010b04c948a002effa7a5ba0 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index c8ed765df284de7998d84176a220761d1b5ae8eb..d6a150a4a7757852105a3d598cf9ef5c16a453cc 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "F7C027", "ralink,rt5350-soc";
        model = "Belkin F7C027";
                top {
                        label = "restore";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                power {
                        label = "power";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
 
                sensor {
                        label = "sensor";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 4299b68a34056ddaf1f72f7bdd9896980d5e288b..b318e6808bc7b838226d5b6ae2ea4b28406e8bff 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "Firefly FireWRT";
                wps {
                        label = "wps";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                power {
                        label = "power";
                        gpios = <&gpio0 23 1>;
-                       linux,code = <116>;
+                       linux,code = <KEY_POWER>;
                };
        };
 };
index b7eb91ea7bc47f7a357c1f0d4930db822c09b15d..c409f9b01d73d554dbc109b7d4a3e9d6a17ab060 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "FONERA20N", "ralink,rt3052-soc";
        model = "La Fonera 2.0N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                switch {
                        label = "switch";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0xf7>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <KEY_RFKILL>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
index 5edb7ca4878eb0657987c9ab65b4140efe793a5d..6922b958db464c491d2a8d73a5822b8a45f64b35 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT300A", "ralink,mt7620a-soc";
        model = "GL-MT300A";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index 341a8f64628338023225e7ea1bffbff7a1efe5f5..c6feb96f89c2d62dc8819818250e1b24b33ad48d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT300N", "ralink,mt7620a-soc";
        model = "GL-MT300N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio2 2 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio2 3 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index c59ffb37565bcc293ba46fa36db00362d80a9d59..46679842bc52c6aa052b2713a48539c0b27cec3f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT750", "ralink,mt7620a-soc";
        model = "GL-MT750";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio2 2 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio2 3 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index d55d5b65cd6e17b29e7f07d14a46479b9810daae..54bf40936e4a910923526644d28c512bb65172f6 100644 (file)
@@ -1,5 +1,7 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyS0,115200";
@@ -14,7 +16,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index ee385097b2ceaa5dea3d700d88abd051fb1d2f48..91426db3c981650f5f81e898779a21904cfd7d36 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HG255D", "ralink,rt3052-soc";
        model = "HuaWei HG255D";
                reset {
                        label = "reset";
                        gpios = <&gpio0 4 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index 2f4e43548f58aebec44fb5fc42a5ca0d87f48dad..cbd860967a8ab091a07707bbd642634006b4011c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HLKRM04", "ralink,rt5350-soc";
        model = "HILINK HLK-RM04";
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 000750fa1270c2c59de4e6e68016aa3128780683..ada12c1cf485bd69fbdaac1f9f271a9da590e1c6 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HPM", "ralink,rt3883-soc";
        model = "Omnima HPM";
@@ -19,7 +21,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 14 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index bfa3536a29d754bc2ca1c7c7075563400aa21887..8dc2dbc524135b07c3a6fb87a897a37a84b9b717 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HT-TM02", "ralink,rt5350-soc";
        model = "HooToo HT-TM02";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                modeswitch {
                        label = "modeswitch";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
index 0efa8d0f54b01be2038980ce581697877a9426ea..d5bca44f94f0f5999376814a7369b2cff21576f5 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "HW550-3G", "ralink,rt3052-soc";
        model = "Aztech HW550-3G";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                connect {
                        label = "connect";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0xda>;
+                       linux,code = <KEY_CONNECT>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 50d5532a2d6e057099a6eaac1f9eba8f0f3aa863..6f26f3b50a22c1b8fbb1602bb0534ae2cea2c016 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "IP2202", "ralink,rt3052-soc";
        model = "Poray IP2202";
@@ -61,7 +63,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 0688c3ab023c33631077150e3f69c22571142e24..20cdb8487608704b376472c5b44589b2b90597e6 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "JHR-N805R", "ralink,rt3050-soc";
        model = "JCG JHR-N805R";
@@ -24,7 +26,7 @@
                 reset {
                         label = "reset";
                         gpios = <&gpio0 10 1>;
-                        linux,code = <0x198>;
+                        linux,code = <KEY_RESTART>;
                 };
        };
 };
index 1e9acdf1139c06d9d352ac10fc6cc466dbf1814f..4eab8932654d4d0033d5fe8e4702a7a918f770c9 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "JHR-N825R", "ralink,rt3052-soc";
        model = "JCG JHR-N825R";
@@ -54,7 +56,7 @@
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 1a63656ed9391f10d5542a8de0715fe3a45216e5..e5b64c5b96fd56944a8f8916ac09edf888d54472 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "JHR-N926R", "ralink,rt3052-soc";
        model = "JCG JHR-N926R";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 09a8c987f7c34ce0230f602fec4a6bec40cbca0e..210d4d0b8d102bd0aeba3bffc96f9154375d9c72 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,linkit", "mediatek,mt7628an-soc";
        model = "MediaTek LinkIt Smart 7688";
@@ -44,7 +46,7 @@
                wps {
                        label = "reset";
                        gpios = <&gpio1 6 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 22ec534a2a6eba5fab80f1172f69af153e4fb98a..99e7b6a44b4dd08d231470661d1d9d029e78ab9a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "M2M", "ralink,rt5350-soc";
        model = "Intenso Memory 2 Move";
                power {
                        label = "power";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x116>;
+                       linux,code = <KEY_POWER>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 9b6ed89142a5255f125a1ac4b97d3cccb2ecf4d3..f4169c779cad1ec6f12d99c24ab69098cac3394b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "M3", "ralink,rt5350-soc";
        model = "Poray M3";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 17 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
index 0502714c3b0e8b031fd6b29ba276a83f033e53a9..79bea1952e23492ace48526d264c4ffca72f7bf7 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "M4", "ralink,rt5350-soc";
        model = "Poray M4";
@@ -24,7 +26,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 16ee184ed260e0c9ca78e010d821d842d4152c7d..8d6453b0d07cbfbd060f87392c14fda236c35444 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "M4", "ralink,rt5350-soc";
        model = "Poray M4";
@@ -24,7 +26,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index eefac574c13e1ca260491d989010e9b095456f73..5f1cfe93cba2c3f5d76b5b131da070e2b2314d8d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MINIEMBPLUG", "ralink,rt5350-soc";
        model = "Omnima MiniEMBPlug";
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                mode-one {
                        label = "mode1";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                mode-two {
                        label = "mode2";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 1240adede0abf85dcaf425650f913de4b3852f13..ccdd40f80145c6b16fa115144e24cd6063e5f29f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MINIEMBWIFI", "ralink,rt3052-soc";
        model = "Omnima MiniEMBWiFi";
@@ -29,7 +31,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index e9ad3750b709701eb2b8d250141fb78a80bfafd9..0cd511c4fae5c952b2d0ab5c5898841e55377013 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
        model = "Xiaomi MiWiFi Mini";
@@ -38,7 +40,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 6 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 3406280a418f54733ff13374528d181fbcf1f6fd..05d7dfff8a4506820e876901fb5c6b748d960fc5 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mlw221", "ralink,mt7620n-soc";
        model = "Kingston MLW221";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                system {
                        label = "system";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index aeedb464d51279d8dd586434b731763f00285a8c..9c71c91c1c48736aa8b08923972ce3f467036770 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mlwg2", "ralink,mt7620n-soc";
        model = "Kingston MLWG2";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                system {
                        label = "system";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index 633f20a7504fd8cb06ed6c0fe65fe09f11b921d3..23596e0f344be31f708fd3628c7ae04959072ee3 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MOFI3500-3GN", "ralink,rt3052-soc";
        model = "MoFi Network MOFI3500-3GN";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                connect {
                        label = "connect";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0xda>;
+                       linux,code = <KEY_CONNECT>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index d9baed732a219633905ea4a5d24d71b8d64905b0..e97e60ca59f1c4d46800b7f0a6a07dd16a4f442e 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MPRA1", "ralink,rt5350-soc";
        model = "HAME MPR-A1";
@@ -29,7 +31,7 @@
                wps {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 84f5dda3a63dc703427e49f00970a0cc1d51a9df..72ee8768b6bd20ae5dc8e1542742253818e1078b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MPRA2", "ralink,rt5350-soc";
        model = "HAME MPR-A2";
@@ -29,7 +31,7 @@
                wps {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 6546601f158d94e03ea23b7b40336dffeb68d799..a28deb79eda7f7b6500f63d906d43729c3b77da1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MR-102N", "ralink,rt3052-soc";
        model = "AXIMCom MR-102N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 7bf38976f6162b3e098dc6a2a21115af28fb539b..8f1b6d9521061bb5c49f7e0f3cc34d0eb3f4140b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
        model = "Ralink MT7620a + MT7610e evaluation board";
                s2 {
                        label = "S2";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                s3 {
                        label = "S3";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index 52ceddcbc82ae6a557ba51e48f206b4ec486aaab..da241a42531037aff885eae77fa506bbcbdb1583 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
        model = "Ralink MT7620A evaluation board";
                wps {
                        label = "wps";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index a3e206e5dddfb1f607683c7f2d69e10e276678e1..ea175120825e0b2ccc6bab55ff590247c4705cf8 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
        model = "Ralink MT7620a V22SG High Power evaluation board";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 01fe2a1e24fe5e127145a184cd7e954ec23e9ffc..589b19e52cb9a3c43c6b6dc861d1f68c46fff1a1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Planex MZK-750DHP";
                s1 {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                s2 {
                        label = "wps";
                        gpios = <&gpio2 19 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 86f82ba59ae416a5cab0d56cc42c9cce9f50951b..7fa8ef4ab909453c6c0dd89fa634c00cab9248ba 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MZK-DP150N", "ralink,rt5350-soc";
        model = "Planex MZK-DP150N";
@@ -24,7 +26,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 4c87f90c56733438bfc85fb5b3a2c573bab4a8c5..569d0a951cbe41b38261e7e67894a468190406f3 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Planex MZK-EX300NP";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 3 0>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index 74f72f04cad760117152cf236051b89580a4b41a..ec2ca5fc4b463e6630e8f598358ffc5b0b384868 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Planex MZK-EX750NP";
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 13 0>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index 987d6a7c0d247430a1d204a5bb31b360ce15f970..4b002b7c20e308af873e17a3470ca3c2cba14f0f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "MZK-W300NH2", "ralink,rt3052-soc";
        model = "Planex MZK-W300NH2";
                wps {
                        label = "wps";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                rt {
                        label = "rt";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 07e01550a7f75d1a712a8d10da70329978765b5a..c8558c6326ef5c412a4473bc4cce6887a6a70fdc 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "microwrt", "ralink,mt7620a-soc";
        model = "Microduino MicroWRT";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 4093932a50e0efcf0fde61fb00891a560c27b282..522bc7585510f9ce0e73c26117f0b35914083971 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
        model = "Sercomm NA930";
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                zwave {
                        label = "zwave";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 59ab665da711f80a3aa3b12547748fdfe7a389ee..e19ce34b5c36d1629974eda5dcbfac2baaf54140 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "NBG-419N", "ralink,rt3052-soc";
        model = "ZyXEL NBG-419N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 981b4e5872fd57a252e8ea7ae473ab5e7580a3fd..8bb0cc5280c05197d737f25baf787215daaf6439 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3352.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "NBG-419N2", "ralink,rt3352-soc";
        model = "ZyXEL NBG-419N v2";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                rfkill {
                        label = "rfkill";
-                       linux,input-type = <5>;
+                       linux,input-type = <EV_SW>;
                        gpios = <&gpio0 12 0>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 
index 06c6b0d62dc9e56c5e6023b132e59a7392850fcb..372bff6e7f2951d4057d9627aa1982b01f7197f1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "NW718", "ralink,rt3050-soc";
        model = "Netcore NW718";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 2d91c58c1e5600005f323ba27e5ec8ab1c10935e..07950baed8ff782b2eb4a6d558399235dd81c50a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "Newifi-D1";
@@ -43,7 +45,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 15 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 6bf1ad6be70967a10722a920220516fb3fa08892..932d379b700c08e34c8f31cf5deb81a358cf8e85 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "OY-0001";
@@ -33,7 +35,7 @@
                s1 {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 30477a0ddfe07206e2b26c333e14b5b28f1ad0e7..da32c8dff92a36d628939400351552a29a3a1027 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,pbr-d1", "mediatek,mt7628an-soc";
        model = "PBR-D1";
@@ -44,7 +46,7 @@
                wps {
                        label = "reset";
                        gpios = <&gpio1 38 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index ac77cd5c6aa7eab7edde388c32ef7ee19a369567..e278fc54d2cb7de5e410d91551fab4317a179ae4 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "PBR-M1";
@@ -65,7 +67,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index dc1adc4c731d9b0835d79398abb33534dbe14ea1..e9b66395dff05bb02c85609a2bd467f7ca1ee5c1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "PSG1208", "ralink,mt7620a-soc";
        model = "Phicomm PSG1208";
@@ -29,7 +31,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 6fdb67869a4107fc433a207017bfa71d980f8535..b777c9b1f28966257d9834f71ae0f0e49e6a0370 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "PSG1218", "ralink,mt7620a-soc";
        model = "Phicomm PSG1218";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index c4c4522afc52b34f428061c89c27239cf4d5b0a5..f749a4e5899472b1ae24d06b27da87a10bf868fa 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "PSR-680W", "ralink,rt3052-soc";
        model = "Petatel PSR-680W Wireless 3G Router";
@@ -60,7 +62,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 51f43928f4601b04b0b15ed2e4fd9ecaa62885f0..18ee7426f418014dff44032ce098196d290995bd 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "PWH2004", "ralink,rt3052-soc";
        model = "Prolink PWH2004";
@@ -61,7 +63,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index b135b5747b556cdc10f020025929bc9ee3e4607b..257a636412be29d7db07e4824cd20b4135b4c908 100644 (file)
@@ -1,5 +1,7 @@
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "PX-4885", "ralink,rt5350-soc";
        model = "7Links PX-4885";
@@ -13,7 +15,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 39205c41acf400ce879c60960b1345698915da6f..d34e857e61e3febb97264070723db254285fc24a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "Linksys RE6500";
                wps {
                        label = "wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index c661be3a28ce3b509983284fd519709fc4a3f193..514481b38218f2433ae6f55b0460db38f1c3597a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "asus,rp-n53", "ralink,mt7620a-soc";
        model = "Asus RP-N53";
                touch {
                        label = "touch";
                        gpios = <&gpio1 0 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                audio {
                        label = "audio";
                        gpios = <&gpio1 3 0>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 
index ab8e3fdad3c12e921adc0e3c50a0e14931efa875..d392bb3545aa4d2917b1859093f2451eeea7366f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "RT-G32-B1", "ralink,rt3050-soc";
        model = "Asus RT-G32 B1";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 43535d417bf1c3d96dff562f7345dc6531a47215..cb5a13618d52a6a4e3edd9494af17822b7c0a704 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "RT-N10-PLUS", "ralink,rt3050-soc";
        model = "Asus RT-N10+";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 14cff67855a9edff97d66ce085c3107d3d770ead..9625415b73e9667afa09951caef6b9835e8daad3 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "RT-N13U", "ralink,rt3052-soc";
        model = "Asus RT-N13U";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 05263e165d655df21153040e8bb4d50d73c20c99..22dd7b818b946e6bb0439b13c96f5b9d4fb40405 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
        model = "Asus RT-N14U";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index d5bcbe3409e26dcf7ee12fc1014ddde87504dde0..704d3130c8419fd0a9ad66a75417b39c7c1c45ee 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index fea73e27e722345c17bbb81f8397bfeee19ba895..d101ece83c91e14822d6e2be87b700639d742ba7 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "RT-N56U", "ralink,rt3883-soc";
        model = "Asus RT-N56U";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 85c26d96beede5cbe1df705ab4a5c9ef2cbdb0e1..76cf49bab2fe8afc3ca82a262ee66823cb8a711d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "RUT5XX", "ralink,rt3050-soc";
        model = "Teltonika RUT5XX";
@@ -24,7 +26,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index d6f2f3057668ce1d45c757e5b0ad73fe0ddb7eca..9069f7cff23e89d635f5d1a4ad65aa38def3ea15 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "STORYLiNK SAP-G3200U3";
                reset {
                        label = "reset";
                        gpios = <&gpio0 16 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 };
index 1fed89e11e40ae6a9275b7ae578682b2f4ebf47f..b50de555dc7aef3c7bdfac030c148e0cfa608396 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "SamKnows Whitebox 8";
                wps {
                        label = "wps";
                        gpios = <&gpio1 11 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio1 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index f5884fbecd82364f0715ef5105932850980b22a6..7b6dc990e227e0f0617872984071309c547223b0 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "SL-R7205", "ralink,rt3052-soc";
        model = "Skyline SL-R7205 Wireless 3G Router";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index e92db1ecb2972e7cfdb199212448a83db0be7add..af910798f5b0401efba7b8821821b37cb59057a1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "TEW-691GR", "ralink,rt3883-soc";
        model = "TRENDnet TEW-691GR";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                rfkill {
                        label = "rfkill";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
        };
 
index 2c9313f2002e51d9b49803d99da5849bdc7e29fc..b9c7006406e898f48cd48a15bcf0c6b2c75f8fdb 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "TEW-692GR", "ralink,rt3883-soc";
        model = "TRENDnet TEW-692GR";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 0e0f066518d1dee3268305c90612299fbaf60311..79b30d1bfdca31584fe628809ebd58803080dd6d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "TEW-714TRU", "ralink,rt5350-soc";
        model = "TRENDnet TEW714TRU";
                 reset {
                         label = "reset";
                         gpios = <&gpio0 10 1>;
-                        linux,code = <0x198>;
+                        linux,code = <KEY_RESTART>;
                 };
 
                 wps {
                         label = "wps";
                         gpios = <&gpio0 0 1>;
-                        linux,code = <0x211>;
+                        linux,code = <KEY_WPS_BUTTON>;
                 };
        };
 
index 81f1adee87fc830b13fc8165449bd07032f2314a..356c44d5118d6ca21e93cf3d8d9229a98e546f03 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "TINY-AC", "ralink,mt7620a-soc";
        model = "Dovado Tiny AC";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
        };
index 8ee312cd866584f9faa151951644595813918dc6..2d60324f246b814e8f74c29c0aef541778496a43 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "Thunder Timecloud";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio0 4 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index d90d77c0611cbc034ba74e87eaf74d88bfcef068..6ca1aa9f62d64a9ec2080046e64df9d8f86640c0 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "UR-326N4G", "ralink,rt3052-soc";
        model = "UPVEL UR-326N4G";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
index e0325a7c567868bdff0b14310ee31b5670c63a54..fa753047e89d0269393d09ad1759b2399490c64a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "UR-336UN", "ralink,rt3052-soc";
        model = "UPVEL UR-336UN";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
index 6f7a5cbdfd6579b5941c1848246d98be753cef07..c4867d8f1c3593c893d9933d34211f74054e2678 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "V11ST-FE", "ralink,rt2880-soc";
        model = "Ralink V11ST-FE";
@@ -56,7 +58,7 @@
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 602e170e6077dded050313e87a4ae82993856f24..29d14c2e5feda0a87e2fa4818399d9458508ced0 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "V22RW-2X2", "ralink,rt3052-soc";
        model = "Ralink AP-RT3052-V22RW-2X2";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 3cddce6fbe77373cb622d61606d0d195997bcca5..8b5d98fa697485629a16db774f7a57f086bdb42e 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
        model = "Planex VR500";
@@ -33,7 +35,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 15 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 679db60af4a9f1a472317dfc336c30d6dd54030d..9ac84a0f4b774b0beb1e84e41ff17d6474d5eafd 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "W150M", "ralink,rt3050-soc";
        model = "Tenda W150M";
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
        };
 };
index 79ae23dd632969f5103243cb17315361945b75bc..ff5ca59ad6df2a61037863fc00eaf55532c719d3 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "W306R_V20", "ralink,rt3052-soc";
        model = "Tenda W306R V2.0";
@@ -61,7 +63,7 @@
                reset {
                        label = "RESET/WPS";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 739817022b4b21b8552101686aaa21141d67c087..1de6ffa337000c17cd8fcb720bd36c058a9a3090 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "W502U", "ralink,rt3052-soc";
        model = "ALFA Networks W502U";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 541836b218536dff2f1bde2547ec6e879f9b68a9..b47dd8b4afededdd99c933a3a04312b6c6d58e57 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WCR150GN", "ralink,rt3050-soc";
        model = "Sparklan WCR-150GN";
                wps {
                        label = "wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 050bc2e7ccb7ef6511726fa4684273197bdfec9f..2cad0ec344528e572406aca42a9531cd4a82bbad 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "NETIS WF-2881";
@@ -71,7 +73,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index fd2e451c37738a1911bb8a6142501ee9a4989eea..c3b85da2b341d9c588550d0cfad784e7c6ef8bd1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Buffalo WHR-1166D";
                reset {
                        label = "reset";
                        gpios = <&gpio2 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio2 13 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio2 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
                        gpios = <&gpio2 15 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
index acd4ce47e54c0190790cc8691be109bfc81bb4ef..39582170827495466b06c6e733a936965733841e 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Buffalo WHR-300HP2";
                reset {
                        label = "reset";
                        gpios = <&gpio2 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio2 13 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio2 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
                        gpios = <&gpio2 15 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
index c0633559b6ae112c7e96a82becad8d3029f4ef34..bea67a9a90193c1fd430ff3bc8d84966694848f1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7620a-soc";
        model = "Buffalo WHR-600D";
                reset {
                        label = "reset";
                        gpios = <&gpio2 12 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio2 13 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio2 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
                        gpios = <&gpio2 15 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 };
index 4f80f2db1a364f0ba60db20850e0de0351a87457..c0779e25bddad746c5f17098cc356e8cb3332145 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WHR-G300N", "ralink,rt3052-soc";
        model = "Buffalo WHR-G300N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                router-off {
                        label = "router-off";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x102>;
+                       linux,code = <BTN_2>;
                };
 
                router-on {
                        label = "router-on";
                        gpios = <&gpio0 8 1>;
-                       linux,code = <0x103>;
+                       linux,code = <BTN_3>;
                };
        };
 };
index 406b5ca099ad6e7dc5f89c842d9fa39bc6c91e5b..f6b8f1d52c13270f132da0599fa5cae455f9da65 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,widora-neo", "mediatek,mt7628an-soc";
        model = "Widora-NEO";
@@ -34,7 +36,7 @@
                wps {
                        label = "reset";
                        gpios = <&gpio1 6 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index bffd4ff7a99001660fb1469e26a32a77ca8d44bf..a82a49521ba99d61195722fa8f250b02565fcfd4 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "MQmaker WiTi";
@@ -36,7 +38,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 0f7ede54dfdc760062bca77dd7b8737f5e54b643..78891c24b6d43ec9aab5fe8fb327522ca49e1c83 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "wizfi630a", "ralink,rt5350-soc";
        model = "WIZnet WizFi630A";
                reset {
                        label = "reset";
                        gpios = <&gpio0 17 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
                
                scm1 {
                        label = "SCM1";
                        gpios = <&gpio0 19 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                scm2 {
                        label = "SCM2";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index d3cd74b2ab3e7011a8bdc4d6cf5543ef652a3cc6..1cf1712dfa1fb4766e698f6b43969761c18182b3 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WL-330N", "ralink,rt3050-soc";
        model = "Asus WL-330N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 9290673419d4f5781928e0f58bf931e1ea7a01c8..fe703ba5b3fd27278fa7fc7c61808ff9a0d5067f 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WL-330N3G", "ralink,rt3050-soc";
        model = "Asus WL-330N3G";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 5f9e1dd9246cd1e130bc159ad9c3f00fd23f81f3..e8b6d689de4dec5206c9d811fd9251bda95e090c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WL-341V3", "ralink,rt3052-soc";
        model = "Sitecom WL-341 v3";
                reset {
                        label = "reset";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 5 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 541f8cef992f333a72685644ca93a7f365f28028..91e71c657a67becdd8c92a8d3c7ead2cc92bf3f3 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WL-351", "ralink,rt3052-soc";
        model = "Sitecom WL-351 v1 002";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index 70521a71edbb0a5688a8cd4ff15f63bb94b1fdfc..9d9b222bd7a85cb3fdb74da72edb64c20031bf23 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                bandwidth {
                        label = "bandwidth";
                        gpios = <&gpio0 8 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 02fbdc598a5a7c037dabd40052a809d01a56fbc0..faa867b723d4941ca8cdc53c362164feecb9998b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
        model = "Buffalo WMR-300";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 2dc39ce142af7d9335954aed445b697f1d2de5b7..92d03defdce365d3be6667e8a3ccafbb52e4913a 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WNCE2001", "ralink,rt3052-soc";
        model = "Netgear WNCE2001";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                rt {
                        label = "rt";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
index 9d3d0d53968e40533d31cefa1d1d3008260aa558..f67c32030e5cc867828bb9be4ad561741dd41621 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board","ralink,mt7621-soc";
        model = "Netgear WNDR3700v5";
                wps {
                        label = "wndr3700v5:wps";
                        gpios = <&gpio0 7 0>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                wifi {
                        label = "wndr3700v5:wifi";
                        gpios = <&gpio0 8 0>;
-                       linux,code = <0xf7>;
+                       linux,code = <KEY_RFKILL>;
                };
 
                reset {
                        label = "wndr3700v5:reset";
                        gpios = <&gpio0 14 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 45e1463bf0f5f4d9ab34a6d380da5c3adc0f5e73..09e448019a25611870386440bd7c1ea627197152 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WR512-3GN", "ralink,rt3052-soc";
        model = "WR512-3GN-like router";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
index 7e9a0c25ed2314d1d501b2382f0b7c6681e5c366..03583f99fe654e881a9851d61ccf3b2aa2443f0b 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WR512-3GN", "ralink,rt3052-soc";
        model = "WR512-3GN-like router";
                reset_wps {
                        label = "reset_wps";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x32>;
+                       linux,code = <ABS_MT_WIDTH_MAJOR>;
                };
        };
 };
index 534d78d3fa042b977463c0000aa2483618d2975e..1740b188fb450f7d846deb8eb48792153a5c7a3d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "WR6202", "ralink,rt3052-soc";
        model = "AWB WR6202";
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
index aece2e68847965ac056ed8ecc3e8ca64f354f25f..f7ef9335f1cf2544c1bdae912526774dfb6ca590 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
        model = "ELECOM WRH-300CR";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
index 0242314dfb2f4413d9e5cd9060294682a16ceec1..294616c0f785dfef62b12db94594081c89ea9a02 100644 (file)
@@ -1,5 +1,7 @@
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyS0,115200";
@@ -14,7 +16,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 5 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 8f9991f4a7f093e67c26c2e2334f6468b6b36bdd..97a4304a7393f75d520c235c2a26a43cd9e975a5 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
        model = "Buffalo WSR-1166DHP";
                power {
                        label = "power";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x74>;
+                       linux,code = <KEY_POWER>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 3 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio0 6 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                auto {
                        label = "mode";
                        gpios = <&gpio0 7 0>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio0 10 0>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                router {
                        label = "router";
                        gpios = <&gpio0 12 0>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 
index 2d08b9369bed010e574e8f8e4b1446d9140abf23..43f63f6fadd306276c155d971dff3aaff86026a2 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
        model = "Buffalo WSR-600DHP";
                power {
                        label = "power";
                        gpios = <&gpio0 8 1>;
-                       linux,code = <0x74>;
+                       linux,code = <KEY_POWER>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                auto {
                        label = "mode";
                        gpios = <&gpio0 7 0>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                ap {
                        label = "ap";
                        gpios = <&gpio0 6 0>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                router {
                        label = "router";
                        gpios = <&gpio0 10 0>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 
index f611cdfce9a73fe0ca71c2e2812d25ab4a21a633..368a24619c66b190d0cedb49b5daf3351dcf702d 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "wt3020", "ralink,mt7620n-soc";
        model = "Nexx WT3020";
@@ -15,7 +17,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 3c6230726c52e717685874839c9955735cf202af..0e15d031f57bad092bc084ea3b02be59d9941693 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "wt3020", "ralink,mt7620n-soc";
        model = "Nexx WT3020";
@@ -15,7 +17,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 23fba7cb8fd1e2dca4cbe7fcf0097f46a3d12c31..0f2a73a48ac90e11f79e90142369ff9b4e4cf103 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                wps {
                        label = "wps";
                        gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                router {
                        label = "router_switch";
                        gpios = <&gpio0 7 0>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 86f5c635f1a62860c2c8596dbfc96842b72931a3..efb9d77d710203b0eb779f7981e8502577dfe24c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "X5", "ralink,rt5350-soc";
        model = "Poray X5";
                bat {
                        label = "bat";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0x211>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
                        gpios = <&gpio0 14 1>;
-                       linux,code = <0x100>;
-                       linux,input-type = <5>;
+                       linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
        };
 
index 733bbb55d4973374d1d3419fd54b92831da5346e..db8eec56c5a169f7738459e68f5de12aaece546c 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "X8", "ralink,rt5350-soc";
        model = "Poray X8";
@@ -24,7 +26,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 34a29cc74b9d0126e25c74e47910a57a223f08b1..304da9cf6e9b51de43e6403310343addbba8bdfa 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "XDXRN502J", "ralink,rt3052-soc";
        model = "XDX RN502J";
@@ -61,7 +63,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 201f48b6261476b47fc3856b1f7b8efa78804847..1d5f1ef074355fe7f34999e2bb7e33283d0934a0 100644 (file)
@@ -1,5 +1,7 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        chosen {
                bootargs = "console=ttyS0,115200";
@@ -14,7 +16,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index a9c13e50b66e7247a4d727975763fe137ed260d8..1746f6c674ac46f3399417ef0971d90d16752ba2 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "YOUKU-YK1", "ralink,mt7620a-soc";
        model = "YOUKU YK1";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index eff27c2a1590373b592786f9d21e2855f6791f76..f57012997770e80b5a71cb816291dc8704174f73 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
        model = "ZBT-APE522II";
@@ -48,7 +50,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 2 0>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index b93e58526a12b31c6ebfa31625dc0ba2df02f7f7..abfe0c0229ea0274c14a55ca5f7c721daf1fd821 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "zbtlink,zbt-cpe102", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-CPE102";
@@ -38,7 +40,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index c2d51c300ac711bd53bd25a8ecacc74873914146..43f08f51390ec1a73a0315342aee4f9f43d6936e 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-WA05";
@@ -38,7 +40,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 75c99a7fdc54cd5f16488a96bc87d7deb6ab2b77..1eb03189d1fedc9a8b971cd1796b9b22f146b6e1 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
        model = "ZBT-WE826";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index b599d7b49bdd61f4fe0f9e880099b6c7f4628379..e926514f7b2a3ab5c43aa00c4651b3bef0a04220 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "ZBT-WG2626";
@@ -30,7 +32,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 538a7d86326d5c3db6b9256faea3c81841ff9004..4c15f41ca520710013f5093ba9a5bb0548cc6b32 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
        model = "ZBT-WG3526";
@@ -30,7 +32,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 18 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
index 694b7cfa962be9b7ff1175c641c39227f1779606..edc820f790ffed1a870f8ef119681d50e178a435 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "zbtlink,zbt-wr8305rt", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-WR8305RT";
@@ -34,7 +36,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
index 2c4c2e57121fc39957fe1750a22b719ba192b2f6..44bed871aa50228bf12673c3469e709c971c7532 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "ZTE-Q7", "ralink,mt7620a-soc";
        model = "ZTE Q7";
@@ -29,7 +31,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio1 2 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };