[source] treewide: dts: use keycode defines from input dt-binding
LEDE Commits
lede-commits at lists.infradead.org
Sat Nov 12 22:16:11 PST 2016
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/2b55c83e68068887db9e49de8e81b1b4a267a4f2
commit 2b55c83e68068887db9e49de8e81b1b4a267a4f2
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Fri Nov 11 22:43:08 2016 +0100
treewide: dts: use keycode defines from input dt-binding
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 at kresin.me>
---
target/linux/brcm63xx/dts/homehub2a.dts | 2 +-
target/linux/lantiq/dts/ARV4510PW.dts | 2 ++
target/linux/lantiq/dts/ARV4518PWR01.dtsi | 2 ++
target/linux/lantiq/dts/ARV4519PW.dts | 2 ++
target/linux/lantiq/dts/ARV4520PW.dts | 2 ++
target/linux/lantiq/dts/ARV4525PW.dts | 2 ++
target/linux/lantiq/dts/ARV452CQW.dts | 2 ++
target/linux/lantiq/dts/ARV7506PW11.dts | 2 ++
target/linux/lantiq/dts/ARV7510PW22.dts | 2 ++
target/linux/lantiq/dts/ARV7518PW.dts | 2 ++
target/linux/lantiq/dts/ARV7519PW.dts | 2 ++
target/linux/lantiq/dts/ARV7519RW22.dts | 2 ++
target/linux/lantiq/dts/ARV7525PW.dts | 2 ++
target/linux/lantiq/dts/ARV752DPW.dts | 2 ++
target/linux/lantiq/dts/ARV752DPW22.dts | 2 ++
target/linux/lantiq/dts/ARV8539PW22.dts | 2 ++
target/linux/lantiq/dts/BTHOMEHUBV2B.dts | 2 ++
target/linux/lantiq/dts/BTHOMEHUBV3A.dts | 2 ++
target/linux/lantiq/dts/BTHOMEHUBV5A.dts | 2 ++
target/linux/lantiq/dts/DGN1000B.dts | 2 ++
target/linux/lantiq/dts/DGN3500.dtsi | 2 ++
target/linux/lantiq/dts/EASY80920.dtsi | 2 ++
target/linux/lantiq/dts/FRITZ3370.dts | 2 ++
target/linux/lantiq/dts/FRITZ7320.dts | 2 ++
target/linux/lantiq/dts/FRITZ7360SL.dts | 2 ++
target/linux/lantiq/dts/GIGASX76X.dts | 2 ++
target/linux/lantiq/dts/H201L.dts | 2 ++
target/linux/lantiq/dts/P2601HNFX.dts | 2 ++
target/linux/lantiq/dts/P2812HNUFX.dtsi | 2 ++
target/linux/lantiq/dts/TDW89X0.dtsi | 2 ++
target/linux/lantiq/dts/VG3503J.dts | 2 ++
target/linux/lantiq/dts/VGV7510KW22.dtsi | 2 ++
target/linux/lantiq/dts/VGV7519.dtsi | 2 ++
target/linux/lantiq/dts/VR200v.dts | 2 ++
target/linux/lantiq/dts/WBMR.dts | 2 ++
target/linux/lantiq/dts/WBMR300.dts | 2 ++
target/linux/lantiq/dts/amazonse.dtsi | 1 -
target/linux/lantiq/dts/ar9.dtsi | 1 -
target/linux/lantiq/dts/danube.dtsi | 1 -
target/linux/lantiq/dts/vr9.dtsi | 1 -
.../oxnas/files/arch/arm/boot/dts/ox820-akitio.dts | 6 ++++--
.../oxnas/files/arch/arm/boot/dts/ox820-kd20.dts | 8 +++++---
.../oxnas/files/arch/arm/boot/dts/ox820-stg212.dts | 6 ++++--
target/linux/ramips/dts/3G-6200N.dts | 6 ++++--
target/linux/ramips/dts/3G-6200NL.dts | 4 +++-
target/linux/ramips/dts/3G150B.dts | 4 +++-
target/linux/ramips/dts/3G300M.dts | 6 ++++--
target/linux/ramips/dts/A5-V11.dts | 4 +++-
target/linux/ramips/dts/AI-BR100.dts | 4 +++-
target/linux/ramips/dts/AIR3GII.dts | 4 +++-
target/linux/ramips/dts/ALL0239-3G.dts | 8 +++++---
target/linux/ramips/dts/ALL0256N-4M.dts | 4 +++-
target/linux/ramips/dts/ALL0256N-8M.dts | 4 +++-
target/linux/ramips/dts/AR670W.dts | 6 ++++--
target/linux/ramips/dts/AR725W.dts | 6 ++++--
target/linux/ramips/dts/ASL26555-16M.dts | 6 ++++--
target/linux/ramips/dts/ASL26555-8M.dts | 6 ++++--
target/linux/ramips/dts/ATP-52B.dts | 6 ++++--
target/linux/ramips/dts/AWAPN2403.dts | 4 +++-
target/linux/ramips/dts/AWM002-EVB-4M.dts | 6 ++++--
target/linux/ramips/dts/AWM002-EVB-8M.dts | 6 ++++--
target/linux/ramips/dts/AWM003-EVB.dts | 6 ++++--
target/linux/ramips/dts/ArcherC20i.dts | 6 ++++--
target/linux/ramips/dts/BC2.dts | 4 +++-
target/linux/ramips/dts/BR-6425.dts | 6 ++++--
target/linux/ramips/dts/BR-6475ND.dts | 8 +++++---
target/linux/ramips/dts/BROADWAY.dts | 4 +++-
target/linux/ramips/dts/CF-WR800N.dts | 4 +++-
target/linux/ramips/dts/CS-QR10.dts | 6 ++++--
target/linux/ramips/dts/CY-SWR1100.dts | 6 ++++--
target/linux/ramips/dts/D105.dts | 4 +++-
target/linux/ramips/dts/DAP-1350.dts | 10 ++++++----
target/linux/ramips/dts/DB-WRT01.dts | 4 +++-
target/linux/ramips/dts/DCH-M225.dts | 6 ++++--
target/linux/ramips/dts/DCS-930.dts | 6 ++++--
target/linux/ramips/dts/DCS-930L-B1.dts | 6 ++++--
target/linux/ramips/dts/DIR-300-B1.dts | 6 ++++--
target/linux/ramips/dts/DIR-300-B7.dts | 6 ++++--
target/linux/ramips/dts/DIR-320-B1.dts | 6 ++++--
target/linux/ramips/dts/DIR-600-B1.dts | 6 ++++--
target/linux/ramips/dts/DIR-600-B2.dts | 6 ++++--
target/linux/ramips/dts/DIR-610-A1.dts | 6 ++++--
target/linux/ramips/dts/DIR-615-D.dts | 6 ++++--
target/linux/ramips/dts/DIR-615-H1.dts | 6 ++++--
target/linux/ramips/dts/DIR-620-A1.dts | 6 ++++--
target/linux/ramips/dts/DIR-620-D1.dts | 4 +++-
target/linux/ramips/dts/DIR-645.dts | 6 ++++--
target/linux/ramips/dts/DIR-810L.dts | 6 ++++--
target/linux/ramips/dts/DIR-860L-B1.dts | 6 ++++--
target/linux/ramips/dts/DUZUN-DM06.dts | 6 ++++--
target/linux/ramips/dts/E1700.dts | 6 ++++--
target/linux/ramips/dts/ESR-9753.dts | 6 ++++--
target/linux/ramips/dts/EX2700.dts | 6 ++++--
target/linux/ramips/dts/F5D8235_V1.dts | 6 ++++--
target/linux/ramips/dts/F7C027.dts | 8 +++++---
target/linux/ramips/dts/FIREWRT.dts | 6 ++++--
target/linux/ramips/dts/FONERA20N.dts | 8 +++++---
target/linux/ramips/dts/GL-MT300A.dts | 8 +++++---
target/linux/ramips/dts/GL-MT300N.dts | 8 +++++---
target/linux/ramips/dts/GL-MT750.dts | 8 +++++---
target/linux/ramips/dts/HC5XXX.dtsi | 4 +++-
target/linux/ramips/dts/HG255D.dts | 8 +++++---
target/linux/ramips/dts/HLKRM04.dts | 6 ++++--
target/linux/ramips/dts/HPM.dts | 4 +++-
target/linux/ramips/dts/HT-TM02.dts | 8 +++++---
target/linux/ramips/dts/HW550-3G.dts | 8 +++++---
target/linux/ramips/dts/IP2202.dts | 4 +++-
target/linux/ramips/dts/JHR-N805R.dts | 4 +++-
target/linux/ramips/dts/JHR-N825R.dts | 4 +++-
target/linux/ramips/dts/JHR-N926R.dts | 6 ++++--
target/linux/ramips/dts/LINKIT7688.dts | 4 +++-
target/linux/ramips/dts/M2M.dts | 6 ++++--
target/linux/ramips/dts/M3.dts | 8 +++++---
target/linux/ramips/dts/M4-4M.dts | 4 +++-
target/linux/ramips/dts/M4-8M.dts | 4 +++-
target/linux/ramips/dts/MINIEMBPLUG.dts | 10 ++++++----
target/linux/ramips/dts/MINIEMBWIFI.dts | 4 +++-
target/linux/ramips/dts/MIWIFI-MINI.dts | 4 +++-
target/linux/ramips/dts/MLW221.dts | 6 ++++--
target/linux/ramips/dts/MLWG2.dts | 6 ++++--
target/linux/ramips/dts/MOFI3500-3GN.dts | 8 +++++---
target/linux/ramips/dts/MPRA1.dts | 4 +++-
target/linux/ramips/dts/MPRA2.dts | 4 +++-
target/linux/ramips/dts/MR-102N.dts | 6 ++++--
target/linux/ramips/dts/MT7620a.dts | 6 ++++--
target/linux/ramips/dts/MT7620a_MT7610e.dts | 6 ++++--
target/linux/ramips/dts/MT7620a_V22SG.dts | 6 ++++--
target/linux/ramips/dts/MZK-750DHP.dts | 6 ++++--
target/linux/ramips/dts/MZK-DP150N.dts | 4 +++-
target/linux/ramips/dts/MZK-EX300NP.dts | 6 ++++--
target/linux/ramips/dts/MZK-EX750NP.dts | 6 ++++--
target/linux/ramips/dts/MZK-W300NH2.dts | 8 +++++---
target/linux/ramips/dts/MicroWRT.dts | 6 ++++--
target/linux/ramips/dts/NA930.dts | 8 +++++---
target/linux/ramips/dts/NBG-419N.dts | 6 ++++--
target/linux/ramips/dts/NBG-419N2.dts | 10 ++++++----
target/linux/ramips/dts/NW718.dts | 6 ++++--
target/linux/ramips/dts/Newifi-D1.dts | 4 +++-
target/linux/ramips/dts/OY-0001.dts | 4 +++-
target/linux/ramips/dts/PBR-D1.dts | 4 +++-
target/linux/ramips/dts/PBR-M1.dts | 4 +++-
target/linux/ramips/dts/PSG1208.dts | 4 +++-
target/linux/ramips/dts/PSG1218.dts | 4 +++-
target/linux/ramips/dts/PSR-680W.dts | 4 +++-
target/linux/ramips/dts/PWH2004.dts | 4 +++-
target/linux/ramips/dts/PX-4885.dtsi | 4 +++-
target/linux/ramips/dts/RE6500.dts | 6 ++++--
target/linux/ramips/dts/RP-N53.dts | 10 ++++++----
target/linux/ramips/dts/RT-G32-B1.dts | 6 ++++--
target/linux/ramips/dts/RT-N10-PLUS.dts | 6 ++++--
target/linux/ramips/dts/RT-N13U.dts | 6 ++++--
target/linux/ramips/dts/RT-N14U.dts | 6 ++++--
target/linux/ramips/dts/RT-N15.dts | 6 ++++--
target/linux/ramips/dts/RT-N56U.dts | 6 ++++--
target/linux/ramips/dts/RUT5XX.dts | 4 +++-
target/linux/ramips/dts/SAP-G3200U3.dts | 6 ++++--
target/linux/ramips/dts/SK-WB8.dts | 6 ++++--
target/linux/ramips/dts/SL-R7205.dts | 6 ++++--
target/linux/ramips/dts/TEW-691GR.dts | 8 +++++---
target/linux/ramips/dts/TEW-692GR.dts | 6 ++++--
target/linux/ramips/dts/TEW-714TRU.dts | 6 ++++--
target/linux/ramips/dts/TINY-AC.dts | 4 +++-
target/linux/ramips/dts/Timecloud.dts | 6 ++++--
target/linux/ramips/dts/UR-326N4G.dts | 6 ++++--
target/linux/ramips/dts/UR-336UN.dts | 6 ++++--
target/linux/ramips/dts/V11STFE.dts | 4 +++-
target/linux/ramips/dts/V22RW-2X2.dts | 6 ++++--
target/linux/ramips/dts/VR500.dts | 4 +++-
target/linux/ramips/dts/W150M.dts | 6 ++++--
target/linux/ramips/dts/W306R_V20.dts | 4 +++-
target/linux/ramips/dts/W502U.dts | 6 ++++--
target/linux/ramips/dts/WCR150GN.dts | 6 ++++--
target/linux/ramips/dts/WF-2881.dts | 4 +++-
target/linux/ramips/dts/WHR-1166D.dts | 14 ++++++++------
target/linux/ramips/dts/WHR-300HP2.dts | 14 ++++++++------
target/linux/ramips/dts/WHR-600D.dts | 14 ++++++++------
target/linux/ramips/dts/WHR-G300N.dts | 10 ++++++----
target/linux/ramips/dts/WIDORA-NEO.dts | 4 +++-
target/linux/ramips/dts/WITI.dts | 4 +++-
target/linux/ramips/dts/WIZFI630A.dts | 10 ++++++----
target/linux/ramips/dts/WL-330N.dts | 6 ++++--
target/linux/ramips/dts/WL-330N3G.dts | 6 ++++--
target/linux/ramips/dts/WL-341V3.dts | 6 ++++--
target/linux/ramips/dts/WL-351.dts | 6 ++++--
target/linux/ramips/dts/WLI-TX4-AG300N.dts | 8 +++++---
target/linux/ramips/dts/WMR-300.dts | 6 ++++--
target/linux/ramips/dts/WNCE2001.dts | 10 ++++++----
target/linux/ramips/dts/WNDR3700V5.dts | 8 +++++---
target/linux/ramips/dts/WR512-3GN-4M.dts | 6 ++++--
target/linux/ramips/dts/WR512-3GN-8M.dts | 6 ++++--
target/linux/ramips/dts/WR6202.dts | 6 ++++--
target/linux/ramips/dts/WRH-300CR.dts | 6 ++++--
target/linux/ramips/dts/WRTNODE2.dtsi | 4 +++-
target/linux/ramips/dts/WSR-1166.dts | 20 +++++++++++---------
target/linux/ramips/dts/WSR-600.dts | 20 +++++++++++---------
target/linux/ramips/dts/WT3020-4M.dts | 4 +++-
target/linux/ramips/dts/WT3020-8M.dts | 4 +++-
target/linux/ramips/dts/WZR-AGL300NH.dts | 8 +++++---
target/linux/ramips/dts/X5.dts | 10 ++++++----
target/linux/ramips/dts/X8.dts | 4 +++-
target/linux/ramips/dts/XDXRN502J.dts | 4 +++-
target/linux/ramips/dts/Y1.dtsi | 4 +++-
target/linux/ramips/dts/YOUKU-YK1.dts | 4 +++-
target/linux/ramips/dts/ZBT-APE522II.dts | 4 +++-
target/linux/ramips/dts/ZBT-CPE102.dts | 4 +++-
target/linux/ramips/dts/ZBT-WA05.dts | 4 +++-
target/linux/ramips/dts/ZBT-WE826.dts | 4 +++-
target/linux/ramips/dts/ZBT-WG2626.dts | 4 +++-
target/linux/ramips/dts/ZBT-WG3526.dts | 4 +++-
target/linux/ramips/dts/ZBT-WR8305RT.dts | 4 +++-
target/linux/ramips/dts/ZTE-Q7.dts | 4 +++-
211 files changed, 757 insertions(+), 349 deletions(-)
diff --git a/target/linux/brcm63xx/dts/homehub2a.dts b/target/linux/brcm63xx/dts/homehub2a.dts
index af5136c..b86a48f 100644
--- a/target/linux/brcm63xx/dts/homehub2a.dts
+++ b/target/linux/brcm63xx/dts/homehub2a.dts
@@ -43,7 +43,7 @@
phone {
label = "phone";
gpios = <&gpio0 1 1>;
- linux,code = <169>;
+ linux,code = <KEY_PHONE>;
};
reset {
label = "reset";
diff --git a/target/linux/lantiq/dts/ARV4510PW.dts b/target/linux/lantiq/dts/ARV4510PW.dts
index 6f07c5f..c34ffe8 100644
--- a/target/linux/lantiq/dts/ARV4510PW.dts
+++ b/target/linux/lantiq/dts/ARV4510PW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4510PW - Wippies, Elisa";
diff --git a/target/linux/lantiq/dts/ARV4518PWR01.dtsi b/target/linux/lantiq/dts/ARV4518PWR01.dtsi
index 49b7e50..84c3c4a 100644
--- a/target/linux/lantiq/dts/ARV4518PWR01.dtsi
+++ b/target/linux/lantiq/dts/ARV4518PWR01.dtsi
@@ -1,5 +1,7 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
diff --git a/target/linux/lantiq/dts/ARV4519PW.dts b/target/linux/lantiq/dts/ARV4519PW.dts
index 43334f1..77d466d 100644
--- a/target/linux/lantiq/dts/ARV4519PW.dts
+++ b/target/linux/lantiq/dts/ARV4519PW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
diff --git a/target/linux/lantiq/dts/ARV4520PW.dts b/target/linux/lantiq/dts/ARV4520PW.dts
index 17288b3..0466968 100644
--- a/target/linux/lantiq/dts/ARV4520PW.dts
+++ b/target/linux/lantiq/dts/ARV4520PW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4520PW - Easybox 800, WAV-281";
diff --git a/target/linux/lantiq/dts/ARV4525PW.dts b/target/linux/lantiq/dts/ARV4525PW.dts
index 69fd1aa..605df42 100644
--- a/target/linux/lantiq/dts/ARV4525PW.dts
+++ b/target/linux/lantiq/dts/ARV4525PW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4525PW - Speedport W501V Typ A";
diff --git a/target/linux/lantiq/dts/ARV452CQW.dts b/target/linux/lantiq/dts/ARV452CQW.dts
index 4710a01..7d0f981 100644
--- a/target/linux/lantiq/dts/ARV452CQW.dts
+++ b/target/linux/lantiq/dts/ARV452CQW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV452CQW - Arcor 801";
diff --git a/target/linux/lantiq/dts/ARV7506PW11.dts b/target/linux/lantiq/dts/ARV7506PW11.dts
index 5c8b0fe..ef3ff30 100644
--- a/target/linux/lantiq/dts/ARV7506PW11.dts
+++ b/target/linux/lantiq/dts/ARV7506PW11.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7506PW11 - Alice/O2 IAD 4421";
diff --git a/target/linux/lantiq/dts/ARV7510PW22.dts b/target/linux/lantiq/dts/ARV7510PW22.dts
index 079c856..3c2b0a7 100644
--- a/target/linux/lantiq/dts/ARV7510PW22.dts
+++ b/target/linux/lantiq/dts/ARV7510PW22.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7510PW22 - Astoria Networks";
diff --git a/target/linux/lantiq/dts/ARV7518PW.dts b/target/linux/lantiq/dts/ARV7518PW.dts
index d44927b..8a6b620 100644
--- a/target/linux/lantiq/dts/ARV7518PW.dts
+++ b/target/linux/lantiq/dts/ARV7518PW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7518PW - Astoria Networks";
diff --git a/target/linux/lantiq/dts/ARV7519PW.dts b/target/linux/lantiq/dts/ARV7519PW.dts
index 1fa52c3..ea9b0da 100644
--- a/target/linux/lantiq/dts/ARV7519PW.dts
+++ b/target/linux/lantiq/dts/ARV7519PW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7519PW - Astoria Networks";
diff --git a/target/linux/lantiq/dts/ARV7519RW22.dts b/target/linux/lantiq/dts/ARV7519RW22.dts
index 3d08b93..c25a3b5 100644
--- a/target/linux/lantiq/dts/ARV7519RW22.dts
+++ b/target/linux/lantiq/dts/ARV7519RW22.dts
@@ -2,6 +2,8 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7519RW22 - Orange Livebox 2.1";
diff --git a/target/linux/lantiq/dts/ARV7525PW.dts b/target/linux/lantiq/dts/ARV7525PW.dts
index f259c17..be498e4 100644
--- a/target/linux/lantiq/dts/ARV7525PW.dts
+++ b/target/linux/lantiq/dts/ARV7525PW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7525PW - Speedport W303V Typ A";
diff --git a/target/linux/lantiq/dts/ARV752DPW.dts b/target/linux/lantiq/dts/ARV752DPW.dts
index d51a70a..d324e6e 100644
--- a/target/linux/lantiq/dts/ARV752DPW.dts
+++ b/target/linux/lantiq/dts/ARV752DPW.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV752DPW - Arcor 802";
diff --git a/target/linux/lantiq/dts/ARV752DPW22.dts b/target/linux/lantiq/dts/ARV752DPW22.dts
index 7343a5d..2a37a3a 100644
--- a/target/linux/lantiq/dts/ARV752DPW22.dts
+++ b/target/linux/lantiq/dts/ARV752DPW22.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV752DPW22 - Arcor 803";
diff --git a/target/linux/lantiq/dts/ARV8539PW22.dts b/target/linux/lantiq/dts/ARV8539PW22.dts
index 5728993..e00bd14 100644
--- a/target/linux/lantiq/dts/ARV8539PW22.dts
+++ b/target/linux/lantiq/dts/ARV8539PW22.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV8539PW22 - Speedport W 504V Typ A";
diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts
index 502132e..d707a75 100644
--- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts
+++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts
@@ -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 */
diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts
index e3a252b..c290c70 100644
--- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts
+++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts
@@ -2,6 +2,8 @@
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */
diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
index c2fe11a..f99d32e 100644
--- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
+++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
@@ -2,6 +2,8 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "BTHOMEHUBV5A - BT Home Hub 5A";
diff --git a/target/linux/lantiq/dts/DGN1000B.dts b/target/linux/lantiq/dts/DGN1000B.dts
index a63199f..e15a4e2 100644
--- a/target/linux/lantiq/dts/DGN1000B.dts
+++ b/target/linux/lantiq/dts/DGN1000B.dts
@@ -2,6 +2,8 @@
#include "amazonse.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "DGN1000B - Netgear DGN1000B";
diff --git a/target/linux/lantiq/dts/DGN3500.dtsi b/target/linux/lantiq/dts/DGN3500.dtsi
index c7d0b2d..1d0d71c 100644
--- a/target/linux/lantiq/dts/DGN3500.dtsi
+++ b/target/linux/lantiq/dts/DGN3500.dtsi
@@ -1,5 +1,7 @@
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "root= console=ttyLTQ0,115200";
diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi
index bce8d5e..5ce8917 100644
--- a/target/linux/lantiq/dts/EASY80920.dtsi
+++ b/target/linux/lantiq/dts/EASY80920.dtsi
@@ -1,5 +1,7 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
diff --git a/target/linux/lantiq/dts/FRITZ3370.dts b/target/linux/lantiq/dts/FRITZ3370.dts
index 775fa5d..e12c7bf 100644
--- a/target/linux/lantiq/dts/FRITZ3370.dts
+++ b/target/linux/lantiq/dts/FRITZ3370.dts
@@ -2,6 +2,8 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "FRITZ3370 - Fritz!Box WLAN 3370";
diff --git a/target/linux/lantiq/dts/FRITZ7320.dts b/target/linux/lantiq/dts/FRITZ7320.dts
index e1e70be..f14cac2 100644
--- a/target/linux/lantiq/dts/FRITZ7320.dts
+++ b/target/linux/lantiq/dts/FRITZ7320.dts
@@ -2,6 +2,8 @@
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "FRITZ7320 - 1&1 HomeServer";
diff --git a/target/linux/lantiq/dts/FRITZ7360SL.dts b/target/linux/lantiq/dts/FRITZ7360SL.dts
index f41ea41..796458a 100644
--- a/target/linux/lantiq/dts/FRITZ7360SL.dts
+++ b/target/linux/lantiq/dts/FRITZ7360SL.dts
@@ -2,6 +2,8 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "FRITZ7360SL - 1&1 HomeServer";
diff --git a/target/linux/lantiq/dts/GIGASX76X.dts b/target/linux/lantiq/dts/GIGASX76X.dts
index 6507157..6602693 100644
--- a/target/linux/lantiq/dts/GIGASX76X.dts
+++ b/target/linux/lantiq/dts/GIGASX76X.dts
@@ -2,6 +2,8 @@
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "GIGASX76X - Gigaset SX761,SX762,SX763";
diff --git a/target/linux/lantiq/dts/H201L.dts b/target/linux/lantiq/dts/H201L.dts
index 8572359..7d4a24c 100644
--- a/target/linux/lantiq/dts/H201L.dts
+++ b/target/linux/lantiq/dts/H201L.dts
@@ -2,6 +2,8 @@
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "H201L - ZTE H210L";
diff --git a/target/linux/lantiq/dts/P2601HNFX.dts b/target/linux/lantiq/dts/P2601HNFX.dts
index 250de38..c82ab3d 100644
--- a/target/linux/lantiq/dts/P2601HNFX.dts
+++ b/target/linux/lantiq/dts/P2601HNFX.dts
@@ -2,6 +2,8 @@
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "P2601HNFX - ZyXEL P-2601HN-Fx";
diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi
index f0dfe98..afd13ea 100644
--- a/target/linux/lantiq/dts/P2812HNUFX.dtsi
+++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi
@@ -1,5 +1,7 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
diff --git a/target/linux/lantiq/dts/TDW89X0.dtsi b/target/linux/lantiq/dts/TDW89X0.dtsi
index fd37352..6447451 100644
--- a/target/linux/lantiq/dts/TDW89X0.dtsi
+++ b/target/linux/lantiq/dts/TDW89X0.dtsi
@@ -1,5 +1,7 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
diff --git a/target/linux/lantiq/dts/VG3503J.dts b/target/linux/lantiq/dts/VG3503J.dts
index 46b047a..db25b87 100644
--- a/target/linux/lantiq/dts/VG3503J.dts
+++ b/target/linux/lantiq/dts/VG3503J.dts
@@ -2,6 +2,8 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VG3503J - BT OpenReach VDSL Modem";
diff --git a/target/linux/lantiq/dts/VGV7510KW22.dtsi b/target/linux/lantiq/dts/VGV7510KW22.dtsi
index 5ca2844..370ef57 100644
--- a/target/linux/lantiq/dts/VGV7510KW22.dtsi
+++ b/target/linux/lantiq/dts/VGV7510KW22.dtsi
@@ -1,5 +1,7 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VGV7510KW22 - o2 Box 6431";
diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi
index a7b421f..ad4233a 100644
--- a/target/linux/lantiq/dts/VGV7519.dtsi
+++ b/target/linux/lantiq/dts/VGV7519.dtsi
@@ -1,5 +1,7 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VGV7519 - KPN Experiabox V8";
diff --git a/target/linux/lantiq/dts/VR200v.dts b/target/linux/lantiq/dts/VR200v.dts
index 777bef9..f814d24 100644
--- a/target/linux/lantiq/dts/VR200v.dts
+++ b/target/linux/lantiq/dts/VR200v.dts
@@ -2,6 +2,8 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VR200v - TP-LINK Archer VR200v";
diff --git a/target/linux/lantiq/dts/WBMR.dts b/target/linux/lantiq/dts/WBMR.dts
index 07671d6..3dbc641 100644
--- a/target/linux/lantiq/dts/WBMR.dts
+++ b/target/linux/lantiq/dts/WBMR.dts
@@ -2,6 +2,8 @@
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "WBMR - Buffalo WBMR-HP-G300H";
diff --git a/target/linux/lantiq/dts/WBMR300.dts b/target/linux/lantiq/dts/WBMR300.dts
index dc0b286..54bb98e 100644
--- a/target/linux/lantiq/dts/WBMR300.dts
+++ b/target/linux/lantiq/dts/WBMR300.dts
@@ -2,6 +2,8 @@
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "WBMR300 - Buffalo WBMR-300HPD";
diff --git a/target/linux/lantiq/dts/amazonse.dtsi b/target/linux/lantiq/dts/amazonse.dtsi
index 520f0e0..33a5a35 100644
--- a/target/linux/lantiq/dts/amazonse.dtsi
+++ b/target/linux/lantiq/dts/amazonse.dtsi
@@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
diff --git a/target/linux/lantiq/dts/ar9.dtsi b/target/linux/lantiq/dts/ar9.dtsi
index 32bed97..4d3fd6f 100644
--- a/target/linux/lantiq/dts/ar9.dtsi
+++ b/target/linux/lantiq/dts/ar9.dtsi
@@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
diff --git a/target/linux/lantiq/dts/danube.dtsi b/target/linux/lantiq/dts/danube.dtsi
index 39f2865..62e31d6 100644
--- a/target/linux/lantiq/dts/danube.dtsi
+++ b/target/linux/lantiq/dts/danube.dtsi
@@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
diff --git a/target/linux/lantiq/dts/vr9.dtsi b/target/linux/lantiq/dts/vr9.dtsi
index 5478e1a..779e23e 100644
--- a/target/linux/lantiq/dts/vr9.dtsi
+++ b/target/linux/lantiq/dts/vr9.dtsi
@@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts
index 4dc969c..712c03e 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts
@@ -9,6 +9,8 @@
/dts-v1/;
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "Akitio MyCloud mini";
@@ -75,12 +77,12 @@
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>;
};
};
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
index b5c79de..1312fd6 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
@@ -9,6 +9,8 @@
/dts-v1/;
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "Shuttle KD20";
@@ -91,17 +93,17 @@
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";
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts
index a0704bb..a8112c9 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts
@@ -10,6 +10,8 @@
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "MitraStar Technology Corp. STG-212";
@@ -57,12 +59,12 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/3G-6200N.dts b/target/linux/ramips/dts/3G-6200N.dts
index a8032c5..502020e 100644
--- a/target/linux/ramips/dts/3G-6200N.dts
+++ b/target/linux/ramips/dts/3G-6200N.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "3G-6200N", "ralink,rt3050-soc";
model = "Edimax 3g-6200n";
@@ -72,13 +74,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/3G-6200NL.dts b/target/linux/ramips/dts/3G-6200NL.dts
index 453e45b..111fef3 100644
--- a/target/linux/ramips/dts/3G-6200NL.dts
+++ b/target/linux/ramips/dts/3G-6200NL.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/3G150B.dts b/target/linux/ramips/dts/3G150B.dts
index 3d348ff..b64f940 100644
--- a/target/linux/ramips/dts/3G150B.dts
+++ b/target/linux/ramips/dts/3G150B.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/3G300M.dts b/target/linux/ramips/dts/3G300M.dts
index df770d8..4d19bca 100644
--- a/target/linux/ramips/dts/3G300M.dts
+++ b/target/linux/ramips/dts/3G300M.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "3G300M", "ralink,rt3052-soc";
model = "Tenda 3G300M";
@@ -49,13 +51,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/A5-V11.dts b/target/linux/ramips/dts/A5-V11.dts
index 51eb005..748e1ed 100644
--- a/target/linux/ramips/dts/A5-V11.dts
+++ b/target/linux/ramips/dts/A5-V11.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/AI-BR100.dts b/target/linux/ramips/dts/AI-BR100.dts
index 2c32933..2405ae7 100644
--- a/target/linux/ramips/dts/AI-BR100.dts
+++ b/target/linux/ramips/dts/AI-BR100.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/AIR3GII.dts b/target/linux/ramips/dts/AIR3GII.dts
index 2b08895..4d9a3b5 100644
--- a/target/linux/ramips/dts/AIR3GII.dts
+++ b/target/linux/ramips/dts/AIR3GII.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ALL0239-3G.dts b/target/linux/ramips/dts/ALL0239-3G.dts
index d1d92e1..7957bad 100644
--- a/target/linux/ramips/dts/ALL0239-3G.dts
+++ b/target/linux/ramips/dts/ALL0239-3G.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ALL0239-3G", "ralink,rt3052-soc";
model = "Allnet ALL0239-3G";
@@ -72,19 +74,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/ALL0256N-4M.dts b/target/linux/ramips/dts/ALL0256N-4M.dts
index 1cfaed6..19cef87 100644
--- a/target/linux/ramips/dts/ALL0256N-4M.dts
+++ b/target/linux/ramips/dts/ALL0256N-4M.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ALL0256N-8M.dts b/target/linux/ramips/dts/ALL0256N-8M.dts
index 074273d..a3fbeec 100644
--- a/target/linux/ramips/dts/ALL0256N-8M.dts
+++ b/target/linux/ramips/dts/ALL0256N-8M.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/AR670W.dts b/target/linux/ramips/dts/AR670W.dts
index c1eac43..3d26c3b 100644
--- a/target/linux/ramips/dts/AR670W.dts
+++ b/target/linux/ramips/dts/AR670W.dts
@@ -2,6 +2,8 @@
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AR670W", "ralink,rt2880-soc";
model = "Airlink101 AR670W";
@@ -54,13 +56,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/AR725W.dts b/target/linux/ramips/dts/AR725W.dts
index 3b8cfb3..3a2003e 100644
--- a/target/linux/ramips/dts/AR725W.dts
+++ b/target/linux/ramips/dts/AR725W.dts
@@ -2,6 +2,8 @@
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AR725W", "ralink,rt2880-soc";
model = "Airlink101 AR725W";
@@ -64,13 +66,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/ASL26555-16M.dts b/target/linux/ramips/dts/ASL26555-16M.dts
index 56f3c9d..2887a6e 100644
--- a/target/linux/ramips/dts/ASL26555-16M.dts
+++ b/target/linux/ramips/dts/ASL26555-16M.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ASL26555", "ralink,rt3050-soc";
model = "Alpha ASL26555";
@@ -15,13 +17,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/ASL26555-8M.dts b/target/linux/ramips/dts/ASL26555-8M.dts
index 0dbc1dd..5ab6593 100644
--- a/target/linux/ramips/dts/ASL26555-8M.dts
+++ b/target/linux/ramips/dts/ASL26555-8M.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ASL26555", "ralink,rt3050-soc";
model = "Alpha ASL26555";
@@ -15,13 +17,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/ATP-52B.dts b/target/linux/ramips/dts/ATP-52B.dts
index c15d3a4..7e87298 100644
--- a/target/linux/ramips/dts/ATP-52B.dts
+++ b/target/linux/ramips/dts/ATP-52B.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ATP-52B", "ralink,rt3052-soc";
model = "Argus ATP-52B";
@@ -59,13 +61,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/AWAPN2403.dts b/target/linux/ramips/dts/AWAPN2403.dts
index 7babe42..a1b5b21 100644
--- a/target/linux/ramips/dts/AWAPN2403.dts
+++ b/target/linux/ramips/dts/AWAPN2403.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/AWM002-EVB-4M.dts b/target/linux/ramips/dts/AWM002-EVB-4M.dts
index e125232..f647a96 100644
--- a/target/linux/ramips/dts/AWM002-EVB-4M.dts
+++ b/target/linux/ramips/dts/AWM002-EVB-4M.dts
@@ -2,6 +2,8 @@
#include "AWM002-4M.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "AsiaRF AWM002 EVB";
@@ -33,13 +35,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/AWM002-EVB-8M.dts b/target/linux/ramips/dts/AWM002-EVB-8M.dts
index f2f91bb..3c34c4a 100644
--- a/target/linux/ramips/dts/AWM002-EVB-8M.dts
+++ b/target/linux/ramips/dts/AWM002-EVB-8M.dts
@@ -2,6 +2,8 @@
#include "AWM002-8M.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "AsiaRF AWM002 EVB";
@@ -33,13 +35,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/AWM003-EVB.dts b/target/linux/ramips/dts/AWM003-EVB.dts
index 13e6964..9f8c2d2 100644
--- a/target/linux/ramips/dts/AWM003-EVB.dts
+++ b/target/linux/ramips/dts/AWM003-EVB.dts
@@ -2,6 +2,8 @@
#include "AWM002-8M.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AWM003", "ralink,rt5350-soc";
model = "AsiaRF AWM003 EVB";
@@ -39,13 +41,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/ArcherC20i.dts b/target/linux/ramips/dts/ArcherC20i.dts
index a58fa57..711274e 100644
--- a/target/linux/ramips/dts/ArcherC20i.dts
+++ b/target/linux/ramips/dts/ArcherC20i.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "TP-Link Archer C20i";
@@ -41,12 +43,12 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/BC2.dts b/target/linux/ramips/dts/BC2.dts
index 5ae10a3..55cf896 100644
--- a/target/linux/ramips/dts/BC2.dts
+++ b/target/linux/ramips/dts/BC2.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/BR-6425.dts b/target/linux/ramips/dts/BR-6425.dts
index b871ead..1e13c97 100644
--- a/target/linux/ramips/dts/BR-6425.dts
+++ b/target/linux/ramips/dts/BR-6425.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "BR-6425", "ralink,rt3052-soc";
model = "Edimax BR-6425";
@@ -38,13 +40,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/BR-6475ND.dts b/target/linux/ramips/dts/BR-6475ND.dts
index 2ab2cba..a93b817 100644
--- a/target/linux/ramips/dts/BR-6475ND.dts
+++ b/target/linux/ramips/dts/BR-6475ND.dts
@@ -2,6 +2,8 @@
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "BR-6475ND", "ralink,rt3883-soc";
model = "Edimax BR-6475nD";
@@ -15,14 +17,14 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/BROADWAY.dts b/target/linux/ramips/dts/BROADWAY.dts
index 790dcc0..6cfac0f 100644
--- a/target/linux/ramips/dts/BROADWAY.dts
+++ b/target/linux/ramips/dts/BROADWAY.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/CF-WR800N.dts b/target/linux/ramips/dts/CF-WR800N.dts
index 913f142..6ce4b27 100644
--- a/target/linux/ramips/dts/CF-WR800N.dts
+++ b/target/linux/ramips/dts/CF-WR800N.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/CS-QR10.dts b/target/linux/ramips/dts/CS-QR10.dts
index c3cb711..bdd828f 100644
--- a/target/linux/ramips/dts/CS-QR10.dts
+++ b/target/linux/ramips/dts/CS-QR10.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex CS-QR10";
@@ -35,13 +37,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/CY-SWR1100.dts b/target/linux/ramips/dts/CY-SWR1100.dts
index 95827d5..e772279 100644
--- a/target/linux/ramips/dts/CY-SWR1100.dts
+++ b/target/linux/ramips/dts/CY-SWR1100.dts
@@ -2,6 +2,8 @@
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "CY-SWR1100", "ralink,rt3883-soc";
model = "Samsung CY-SWR1100";
@@ -64,13 +66,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/D105.dts b/target/linux/ramips/dts/D105.dts
index 2e86d1e..f7ace49 100644
--- a/target/linux/ramips/dts/D105.dts
+++ b/target/linux/ramips/dts/D105.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/DAP-1350.dts b/target/linux/ramips/dts/DAP-1350.dts
index 4628544..c3225db 100644
--- a/target/linux/ramips/dts/DAP-1350.dts
+++ b/target/linux/ramips/dts/DAP-1350.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DAP-1350", "ralink,rt3052-soc";
model = "D-Link DAP-1350";
@@ -76,25 +78,25 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/DB-WRT01.dts b/target/linux/ramips/dts/DB-WRT01.dts
index 4560dc5..400c5ef 100644
--- a/target/linux/ramips/dts/DB-WRT01.dts
+++ b/target/linux/ramips/dts/DB-WRT01.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/DCH-M225.dts b/target/linux/ramips/dts/DCH-M225.dts
index ee7c2c4..21133a9 100644
--- a/target/linux/ramips/dts/DCH-M225.dts
+++ b/target/linux/ramips/dts/DCH-M225.dts
@@ -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";
@@ -15,13 +17,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DCS-930.dts b/target/linux/ramips/dts/DCS-930.dts
index 373973c..d57682e 100644
--- a/target/linux/ramips/dts/DCS-930.dts
+++ b/target/linux/ramips/dts/DCS-930.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DCS-930", "ralink,rt3050-soc";
model = "D-Link DCS-930";
@@ -76,13 +78,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/DCS-930L-B1.dts b/target/linux/ramips/dts/DCS-930L-B1.dts
index 133245c..17996d2 100644
--- a/target/linux/ramips/dts/DCS-930L-B1.dts
+++ b/target/linux/ramips/dts/DCS-930L-B1.dts
@@ -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";
@@ -29,13 +31,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/DIR-300-B1.dts b/target/linux/ramips/dts/DIR-300-B1.dts
index 4f0a7ff..2ba6ae6 100644
--- a/target/linux/ramips/dts/DIR-300-B1.dts
+++ b/target/linux/ramips/dts/DIR-300-B1.dts
@@ -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";
@@ -47,13 +49,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-300-B7.dts b/target/linux/ramips/dts/DIR-300-B7.dts
index 9b9a6a4..fb93f5d 100644
--- a/target/linux/ramips/dts/DIR-300-B7.dts
+++ b/target/linux/ramips/dts/DIR-300-B7.dts
@@ -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";
@@ -29,13 +31,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/DIR-320-B1.dts b/target/linux/ramips/dts/DIR-320-B1.dts
index 102e06a..2335c9a 100644
--- a/target/linux/ramips/dts/DIR-320-B1.dts
+++ b/target/linux/ramips/dts/DIR-320-B1.dts
@@ -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";
@@ -34,13 +36,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-600-B1.dts b/target/linux/ramips/dts/DIR-600-B1.dts
index d45d3c5..493d49b 100644
--- a/target/linux/ramips/dts/DIR-600-B1.dts
+++ b/target/linux/ramips/dts/DIR-600-B1.dts
@@ -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";
@@ -47,13 +49,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-600-B2.dts b/target/linux/ramips/dts/DIR-600-B2.dts
index f0269cf..f1f10ad 100644
--- a/target/linux/ramips/dts/DIR-600-B2.dts
+++ b/target/linux/ramips/dts/DIR-600-B2.dts
@@ -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";
@@ -47,13 +49,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-610-A1.dts b/target/linux/ramips/dts/DIR-610-A1.dts
index 9ec66b4..e69997f 100644
--- a/target/linux/ramips/dts/DIR-610-A1.dts
+++ b/target/linux/ramips/dts/DIR-610-A1.dts
@@ -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";
@@ -29,13 +31,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/DIR-615-D.dts b/target/linux/ramips/dts/DIR-615-D.dts
index cac9d26..67705fe 100644
--- a/target/linux/ramips/dts/DIR-615-D.dts
+++ b/target/linux/ramips/dts/DIR-615-D.dts
@@ -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";
@@ -47,13 +49,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-615-H1.dts b/target/linux/ramips/dts/DIR-615-H1.dts
index d53c826..9fbd735 100644
--- a/target/linux/ramips/dts/DIR-615-H1.dts
+++ b/target/linux/ramips/dts/DIR-615-H1.dts
@@ -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";
@@ -44,13 +46,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/DIR-620-A1.dts b/target/linux/ramips/dts/DIR-620-A1.dts
index 68a2346..50967b2 100644
--- a/target/linux/ramips/dts/DIR-620-A1.dts
+++ b/target/linux/ramips/dts/DIR-620-A1.dts
@@ -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";
@@ -47,13 +49,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-620-D1.dts b/target/linux/ramips/dts/DIR-620-D1.dts
index 5cf330e..1bdcaff 100644
--- a/target/linux/ramips/dts/DIR-620-D1.dts
+++ b/target/linux/ramips/dts/DIR-620-D1.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/DIR-645.dts b/target/linux/ramips/dts/DIR-645.dts
index d508297..30eccaf 100644
--- a/target/linux/ramips/dts/DIR-645.dts
+++ b/target/linux/ramips/dts/DIR-645.dts
@@ -2,6 +2,8 @@
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-645", "ralink,rt3883-soc";
model = "D-Link DIR-645";
@@ -22,13 +24,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts
index 1f9ad8a..4ccea0d 100644
--- a/target/linux/ramips/dts/DIR-810L.dts
+++ b/target/linux/ramips/dts/DIR-810L.dts
@@ -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";
@@ -15,13 +17,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts
index 579df58..5154a4d 100644
--- a/target/linux/ramips/dts/DIR-860L-B1.dts
+++ b/target/linux/ramips/dts/DIR-860L-B1.dts
@@ -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";
@@ -48,13 +50,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/DUZUN-DM06.dts b/target/linux/ramips/dts/DUZUN-DM06.dts
index 05bb561..5715791 100644
--- a/target/linux/ramips/dts/DUZUN-DM06.dts
+++ b/target/linux/ramips/dts/DUZUN-DM06.dts
@@ -2,6 +2,8 @@
#include "mt7628an.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc";
model = "DuZun DM06";
@@ -20,13 +22,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/E1700.dts b/target/linux/ramips/dts/E1700.dts
index 36126ab..050303a 100644
--- a/target/linux/ramips/dts/E1700.dts
+++ b/target/linux/ramips/dts/E1700.dts
@@ -12,6 +12,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "linksys,e1700", "ralink,mt7620a-soc";
model = "Linksys E1700";
@@ -25,13 +27,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/ESR-9753.dts b/target/linux/ramips/dts/ESR-9753.dts
index 6869166..59a961d 100644
--- a/target/linux/ramips/dts/ESR-9753.dts
+++ b/target/linux/ramips/dts/ESR-9753.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ESR-9753", "ralink,rt3052-soc";
model = "Senao / EnGenius ESR-9753";
@@ -61,13 +63,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/EX2700.dts b/target/linux/ramips/dts/EX2700.dts
index c711adc..348ca78 100644
--- a/target/linux/ramips/dts/EX2700.dts
+++ b/target/linux/ramips/dts/EX2700.dts
@@ -12,6 +12,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Netgear EX2700";
@@ -69,13 +71,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts
index dacdea6..74e423c 100644
--- a/target/linux/ramips/dts/F5D8235_V1.dts
+++ b/target/linux/ramips/dts/F5D8235_V1.dts
@@ -2,6 +2,8 @@
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
@@ -55,13 +57,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/F7C027.dts b/target/linux/ramips/dts/F7C027.dts
index c8ed765..d6a150a 100644
--- a/target/linux/ramips/dts/F7C027.dts
+++ b/target/linux/ramips/dts/F7C027.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "F7C027", "ralink,rt5350-soc";
model = "Belkin F7C027";
@@ -39,19 +41,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts
index 4299b68..b318e68 100644
--- a/target/linux/ramips/dts/FIREWRT.dts
+++ b/target/linux/ramips/dts/FIREWRT.dts
@@ -2,6 +2,8 @@
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Firefly FireWRT";
@@ -33,13 +35,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts
index b7eb91e..c409f9b 100644
--- a/target/linux/ramips/dts/FONERA20N.dts
+++ b/target/linux/ramips/dts/FONERA20N.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "FONERA20N", "ralink,rt3052-soc";
model = "La Fonera 2.0N";
@@ -66,14 +68,14 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/GL-MT300A.dts b/target/linux/ramips/dts/GL-MT300A.dts
index 5edb7ca..6922b95 100644
--- a/target/linux/ramips/dts/GL-MT300A.dts
+++ b/target/linux/ramips/dts/GL-MT300A.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "GL-MT300A", "ralink,mt7620a-soc";
model = "GL-MT300A";
@@ -43,19 +45,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/GL-MT300N.dts b/target/linux/ramips/dts/GL-MT300N.dts
index 341a8f6..c6feb96 100644
--- a/target/linux/ramips/dts/GL-MT300N.dts
+++ b/target/linux/ramips/dts/GL-MT300N.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "GL-MT300N", "ralink,mt7620a-soc";
model = "GL-MT300N";
@@ -38,19 +40,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/GL-MT750.dts b/target/linux/ramips/dts/GL-MT750.dts
index c59ffb3..4667984 100644
--- a/target/linux/ramips/dts/GL-MT750.dts
+++ b/target/linux/ramips/dts/GL-MT750.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "GL-MT750", "ralink,mt7620a-soc";
model = "GL-MT750";
@@ -38,19 +40,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/HC5XXX.dtsi b/target/linux/ramips/dts/HC5XXX.dtsi
index d55d5b6..54bf409 100644
--- a/target/linux/ramips/dts/HC5XXX.dtsi
+++ b/target/linux/ramips/dts/HC5XXX.dtsi
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts
index ee38509..91426db 100644
--- a/target/linux/ramips/dts/HG255D.dts
+++ b/target/linux/ramips/dts/HG255D.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HG255D", "ralink,rt3052-soc";
model = "HuaWei HG255D";
@@ -87,19 +89,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/HLKRM04.dts b/target/linux/ramips/dts/HLKRM04.dts
index 2f4e435..cbd8609 100644
--- a/target/linux/ramips/dts/HLKRM04.dts
+++ b/target/linux/ramips/dts/HLKRM04.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HLKRM04", "ralink,rt5350-soc";
model = "HILINK HLK-RM04";
@@ -42,12 +44,12 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/HPM.dts b/target/linux/ramips/dts/HPM.dts
index 000750f..ada12c1 100644
--- a/target/linux/ramips/dts/HPM.dts
+++ b/target/linux/ramips/dts/HPM.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/HT-TM02.dts b/target/linux/ramips/dts/HT-TM02.dts
index bfa3536..8dc2dbc 100644
--- a/target/linux/ramips/dts/HT-TM02.dts
+++ b/target/linux/ramips/dts/HT-TM02.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HT-TM02", "ralink,rt5350-soc";
model = "HooToo HT-TM02";
@@ -29,14 +31,14 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/HW550-3G.dts b/target/linux/ramips/dts/HW550-3G.dts
index 0efa8d0..d5bca44 100644
--- a/target/linux/ramips/dts/HW550-3G.dts
+++ b/target/linux/ramips/dts/HW550-3G.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HW550-3G", "ralink,rt3052-soc";
model = "Aztech HW550-3G";
@@ -71,19 +73,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/IP2202.dts b/target/linux/ramips/dts/IP2202.dts
index 50d5532..6f26f3b 100644
--- a/target/linux/ramips/dts/IP2202.dts
+++ b/target/linux/ramips/dts/IP2202.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/JHR-N805R.dts b/target/linux/ramips/dts/JHR-N805R.dts
index 0688c3a..20cdb84 100644
--- a/target/linux/ramips/dts/JHR-N805R.dts
+++ b/target/linux/ramips/dts/JHR-N805R.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/JHR-N825R.dts b/target/linux/ramips/dts/JHR-N825R.dts
index 1e9acdf..4eab893 100644
--- a/target/linux/ramips/dts/JHR-N825R.dts
+++ b/target/linux/ramips/dts/JHR-N825R.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/JHR-N926R.dts b/target/linux/ramips/dts/JHR-N926R.dts
index 1a63656..e5b64c5 100644
--- a/target/linux/ramips/dts/JHR-N926R.dts
+++ b/target/linux/ramips/dts/JHR-N926R.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "JHR-N926R", "ralink,rt3052-soc";
model = "JCG JHR-N926R";
@@ -94,13 +96,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/LINKIT7688.dts b/target/linux/ramips/dts/LINKIT7688.dts
index 09a8c98..210d4d0 100644
--- a/target/linux/ramips/dts/LINKIT7688.dts
+++ b/target/linux/ramips/dts/LINKIT7688.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/M2M.dts b/target/linux/ramips/dts/M2M.dts
index 22ec534..99e7b6a 100644
--- a/target/linux/ramips/dts/M2M.dts
+++ b/target/linux/ramips/dts/M2M.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "M2M", "ralink,rt5350-soc";
model = "Intenso Memory 2 Move";
@@ -33,13 +35,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/M3.dts b/target/linux/ramips/dts/M3.dts
index 9b6ed89..f4169c7 100644
--- a/target/linux/ramips/dts/M3.dts
+++ b/target/linux/ramips/dts/M3.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "M3", "ralink,rt5350-soc";
model = "Poray M3";
@@ -24,14 +26,14 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/M4-4M.dts b/target/linux/ramips/dts/M4-4M.dts
index 0502714..79bea19 100644
--- a/target/linux/ramips/dts/M4-4M.dts
+++ b/target/linux/ramips/dts/M4-4M.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/M4-8M.dts b/target/linux/ramips/dts/M4-8M.dts
index 16ee184..8d6453b 100644
--- a/target/linux/ramips/dts/M4-8M.dts
+++ b/target/linux/ramips/dts/M4-8M.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/MINIEMBPLUG.dts b/target/linux/ramips/dts/MINIEMBPLUG.dts
index eefac57..5f1cfe9 100644
--- a/target/linux/ramips/dts/MINIEMBPLUG.dts
+++ b/target/linux/ramips/dts/MINIEMBPLUG.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MINIEMBPLUG", "ralink,rt5350-soc";
model = "Omnima MiniEMBPlug";
@@ -29,25 +31,25 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MINIEMBWIFI.dts b/target/linux/ramips/dts/MINIEMBWIFI.dts
index 1240ade..ccdd40f 100644
--- a/target/linux/ramips/dts/MINIEMBWIFI.dts
+++ b/target/linux/ramips/dts/MINIEMBWIFI.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts
index e9ad375..0cd511c 100644
--- a/target/linux/ramips/dts/MIWIFI-MINI.dts
+++ b/target/linux/ramips/dts/MIWIFI-MINI.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/MLW221.dts b/target/linux/ramips/dts/MLW221.dts
index 3406280..05d7dff 100644
--- a/target/linux/ramips/dts/MLW221.dts
+++ b/target/linux/ramips/dts/MLW221.dts
@@ -2,6 +2,8 @@
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mlw221", "ralink,mt7620n-soc";
model = "Kingston MLW221";
@@ -29,13 +31,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MLWG2.dts b/target/linux/ramips/dts/MLWG2.dts
index aeedb46..9c71c91 100644
--- a/target/linux/ramips/dts/MLWG2.dts
+++ b/target/linux/ramips/dts/MLWG2.dts
@@ -2,6 +2,8 @@
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mlwg2", "ralink,mt7620n-soc";
model = "Kingston MLWG2";
@@ -29,13 +31,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MOFI3500-3GN.dts b/target/linux/ramips/dts/MOFI3500-3GN.dts
index 633f20a..23596e0 100644
--- a/target/linux/ramips/dts/MOFI3500-3GN.dts
+++ b/target/linux/ramips/dts/MOFI3500-3GN.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MOFI3500-3GN", "ralink,rt3052-soc";
model = "MoFi Network MOFI3500-3GN";
@@ -71,19 +73,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts
index d9baed7..e97e60c 100644
--- a/target/linux/ramips/dts/MPRA1.dts
+++ b/target/linux/ramips/dts/MPRA1.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/MPRA2.dts b/target/linux/ramips/dts/MPRA2.dts
index 84f5dda..72ee876 100644
--- a/target/linux/ramips/dts/MPRA2.dts
+++ b/target/linux/ramips/dts/MPRA2.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/MR-102N.dts b/target/linux/ramips/dts/MR-102N.dts
index 6546601..a28deb7 100644
--- a/target/linux/ramips/dts/MR-102N.dts
+++ b/target/linux/ramips/dts/MR-102N.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MR-102N", "ralink,rt3052-soc";
model = "AXIMCom MR-102N";
@@ -76,13 +78,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MT7620a.dts b/target/linux/ramips/dts/MT7620a.dts
index 7bf3897..8f1b6d9 100644
--- a/target/linux/ramips/dts/MT7620a.dts
+++ b/target/linux/ramips/dts/MT7620a.dts
@@ -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";
@@ -15,13 +17,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MT7620a_MT7610e.dts b/target/linux/ramips/dts/MT7620a_MT7610e.dts
index 52ceddc..da241a4 100644
--- a/target/linux/ramips/dts/MT7620a_MT7610e.dts
+++ b/target/linux/ramips/dts/MT7620a_MT7610e.dts
@@ -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";
@@ -15,13 +17,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MT7620a_V22SG.dts b/target/linux/ramips/dts/MT7620a_V22SG.dts
index a3e206e..ea17512 100644
--- a/target/linux/ramips/dts/MT7620a_V22SG.dts
+++ b/target/linux/ramips/dts/MT7620a_V22SG.dts
@@ -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";
@@ -15,13 +17,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/MZK-750DHP.dts b/target/linux/ramips/dts/MZK-750DHP.dts
index 01fe2a1..589b19e 100644
--- a/target/linux/ramips/dts/MZK-750DHP.dts
+++ b/target/linux/ramips/dts/MZK-750DHP.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex MZK-750DHP";
@@ -34,13 +36,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MZK-DP150N.dts b/target/linux/ramips/dts/MZK-DP150N.dts
index 86f82ba..7fa8ef4 100644
--- a/target/linux/ramips/dts/MZK-DP150N.dts
+++ b/target/linux/ramips/dts/MZK-DP150N.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/MZK-EX300NP.dts b/target/linux/ramips/dts/MZK-EX300NP.dts
index 4c87f90..569d0a9 100644
--- a/target/linux/ramips/dts/MZK-EX300NP.dts
+++ b/target/linux/ramips/dts/MZK-EX300NP.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex MZK-EX300NP";
@@ -49,13 +51,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MZK-EX750NP.dts b/target/linux/ramips/dts/MZK-EX750NP.dts
index 74f72f0..ec2ca5f 100644
--- a/target/linux/ramips/dts/MZK-EX750NP.dts
+++ b/target/linux/ramips/dts/MZK-EX750NP.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex MZK-EX750NP";
@@ -54,13 +56,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MZK-W300NH2.dts b/target/linux/ramips/dts/MZK-W300NH2.dts
index 987d6a7..4b002b7 100644
--- a/target/linux/ramips/dts/MZK-W300NH2.dts
+++ b/target/linux/ramips/dts/MZK-W300NH2.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MZK-W300NH2", "ralink,rt3052-soc";
model = "Planex MZK-W300NH2";
@@ -72,19 +74,19 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/MicroWRT.dts b/target/linux/ramips/dts/MicroWRT.dts
index 07e0155..c8558c6 100644
--- a/target/linux/ramips/dts/MicroWRT.dts
+++ b/target/linux/ramips/dts/MicroWRT.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "microwrt", "ralink,mt7620a-soc";
model = "Microduino MicroWRT";
@@ -19,13 +21,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/NA930.dts b/target/linux/ramips/dts/NA930.dts
index 4093932..522bc75 100644
--- a/target/linux/ramips/dts/NA930.dts
+++ b/target/linux/ramips/dts/NA930.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
model = "Sercomm NA930";
@@ -48,19 +50,19 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/NBG-419N.dts b/target/linux/ramips/dts/NBG-419N.dts
index 59ab665..e19ce34 100644
--- a/target/linux/ramips/dts/NBG-419N.dts
+++ b/target/linux/ramips/dts/NBG-419N.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "NBG-419N", "ralink,rt3052-soc";
model = "ZyXEL NBG-419N";
@@ -61,13 +63,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/NBG-419N2.dts b/target/linux/ramips/dts/NBG-419N2.dts
index 981b4e5..8bb0cc5 100644
--- a/target/linux/ramips/dts/NBG-419N2.dts
+++ b/target/linux/ramips/dts/NBG-419N2.dts
@@ -2,6 +2,8 @@
#include "rt3352.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "NBG-419N2", "ralink,rt3352-soc";
model = "ZyXEL NBG-419N v2";
@@ -70,18 +72,18 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/NW718.dts b/target/linux/ramips/dts/NW718.dts
index 06c6b0d..372bff6 100644
--- a/target/linux/ramips/dts/NW718.dts
+++ b/target/linux/ramips/dts/NW718.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "NW718", "ralink,rt3050-soc";
model = "Netcore NW718";
@@ -34,13 +36,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts
index 2d91c58..07950ba 100644
--- a/target/linux/ramips/dts/Newifi-D1.dts
+++ b/target/linux/ramips/dts/Newifi-D1.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/OY-0001.dts b/target/linux/ramips/dts/OY-0001.dts
index 6bf1ad6..932d379 100644
--- a/target/linux/ramips/dts/OY-0001.dts
+++ b/target/linux/ramips/dts/OY-0001.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/PBR-D1.dts b/target/linux/ramips/dts/PBR-D1.dts
index 30477a0..da32c8d 100644
--- a/target/linux/ramips/dts/PBR-D1.dts
+++ b/target/linux/ramips/dts/PBR-D1.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts
index ac77cd5..e278fc5 100644
--- a/target/linux/ramips/dts/PBR-M1.dts
+++ b/target/linux/ramips/dts/PBR-M1.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/PSG1208.dts b/target/linux/ramips/dts/PSG1208.dts
index dc1adc4..e9b6639 100644
--- a/target/linux/ramips/dts/PSG1208.dts
+++ b/target/linux/ramips/dts/PSG1208.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/PSG1218.dts b/target/linux/ramips/dts/PSG1218.dts
index 6fdb678..b777c9b 100644
--- a/target/linux/ramips/dts/PSG1218.dts
+++ b/target/linux/ramips/dts/PSG1218.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts
index c4c4522..f749a4e 100644
--- a/target/linux/ramips/dts/PSR-680W.dts
+++ b/target/linux/ramips/dts/PSR-680W.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/PWH2004.dts b/target/linux/ramips/dts/PWH2004.dts
index 51f4392..18ee742 100644
--- a/target/linux/ramips/dts/PWH2004.dts
+++ b/target/linux/ramips/dts/PWH2004.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/PX-4885.dtsi b/target/linux/ramips/dts/PX-4885.dtsi
index b135b57..257a636 100644
--- a/target/linux/ramips/dts/PX-4885.dtsi
+++ b/target/linux/ramips/dts/PX-4885.dtsi
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/RE6500.dts b/target/linux/ramips/dts/RE6500.dts
index 39205c4..d34e857 100644
--- a/target/linux/ramips/dts/RE6500.dts
+++ b/target/linux/ramips/dts/RE6500.dts
@@ -2,6 +2,8 @@
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Linksys RE6500";
@@ -38,13 +40,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/RP-N53.dts b/target/linux/ramips/dts/RP-N53.dts
index c661be3..514481b 100644
--- a/target/linux/ramips/dts/RP-N53.dts
+++ b/target/linux/ramips/dts/RP-N53.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "asus,rp-n53", "ralink,mt7620a-soc";
model = "Asus RP-N53";
@@ -15,25 +17,25 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/RT-G32-B1.dts b/target/linux/ramips/dts/RT-G32-B1.dts
index ab8e3fd..d392bb3 100644
--- a/target/linux/ramips/dts/RT-G32-B1.dts
+++ b/target/linux/ramips/dts/RT-G32-B1.dts
@@ -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";
@@ -15,13 +17,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/RT-N10-PLUS.dts b/target/linux/ramips/dts/RT-N10-PLUS.dts
index 43535d4..cb5a136 100644
--- a/target/linux/ramips/dts/RT-N10-PLUS.dts
+++ b/target/linux/ramips/dts/RT-N10-PLUS.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RT-N10-PLUS", "ralink,rt3050-soc";
model = "Asus RT-N10+";
@@ -56,13 +58,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/RT-N13U.dts b/target/linux/ramips/dts/RT-N13U.dts
index 14cff67..9625415 100644
--- a/target/linux/ramips/dts/RT-N13U.dts
+++ b/target/linux/ramips/dts/RT-N13U.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RT-N13U", "ralink,rt3052-soc";
model = "Asus RT-N13U";
@@ -61,13 +63,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/RT-N14U.dts b/target/linux/ramips/dts/RT-N14U.dts
index 05263e1..22dd7b8 100644
--- a/target/linux/ramips/dts/RT-N14U.dts
+++ b/target/linux/ramips/dts/RT-N14U.dts
@@ -2,6 +2,8 @@
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
model = "Asus RT-N14U";
@@ -44,13 +46,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/RT-N15.dts b/target/linux/ramips/dts/RT-N15.dts
index d5bcbe3..704d313 100644
--- a/target/linux/ramips/dts/RT-N15.dts
+++ b/target/linux/ramips/dts/RT-N15.dts
@@ -2,6 +2,8 @@
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
@@ -55,13 +57,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/RT-N56U.dts b/target/linux/ramips/dts/RT-N56U.dts
index fea73e2..d101ece 100644
--- a/target/linux/ramips/dts/RT-N56U.dts
+++ b/target/linux/ramips/dts/RT-N56U.dts
@@ -2,6 +2,8 @@
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RT-N56U", "ralink,rt3883-soc";
model = "Asus RT-N56U";
@@ -53,13 +55,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/RUT5XX.dts b/target/linux/ramips/dts/RUT5XX.dts
index 85c26d9..76cf49b 100644
--- a/target/linux/ramips/dts/RUT5XX.dts
+++ b/target/linux/ramips/dts/RUT5XX.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/SAP-G3200U3.dts b/target/linux/ramips/dts/SAP-G3200U3.dts
index d6f2f30..9069f7c 100644
--- a/target/linux/ramips/dts/SAP-G3200U3.dts
+++ b/target/linux/ramips/dts/SAP-G3200U3.dts
@@ -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";
@@ -33,13 +35,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/SK-WB8.dts b/target/linux/ramips/dts/SK-WB8.dts
index 1fed89e..b50de55 100644
--- a/target/linux/ramips/dts/SK-WB8.dts
+++ b/target/linux/ramips/dts/SK-WB8.dts
@@ -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";
@@ -37,12 +39,12 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/SL-R7205.dts b/target/linux/ramips/dts/SL-R7205.dts
index f5884fb..7b6dc99 100644
--- a/target/linux/ramips/dts/SL-R7205.dts
+++ b/target/linux/ramips/dts/SL-R7205.dts
@@ -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";
@@ -56,13 +58,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/TEW-691GR.dts b/target/linux/ramips/dts/TEW-691GR.dts
index e92db1e..af91079 100644
--- a/target/linux/ramips/dts/TEW-691GR.dts
+++ b/target/linux/ramips/dts/TEW-691GR.dts
@@ -2,6 +2,8 @@
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "TEW-691GR", "ralink,rt3883-soc";
model = "TRENDnet TEW-691GR";
@@ -46,19 +48,19 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/TEW-692GR.dts b/target/linux/ramips/dts/TEW-692GR.dts
index 2c9313f..b9c7006 100644
--- a/target/linux/ramips/dts/TEW-692GR.dts
+++ b/target/linux/ramips/dts/TEW-692GR.dts
@@ -2,6 +2,8 @@
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "TEW-692GR", "ralink,rt3883-soc";
model = "TRENDnet TEW-692GR";
@@ -46,13 +48,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/TEW-714TRU.dts b/target/linux/ramips/dts/TEW-714TRU.dts
index 0e0f066..79b30d1 100644
--- a/target/linux/ramips/dts/TEW-714TRU.dts
+++ b/target/linux/ramips/dts/TEW-714TRU.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "TEW-714TRU", "ralink,rt5350-soc";
model = "TRENDnet TEW714TRU";
@@ -29,13 +31,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/TINY-AC.dts b/target/linux/ramips/dts/TINY-AC.dts
index 81f1ade..356c44d 100644
--- a/target/linux/ramips/dts/TINY-AC.dts
+++ b/target/linux/ramips/dts/TINY-AC.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/Timecloud.dts b/target/linux/ramips/dts/Timecloud.dts
index 8ee312c..2d60324 100644
--- a/target/linux/ramips/dts/Timecloud.dts
+++ b/target/linux/ramips/dts/Timecloud.dts
@@ -2,6 +2,8 @@
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Thunder Timecloud";
@@ -39,13 +41,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/UR-326N4G.dts b/target/linux/ramips/dts/UR-326N4G.dts
index d90d77c..6ca1aa9 100644
--- a/target/linux/ramips/dts/UR-326N4G.dts
+++ b/target/linux/ramips/dts/UR-326N4G.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "UR-326N4G", "ralink,rt3052-soc";
model = "UPVEL UR-326N4G";
@@ -76,13 +78,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/UR-336UN.dts b/target/linux/ramips/dts/UR-336UN.dts
index e0325a7..fa75304 100644
--- a/target/linux/ramips/dts/UR-336UN.dts
+++ b/target/linux/ramips/dts/UR-336UN.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "UR-336UN", "ralink,rt3052-soc";
model = "UPVEL UR-336UN";
@@ -53,13 +55,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/V11STFE.dts b/target/linux/ramips/dts/V11STFE.dts
index 6f7a5cb..c4867d8 100644
--- a/target/linux/ramips/dts/V11STFE.dts
+++ b/target/linux/ramips/dts/V11STFE.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/V22RW-2X2.dts b/target/linux/ramips/dts/V22RW-2X2.dts
index 602e170..29d14c2 100644
--- a/target/linux/ramips/dts/V22RW-2X2.dts
+++ b/target/linux/ramips/dts/V22RW-2X2.dts
@@ -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";
@@ -61,13 +63,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/VR500.dts b/target/linux/ramips/dts/VR500.dts
index 3cddce6..8b5d98f 100644
--- a/target/linux/ramips/dts/VR500.dts
+++ b/target/linux/ramips/dts/VR500.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/W150M.dts b/target/linux/ramips/dts/W150M.dts
index 679db60..9ac84a0 100644
--- a/target/linux/ramips/dts/W150M.dts
+++ b/target/linux/ramips/dts/W150M.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "W150M", "ralink,rt3050-soc";
model = "Tenda W150M";
@@ -81,13 +83,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/W306R_V20.dts b/target/linux/ramips/dts/W306R_V20.dts
index 79ae23d..ff5ca59 100644
--- a/target/linux/ramips/dts/W306R_V20.dts
+++ b/target/linux/ramips/dts/W306R_V20.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/W502U.dts b/target/linux/ramips/dts/W502U.dts
index 7398170..1de6ffa 100644
--- a/target/linux/ramips/dts/W502U.dts
+++ b/target/linux/ramips/dts/W502U.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "W502U", "ralink,rt3052-soc";
model = "ALFA Networks W502U";
@@ -65,13 +67,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WCR150GN.dts b/target/linux/ramips/dts/WCR150GN.dts
index 541836b..b47dd8b 100644
--- a/target/linux/ramips/dts/WCR150GN.dts
+++ b/target/linux/ramips/dts/WCR150GN.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WCR150GN", "ralink,rt3050-soc";
model = "Sparklan WCR-150GN";
@@ -61,13 +63,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WF-2881.dts b/target/linux/ramips/dts/WF-2881.dts
index 050bc2e..2cad0ec 100644
--- a/target/linux/ramips/dts/WF-2881.dts
+++ b/target/linux/ramips/dts/WF-2881.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/WHR-1166D.dts b/target/linux/ramips/dts/WHR-1166D.dts
index fd2e451..c3b85da 100644
--- a/target/linux/ramips/dts/WHR-1166D.dts
+++ b/target/linux/ramips/dts/WHR-1166D.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Buffalo WHR-1166D";
@@ -54,27 +56,27 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WHR-300HP2.dts b/target/linux/ramips/dts/WHR-300HP2.dts
index acd4ce4..3958217 100644
--- a/target/linux/ramips/dts/WHR-300HP2.dts
+++ b/target/linux/ramips/dts/WHR-300HP2.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Buffalo WHR-300HP2";
@@ -54,27 +56,27 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WHR-600D.dts b/target/linux/ramips/dts/WHR-600D.dts
index c063355..bea67a9 100644
--- a/target/linux/ramips/dts/WHR-600D.dts
+++ b/target/linux/ramips/dts/WHR-600D.dts
@@ -2,6 +2,8 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Buffalo WHR-600D";
@@ -54,27 +56,27 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WHR-G300N.dts b/target/linux/ramips/dts/WHR-G300N.dts
index 4f80f2d..c0779e2 100644
--- a/target/linux/ramips/dts/WHR-G300N.dts
+++ b/target/linux/ramips/dts/WHR-G300N.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WHR-G300N", "ralink,rt3052-soc";
model = "Buffalo WHR-G300N";
@@ -43,25 +45,25 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WIDORA-NEO.dts b/target/linux/ramips/dts/WIDORA-NEO.dts
index 406b5ca..f6b8f1d 100644
--- a/target/linux/ramips/dts/WIDORA-NEO.dts
+++ b/target/linux/ramips/dts/WIDORA-NEO.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/WITI.dts b/target/linux/ramips/dts/WITI.dts
index bffd4ff..a82a495 100644
--- a/target/linux/ramips/dts/WITI.dts
+++ b/target/linux/ramips/dts/WITI.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/WIZFI630A.dts b/target/linux/ramips/dts/WIZFI630A.dts
index 0f7ede5..78891c2 100644
--- a/target/linux/ramips/dts/WIZFI630A.dts
+++ b/target/linux/ramips/dts/WIZFI630A.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "wizfi630a", "ralink,rt5350-soc";
model = "WIZnet WizFi630A";
@@ -48,25 +50,25 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WL-330N.dts b/target/linux/ramips/dts/WL-330N.dts
index d3cd74b..1cf1712 100644
--- a/target/linux/ramips/dts/WL-330N.dts
+++ b/target/linux/ramips/dts/WL-330N.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WL-330N", "ralink,rt3050-soc";
model = "Asus WL-330N";
@@ -29,13 +31,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WL-330N3G.dts b/target/linux/ramips/dts/WL-330N3G.dts
index 9290673..fe703ba 100644
--- a/target/linux/ramips/dts/WL-330N3G.dts
+++ b/target/linux/ramips/dts/WL-330N3G.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WL-330N3G", "ralink,rt3050-soc";
model = "Asus WL-330N3G";
@@ -34,13 +36,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WL-341V3.dts b/target/linux/ramips/dts/WL-341V3.dts
index 5f9e1dd..e8b6d68 100644
--- a/target/linux/ramips/dts/WL-341V3.dts
+++ b/target/linux/ramips/dts/WL-341V3.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WL-341V3", "ralink,rt3052-soc";
model = "Sitecom WL-341 v3";
@@ -86,13 +88,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WL-351.dts b/target/linux/ramips/dts/WL-351.dts
index 541f8ce..91e71c6 100644
--- a/target/linux/ramips/dts/WL-351.dts
+++ b/target/linux/ramips/dts/WL-351.dts
@@ -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";
@@ -66,13 +68,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/WLI-TX4-AG300N.dts b/target/linux/ramips/dts/WLI-TX4-AG300N.dts
index 70521a7..9d9b222 100644
--- a/target/linux/ramips/dts/WLI-TX4-AG300N.dts
+++ b/target/linux/ramips/dts/WLI-TX4-AG300N.dts
@@ -2,6 +2,8 @@
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
@@ -49,19 +51,19 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/WMR-300.dts b/target/linux/ramips/dts/WMR-300.dts
index 02fbdc5..faa867b 100644
--- a/target/linux/ramips/dts/WMR-300.dts
+++ b/target/linux/ramips/dts/WMR-300.dts
@@ -2,6 +2,8 @@
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
model = "Buffalo WMR-300";
@@ -34,13 +36,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WNCE2001.dts b/target/linux/ramips/dts/WNCE2001.dts
index 2dc39ce..92d03de 100644
--- a/target/linux/ramips/dts/WNCE2001.dts
+++ b/target/linux/ramips/dts/WNCE2001.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WNCE2001", "ralink,rt3052-soc";
model = "Netgear WNCE2001";
@@ -43,25 +45,25 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts
index 9d3d0d5..f67c320 100644
--- a/target/linux/ramips/dts/WNDR3700V5.dts
+++ b/target/linux/ramips/dts/WNDR3700V5.dts
@@ -2,6 +2,8 @@
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board","ralink,mt7621-soc";
model = "Netgear WNDR3700v5";
@@ -38,19 +40,19 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/WR512-3GN-4M.dts b/target/linux/ramips/dts/WR512-3GN-4M.dts
index 45e1463..09e4480 100644
--- a/target/linux/ramips/dts/WR512-3GN-4M.dts
+++ b/target/linux/ramips/dts/WR512-3GN-4M.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WR512-3GN", "ralink,rt3052-soc";
model = "WR512-3GN-like router";
@@ -76,13 +78,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WR512-3GN-8M.dts b/target/linux/ramips/dts/WR512-3GN-8M.dts
index 7e9a0c2..03583f9 100644
--- a/target/linux/ramips/dts/WR512-3GN-8M.dts
+++ b/target/linux/ramips/dts/WR512-3GN-8M.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WR512-3GN", "ralink,rt3052-soc";
model = "WR512-3GN-like router";
@@ -76,13 +78,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WR6202.dts b/target/linux/ramips/dts/WR6202.dts
index 534d78d..1740b18 100644
--- a/target/linux/ramips/dts/WR6202.dts
+++ b/target/linux/ramips/dts/WR6202.dts
@@ -2,6 +2,8 @@
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WR6202", "ralink,rt3052-soc";
model = "AWB WR6202";
@@ -33,13 +35,13 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/WRH-300CR.dts b/target/linux/ramips/dts/WRH-300CR.dts
index aece2e6..f7ef933 100644
--- a/target/linux/ramips/dts/WRH-300CR.dts
+++ b/target/linux/ramips/dts/WRH-300CR.dts
@@ -2,6 +2,8 @@
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
model = "ELECOM WRH-300CR";
@@ -34,13 +36,13 @@
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>;
};
};
};
diff --git a/target/linux/ramips/dts/WRTNODE2.dtsi b/target/linux/ramips/dts/WRTNODE2.dtsi
index 0242314..294616c 100644
--- a/target/linux/ramips/dts/WRTNODE2.dtsi
+++ b/target/linux/ramips/dts/WRTNODE2.dtsi
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/WSR-1166.dts b/target/linux/ramips/dts/WSR-1166.dts
index 8f9991f..97a4304 100644
--- a/target/linux/ramips/dts/WSR-1166.dts
+++ b/target/linux/ramips/dts/WSR-1166.dts
@@ -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";
@@ -68,40 +70,40 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/WSR-600.dts b/target/linux/ramips/dts/WSR-600.dts
index 2d08b93..43f63f6 100644
--- a/target/linux/ramips/dts/WSR-600.dts
+++ b/target/linux/ramips/dts/WSR-600.dts
@@ -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";
@@ -68,40 +70,40 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/WT3020-4M.dts b/target/linux/ramips/dts/WT3020-4M.dts
index f611cdf..368a246 100644
--- a/target/linux/ramips/dts/WT3020-4M.dts
+++ b/target/linux/ramips/dts/WT3020-4M.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/WT3020-8M.dts b/target/linux/ramips/dts/WT3020-8M.dts
index 3c62307..0e15d03 100644
--- a/target/linux/ramips/dts/WT3020-8M.dts
+++ b/target/linux/ramips/dts/WT3020-8M.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/WZR-AGL300NH.dts b/target/linux/ramips/dts/WZR-AGL300NH.dts
index 23fba7c..0f2a73a 100644
--- a/target/linux/ramips/dts/WZR-AGL300NH.dts
+++ b/target/linux/ramips/dts/WZR-AGL300NH.dts
@@ -2,6 +2,8 @@
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
@@ -63,19 +65,19 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts
index 86f5c63..efb9d77 100644
--- a/target/linux/ramips/dts/X5.dts
+++ b/target/linux/ramips/dts/X5.dts
@@ -2,6 +2,8 @@
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "X5", "ralink,rt5350-soc";
model = "Poray X5";
@@ -39,20 +41,20 @@
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>;
};
};
diff --git a/target/linux/ramips/dts/X8.dts b/target/linux/ramips/dts/X8.dts
index 733bbb5..db8eec5 100644
--- a/target/linux/ramips/dts/X8.dts
+++ b/target/linux/ramips/dts/X8.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/XDXRN502J.dts b/target/linux/ramips/dts/XDXRN502J.dts
index 34a29cc..304da9c 100644
--- a/target/linux/ramips/dts/XDXRN502J.dts
+++ b/target/linux/ramips/dts/XDXRN502J.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/Y1.dtsi b/target/linux/ramips/dts/Y1.dtsi
index 201f48b..1d5f1ef 100644
--- a/target/linux/ramips/dts/Y1.dtsi
+++ b/target/linux/ramips/dts/Y1.dtsi
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/YOUKU-YK1.dts b/target/linux/ramips/dts/YOUKU-YK1.dts
index a9c13e5..1746f6c 100644
--- a/target/linux/ramips/dts/YOUKU-YK1.dts
+++ b/target/linux/ramips/dts/YOUKU-YK1.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ZBT-APE522II.dts b/target/linux/ramips/dts/ZBT-APE522II.dts
index eff27c2..f570129 100644
--- a/target/linux/ramips/dts/ZBT-APE522II.dts
+++ b/target/linux/ramips/dts/ZBT-APE522II.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ZBT-CPE102.dts b/target/linux/ramips/dts/ZBT-CPE102.dts
index b93e585..abfe0c0 100644
--- a/target/linux/ramips/dts/ZBT-CPE102.dts
+++ b/target/linux/ramips/dts/ZBT-CPE102.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ZBT-WA05.dts b/target/linux/ramips/dts/ZBT-WA05.dts
index c2d51c3..43f08f5 100644
--- a/target/linux/ramips/dts/ZBT-WA05.dts
+++ b/target/linux/ramips/dts/ZBT-WA05.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ZBT-WE826.dts b/target/linux/ramips/dts/ZBT-WE826.dts
index 75c99a7..1eb0318 100644
--- a/target/linux/ramips/dts/ZBT-WE826.dts
+++ b/target/linux/ramips/dts/ZBT-WE826.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ZBT-WG2626.dts b/target/linux/ramips/dts/ZBT-WG2626.dts
index b599d7b..e926514 100644
--- a/target/linux/ramips/dts/ZBT-WG2626.dts
+++ b/target/linux/ramips/dts/ZBT-WG2626.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/ZBT-WG3526.dts b/target/linux/ramips/dts/ZBT-WG3526.dts
index 538a7d8..4c15f41 100644
--- a/target/linux/ramips/dts/ZBT-WG3526.dts
+++ b/target/linux/ramips/dts/ZBT-WG3526.dts
@@ -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>;
};
};
diff --git a/target/linux/ramips/dts/ZBT-WR8305RT.dts b/target/linux/ramips/dts/ZBT-WR8305RT.dts
index 694b7cf..edc820f 100644
--- a/target/linux/ramips/dts/ZBT-WR8305RT.dts
+++ b/target/linux/ramips/dts/ZBT-WR8305RT.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/ZTE-Q7.dts b/target/linux/ramips/dts/ZTE-Q7.dts
index 2c4c2e5..44bed87 100644
--- a/target/linux/ramips/dts/ZTE-Q7.dts
+++ b/target/linux/ramips/dts/ZTE-Q7.dts
@@ -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>;
};
};
};
More information about the lede-commits
mailing list