phone {
label = "phone";
gpios = <&gpio0 1 1>;
- linux,code = <169>;
+ linux,code = <KEY_PHONE>;
};
reset {
label = "reset";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4510PW - Wippies, Elisa";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4520PW - Easybox 800, WAV-281";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV4525PW - Speedport W501V Typ A";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV452CQW - Arcor 801";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7506PW11 - Alice/O2 IAD 4421";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7510PW22 - Astoria Networks";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7518PW - Astoria Networks";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7519PW - Astoria Networks";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7519RW22 - Orange Livebox 2.1";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV7525PW - Speedport W303V Typ A";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV752DPW - Arcor 802";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV752DPW22 - Arcor 803";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "ARV8539PW22 - Speedport W 504V Typ A";
#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 */
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "BTHOMEHUBV5A - BT Home Hub 5A";
#include "amazonse.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "DGN1000B - Netgear DGN1000B";
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "root= console=ttyLTQ0,115200";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "FRITZ3370 - Fritz!Box WLAN 3370";
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "FRITZ7320 - 1&1 HomeServer";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "FRITZ7360SL - 1&1 HomeServer";
#include "danube.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "GIGASX76X - Gigaset SX761,SX762,SX763";
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "H201L - ZTE H210L";
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "P2601HNFX - ZyXEL P-2601HN-Fx";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VG3503J - BT OpenReach VDSL Modem";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VGV7510KW22 - o2 Box 6431";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VGV7519 - KPN Experiabox V8";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "VR200v - TP-LINK Archer VR200v";
#include "ar9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "WBMR - Buffalo WBMR-HP-G300H";
#include "vr9.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "WBMR300 - Buffalo WBMR-300HPD";
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
/ {
#address-cells = <1>;
/dts-v1/;
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "Akitio MyCloud mini";
power {
label = "power";
gpios = <&GPIOA 11 1>;
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&GPIOB 6 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
/dts-v1/;
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "Shuttle KD20";
power {
label = "power";
gpios = <&GPIOA 10 1>;
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&GPIOA 11 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
eject1 {
label = "eject1";
gpios = <&GPIOA 5 1>;
- linux,code = <161>;
+ linux,code = <KEY_EJECTCD>;
};
eject2 {
label = "eject2";
#include "ox820.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "MitraStar Technology Corp. STG-212";
reset {
label = "reset";
gpios = <&GPIOB 11 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
copy {
label = "copy";
gpios = <&GPIOB 13 1>;
- linux,code = <0x85>;
+ linux,code = <KEY_COPY>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "3G-6200N", "ralink,rt3050-soc";
model = "Edimax 3g-6200n";
reset {
label = "reset";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "wlanswitch";
gpios = <&gpio0 13 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "3G-6200NL", "ralink,rt3050-soc";
model = "Edimax 3g-6200nl";
reset {
label = "reset";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "3G150B", "ralink,rt5350-soc";
model = "Tenda 3G150B";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "3G300M", "ralink,rt3052-soc";
model = "Tenda 3G300M";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 10 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "A5-V11", "ralink,rt5350-soc";
model = "A5-V11";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AI-BR100", "ralink,mt7620a-soc";
model = "Aigale Ai-BR100";
reset {
label = "reset";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AIR3GII", "ralink,rt5350-soc";
model = "AirLive Air3GII";
wps {
label = "wps";
gpios = <&gpio0 7 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ALL0239-3G", "ralink,rt3052-soc";
model = "Allnet ALL0239-3G";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
connect {
label = "connect";
gpios = <&gpio0 7 1>;
- linux,code = <0xda>;
+ linux,code = <KEY_CONNECT>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ALL0256N", "ralink,rt3050-soc";
model = "Allnet ALL0256N";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ALL0256N", "ralink,rt3050-soc";
model = "Allnet ALL0256N";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AR670W", "ralink,rt2880-soc";
model = "Airlink101 AR670W";
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 9 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AR725W", "ralink,rt2880-soc";
model = "Airlink101 AR725W";
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 9 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ASL26555", "ralink,rt3050-soc";
model = "Alpha ASL26555";
reset {
label = "reset";
gpios = <&gpio0 10 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 12 0>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ASL26555", "ralink,rt3050-soc";
model = "Alpha ASL26555";
reset {
label = "reset";
gpios = <&gpio0 10 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 12 0>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ATP-52B", "ralink,rt3052-soc";
model = "Argus ATP-52B";
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AWAPN2403", "ralink,rt3052-soc";
model = "AsiaRF AWAPN2403";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "AWM002-4M.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "AsiaRF AWM002 EVB";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 20 1>;
- linux,code = <0x32>;
+ linux,code = <ABS_MT_WIDTH_MAJOR>;
};
};
};
#include "AWM002-8M.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
model = "AsiaRF AWM002 EVB";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 20 1>;
- linux,code = <0x32>;
+ linux,code = <ABS_MT_WIDTH_MAJOR>;
};
};
};
#include "AWM002-8M.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "AWM003", "ralink,rt5350-soc";
model = "AsiaRF AWM003 EVB";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 20 1>;
- linux,code = <0x32>;
+ linux,code = <ABS_MT_WIDTH_MAJOR>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "TP-Link Archer C20i";
rfkill {
label = "rfkill";
gpios = <&gpio0 2 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
reset_wps {
label = "reset_wps";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "BC2", "ralink,rt3052-soc";
model = "NexAira BC2";
reset {
label = "reset";
gpios = <&gpio0 17 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "BR-6425", "ralink,rt3052-soc";
model = "Edimax BR-6425";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "RFKILL switch";
gpios = <&gpio0 13 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "BR-6475ND", "ralink,rt3883-soc";
model = "Edimax BR-6475nD";
reset {
label = "reset";
gpios = <&gpio0 7 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "rfkill";
gpios = <&gpio0 9 1>;
- linux,input-type = <5>;
- linux,code = <0xf7>;
+ linux,input-type = <EV_SW>;
+ linux,code = <KEY_RFKILL>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "BROADWAY", "ralink,rt3052-soc";
model = "Hauppauge Broadway";
factory {
label = "Factory Reset button";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "cf-wr800n", "ralink,mt7620n-soc";
model = "Comfast CF-WR800N";
reset {
label = "reset";
gpios = <&gpio0 2 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex CS-QR10";
s1 {
label = "reset";
gpios = <&gpio1 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
s2 {
label = "wps";
gpios = <&gpio1 3 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "CY-SWR1100", "ralink,rt3883-soc";
model = "Samsung CY-SWR1100";
reset {
label = "reset";
gpios = <&gpio0 6 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 3 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "D105", "ralink,rt3050-soc";
model = "Huawei D105";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DAP-1350", "ralink,rt3052-soc";
model = "D-Link DAP-1350";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
rt {
label = "rt";
gpios = <&gpio0 11 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
ap {
label = "ap";
gpios = <&gpio0 7 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex DB-WRT01";
s1 {
label = "wps";
gpios = <&gpio0 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
model = "D-Link DCH-M225";
wps {
label = "wps";
gpios = <&gpio0 11 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
gpios = <&gpio1 2 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DCS-930", "ralink,rt3050-soc";
model = "D-Link DCS-930";
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DCS-930L-B1", "ralink,rt5350-soc";
model = "D-Link DCS-930L B1";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 20 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-300-B1", "ralink,rt3050-soc";
model = "D-Link DIR-300 B1";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-300-B7", "ralink,rt5350-soc";
model = "D-Link DIR-300 B7";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-320-B1", "ralink,rt5350-soc";
model = "D-Link DIR-320 B1";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-600-B1", "ralink,rt3050-soc";
model = "D-Link DIR-600 B1";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-600-B2", "ralink,rt3050-soc";
model = "D-Link DIR-600 B2";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-610-A1", "ralink,rt5350-soc";
model = "D-Link DIR-610 A1";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-615-D", "ralink,rt3050-soc";
model = "D-Link DIR-615 D";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3352.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-615-H1", "ralink,rt3352-soc";
model = "D-Link DIR-615 H1";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-620-A1", "ralink,rt3050-soc";
model = "D-Link DIR-620 A1";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3352.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-620-D1", "ralink,rt3352-soc";
model = "D-Link DIR-620 D1";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 7 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "DIR-645", "ralink,rt3883-soc";
model = "D-Link DIR-645";
reset {
label = "reset";
gpios = <&gpio0 9 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 14 0>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
model = "D-Link DIR-810L";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
wps {
label = "wps";
gpios = <&gpio0 2 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
model = "D-Link DIR-860L B1";
reset {
label = "reset";
gpios = <&gpio0 7 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 18 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7628an.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc";
model = "DuZun DM06";
reset {
label = "reset";
gpios = <&gpio1 14 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio1 6 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "linksys,e1700", "ralink,mt7620a-soc";
model = "Linksys E1700";
reset {
label = "reset";
gpios = <&gpio0 1 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 0>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ESR-9753", "ralink,rt3052-soc";
model = "Senao / EnGenius ESR-9753";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Netgear EX2700";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 9 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "F7C027", "ralink,rt5350-soc";
model = "Belkin F7C027";
top {
label = "restore";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
power {
label = "power";
gpios = <&gpio0 12 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
sensor {
label = "sensor";
gpios = <&gpio0 14 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Firefly FireWRT";
wps {
label = "wps";
gpios = <&gpio0 18 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
power {
label = "power";
gpios = <&gpio0 23 1>;
- linux,code = <116>;
+ linux,code = <KEY_POWER>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "FONERA20N", "ralink,rt3052-soc";
model = "La Fonera 2.0N";
reset {
label = "reset";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
switch {
label = "switch";
gpios = <&gpio0 13 1>;
- linux,code = <0xf7>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <KEY_RFKILL>;
+ linux,input-type = <EV_SW>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "GL-MT300A", "ralink,mt7620a-soc";
model = "GL-MT300A";
reset {
label = "reset";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
BTN_0 {
label = "BTN_0";
gpios = <&gpio0 1 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
BTN_1 {
label = "BTN_1";
gpios = <&gpio0 2 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "GL-MT300N", "ralink,mt7620a-soc";
model = "GL-MT300N";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
BTN_0 {
label = "BTN_0";
gpios = <&gpio2 2 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
BTN_1 {
label = "BTN_1";
gpios = <&gpio2 3 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "GL-MT750", "ralink,mt7620a-soc";
model = "GL-MT750";
reset {
label = "reset";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
BTN_0 {
label = "BTN_0";
gpios = <&gpio2 2 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
BTN_1 {
label = "BTN_1";
gpios = <&gpio2 3 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyS0,115200";
reset {
label = "reset";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HG255D", "ralink,rt3052-soc";
model = "HuaWei HG255D";
reset {
label = "reset";
gpios = <&gpio0 4 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
rfkill {
label = "rfkill";
gpios = <&gpio0 0 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HLKRM04", "ralink,rt5350-soc";
model = "HILINK HLK-RM04";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 14 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HPM", "ralink,rt3883-soc";
model = "Omnima HPM";
reset {
label = "reset";
gpios = <&gpio0 14 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HT-TM02", "ralink,rt5350-soc";
model = "HooToo HT-TM02";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
modeswitch {
label = "modeswitch";
gpios = <&gpio0 14 1>;
- linux,code = <0x100>;
- linux,input-type = <5>;
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "HW550-3G", "ralink,rt3052-soc";
model = "Aztech HW550-3G";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
connect {
label = "connect";
gpios = <&gpio0 7 1>;
- linux,code = <0xda>;
+ linux,code = <KEY_CONNECT>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "IP2202", "ralink,rt3052-soc";
model = "Poray IP2202";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "JHR-N805R", "ralink,rt3050-soc";
model = "JCG JHR-N805R";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "JHR-N825R", "ralink,rt3052-soc";
model = "JCG JHR-N825R";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "JHR-N926R", "ralink,rt3052-soc";
model = "JCG JHR-N926R";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wlan {
label = "wlan";
gpios = <&gpio0 1 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
};
};
#include "mt7628an.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,linkit", "mediatek,mt7628an-soc";
model = "MediaTek LinkIt Smart 7688";
wps {
label = "reset";
gpios = <&gpio1 6 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "M2M", "ralink,rt5350-soc";
model = "Intenso Memory 2 Move";
power {
label = "power";
gpios = <&gpio0 1 1>;
- linux,code = <0x116>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "M3", "ralink,rt5350-soc";
model = "Poray M3";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 17 1>;
- linux,code = <0x100>;
- linux,input-type = <5>;
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "M4", "ralink,rt5350-soc";
model = "Poray M4";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "M4", "ralink,rt5350-soc";
model = "Poray M4";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MINIEMBPLUG", "ralink,rt5350-soc";
model = "Omnima MiniEMBPlug";
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
mode-one {
label = "mode1";
gpios = <&gpio0 11 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
mode-two {
label = "mode2";
gpios = <&gpio0 12 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MINIEMBWIFI", "ralink,rt3052-soc";
model = "Omnima MiniEMBWiFi";
reset {
label = "reset";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
model = "Xiaomi MiWiFi Mini";
reset {
label = "reset";
gpios = <&gpio1 6 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mlw221", "ralink,mt7620n-soc";
model = "Kingston MLW221";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
system {
label = "system";
gpios = <&gpio0 2 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mlwg2", "ralink,mt7620n-soc";
model = "Kingston MLWG2";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
system {
label = "system";
gpios = <&gpio0 2 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MOFI3500-3GN", "ralink,rt3052-soc";
model = "MoFi Network MOFI3500-3GN";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
connect {
label = "connect";
gpios = <&gpio0 7 1>;
- linux,code = <0xda>;
+ linux,code = <KEY_CONNECT>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MPRA1", "ralink,rt5350-soc";
model = "HAME MPR-A1";
wps {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MPRA2", "ralink,rt5350-soc";
model = "HAME MPR-A2";
wps {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MR-102N", "ralink,rt3052-soc";
model = "AXIMCom MR-102N";
reset {
label = "reset";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 18 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
model = "Ralink MT7620a + MT7610e evaluation board";
s2 {
label = "S2";
gpios = <&gpio0 1 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
s3 {
label = "S3";
gpios = <&gpio0 2 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
model = "Ralink MT7620A evaluation board";
wps {
label = "wps";
gpios = <&gpio0 12 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
reset {
label = "reset";
gpios = <&gpio0 13 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
model = "Ralink MT7620a V22SG High Power evaluation board";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio0 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex MZK-750DHP";
s1 {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
s2 {
label = "wps";
gpios = <&gpio2 19 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MZK-DP150N", "ralink,rt5350-soc";
model = "Planex MZK-DP150N";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex MZK-EX300NP";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio1 3 0>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Planex MZK-EX750NP";
reset {
label = "reset";
gpios = <&gpio0 9 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 13 0>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "MZK-W300NH2", "ralink,rt3052-soc";
model = "Planex MZK-W300NH2";
wps {
label = "wps";
gpios = <&gpio0 12 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
rt {
label = "rt";
gpios = <&gpio0 13 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "microwrt", "ralink,mt7620a-soc";
model = "Microduino MicroWRT";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
model = "Sercomm NA930";
reset {
label = "reset";
gpios = <&gpio0 11 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
zwave {
label = "zwave";
gpios = <&gpio0 12 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
wps {
label = "wps";
gpios = <&gpio0 14 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "NBG-419N", "ralink,rt3052-soc";
model = "ZyXEL NBG-419N";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3352.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "NBG-419N2", "ralink,rt3352-soc";
model = "ZyXEL NBG-419N v2";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
rfkill {
label = "rfkill";
- linux,input-type = <5>;
+ linux,input-type = <EV_SW>;
gpios = <&gpio0 12 0>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "NW718", "ralink,rt3050-soc";
model = "Netcore NW718";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Newifi-D1";
reset {
label = "reset";
gpios = <&gpio0 15 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "OY-0001";
s1 {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7628an.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,pbr-d1", "mediatek,mt7628an-soc";
model = "PBR-D1";
wps {
label = "reset";
gpios = <&gpio1 38 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "PBR-M1";
reset {
label = "reset";
gpios = <&gpio0 18 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "PSG1208", "ralink,mt7620a-soc";
model = "Phicomm PSG1208";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "PSG1218", "ralink,mt7620a-soc";
model = "Phicomm PSG1218";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "PSR-680W", "ralink,rt3052-soc";
model = "Petatel PSR-680W Wireless 3G Router";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "PWH2004", "ralink,rt3052-soc";
model = "Prolink PWH2004";
wps {
label = "wps";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "PX-4885", "ralink,rt5350-soc";
model = "7Links PX-4885";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Linksys RE6500";
wps {
label = "wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 11 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "asus,rp-n53", "ralink,mt7620a-soc";
model = "Asus RP-N53";
touch {
label = "touch";
gpios = <&gpio1 0 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
wps {
label = "wps";
gpios = <&gpio1 1 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
reset {
label = "reset";
gpios = <&gpio1 2 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
audio {
label = "audio";
gpios = <&gpio1 3 0>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RT-G32-B1", "ralink,rt3050-soc";
model = "Asus RT-G32 B1";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RT-N10-PLUS", "ralink,rt3050-soc";
model = "Asus RT-N10+";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RT-N13U", "ralink,rt3052-soc";
model = "Asus RT-N13U";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
model = "Asus RT-N14U";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
wps {
label = "wps";
gpios = <&gpio0 0 0>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 12 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RT-N56U", "ralink,rt3883-soc";
model = "Asus RT-N56U";
reset {
label = "reset";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio1 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "RUT5XX", "ralink,rt3050-soc";
model = "Teltonika RUT5XX";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "STORYLiNK SAP-G3200U3";
reset {
label = "reset";
gpios = <&gpio0 16 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "rfkill";
gpios = <&gpio0 14 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "SamKnows Whitebox 8";
wps {
label = "wps";
gpios = <&gpio1 11 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio1 9 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "SL-R7205", "ralink,rt3052-soc";
model = "Skyline SL-R7205 Wireless 3G Router";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "TEW-691GR", "ralink,rt3883-soc";
model = "TRENDnet TEW-691GR";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio1 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
rfkill {
label = "rfkill";
gpios = <&gpio0 0 1>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
};
#include "rt3883.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "TEW-692GR", "ralink,rt3883-soc";
model = "TRENDnet TEW-692GR";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio1 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "TEW-714TRU", "ralink,rt5350-soc";
model = "TRENDnet TEW714TRU";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "TINY-AC", "ralink,mt7620a-soc";
model = "Dovado Tiny AC";
reset {
label = "reset";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Thunder Timecloud";
reset {
label = "reset";
gpios = <&gpio0 13 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
BTN_0 {
label = "BTN_0";
gpios = <&gpio0 4 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "UR-326N4G", "ralink,rt3052-soc";
model = "UPVEL UR-326N4G";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <0x32>;
+ linux,code = <ABS_MT_WIDTH_MAJOR>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "UR-336UN", "ralink,rt3052-soc";
model = "UPVEL UR-336UN";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <0x32>;
+ linux,code = <ABS_MT_WIDTH_MAJOR>;
};
};
};
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "V11ST-FE", "ralink,rt2880-soc";
model = "Ralink V11ST-FE";
wps {
label = "wps";
gpios = <&gpio0 0 0>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "V22RW-2X2", "ralink,rt3052-soc";
model = "Ralink AP-RT3052-V22RW-2X2";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
model = "Planex VR500";
reset {
label = "reset";
gpios = <&gpio1 15 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "W150M", "ralink,rt3050-soc";
model = "Tenda W150M";
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 10 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "W306R_V20", "ralink,rt3052-soc";
model = "Tenda W306R V2.0";
reset {
label = "RESET/WPS";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "W502U", "ralink,rt3052-soc";
model = "ALFA Networks W502U";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WCR150GN", "ralink,rt3050-soc";
model = "Sparklan WCR-150GN";
wps {
label = "wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "NETIS WF-2881";
reset {
label = "reset";
gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Buffalo WHR-1166D";
reset {
label = "reset";
gpios = <&gpio2 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio2 13 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
ap {
label = "ap";
gpios = <&gpio2 14 1>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
bridge {
label = "bridge";
gpios = <&gpio2 15 1>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Buffalo WHR-300HP2";
reset {
label = "reset";
gpios = <&gpio2 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio2 13 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
ap {
label = "ap";
gpios = <&gpio2 14 1>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
bridge {
label = "bridge";
gpios = <&gpio2 15 1>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7620a-soc";
model = "Buffalo WHR-600D";
reset {
label = "reset";
gpios = <&gpio2 12 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio2 13 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
ap {
label = "ap";
gpios = <&gpio2 14 1>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
bridge {
label = "bridge";
gpios = <&gpio2 15 1>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WHR-G300N", "ralink,rt3052-soc";
model = "Buffalo WHR-G300N";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
router-off {
label = "router-off";
gpios = <&gpio0 11 1>;
- linux,code = <0x102>;
+ linux,code = <BTN_2>;
};
router-on {
label = "router-on";
gpios = <&gpio0 8 1>;
- linux,code = <0x103>;
+ linux,code = <BTN_3>;
};
};
};
#include "mt7628an.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,widora-neo", "mediatek,mt7628an-soc";
model = "Widora-NEO";
wps {
label = "reset";
gpios = <&gpio1 6 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "MQmaker WiTi";
reset {
label = "reset";
gpios = <&gpio0 18 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "wizfi630a", "ralink,rt5350-soc";
model = "WIZnet WizFi630A";
reset {
label = "reset";
gpios = <&gpio0 17 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
scm1 {
label = "SCM1";
gpios = <&gpio0 19 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
scm2 {
label = "SCM2";
gpios = <&gpio0 2 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WL-330N", "ralink,rt3050-soc";
model = "Asus WL-330N";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WL-330N3G", "ralink,rt3050-soc";
model = "Asus WL-330N3G";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WL-341V3", "ralink,rt3052-soc";
model = "Sitecom WL-341 v3";
reset {
label = "reset";
gpios = <&gpio0 7 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 5 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WL-351", "ralink,rt3052-soc";
model = "Sitecom WL-351 v1 002";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
bandwidth {
label = "bandwidth";
gpios = <&gpio0 8 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
reset {
label = "reset";
gpios = <&gpio0 9 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
model = "Buffalo WMR-300";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio0 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WNCE2001", "ralink,rt3052-soc";
model = "Netgear WNCE2001";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
rt {
label = "rt";
gpios = <&gpio0 11 1>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
ap {
label = "ap";
gpios = <&gpio0 7 1>;
- linux,code = <0x101>;
+ linux,code = <BTN_1>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board","ralink,mt7621-soc";
model = "Netgear WNDR3700v5";
wps {
label = "wndr3700v5:wps";
gpios = <&gpio0 7 0>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
wifi {
label = "wndr3700v5:wifi";
gpios = <&gpio0 8 0>;
- linux,code = <0xf7>;
+ linux,code = <KEY_RFKILL>;
};
reset {
label = "wndr3700v5:reset";
gpios = <&gpio0 14 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WR512-3GN", "ralink,rt3052-soc";
model = "WR512-3GN-like router";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <0x32>;
+ linux,code = <ABS_MT_WIDTH_MAJOR>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WR512-3GN", "ralink,rt3052-soc";
model = "WR512-3GN-like router";
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <0x32>;
+ linux,code = <ABS_MT_WIDTH_MAJOR>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "WR6202", "ralink,rt3052-soc";
model = "AWB WR6202";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
model = "ELECOM WRH-300CR";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 2 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
};
};
#include "mt7628an.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyS0,115200";
reset {
label = "reset";
gpios = <&gpio0 5 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
model = "Buffalo WSR-1166DHP";
power {
label = "power";
gpios = <&gpio0 18 1>;
- linux,code = <0x74>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&gpio0 3 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio0 6 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
auto {
label = "mode";
gpios = <&gpio0 7 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
ap {
label = "ap";
gpios = <&gpio0 10 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
router {
label = "router";
gpios = <&gpio0 12 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
model = "Buffalo WSR-600DHP";
power {
label = "power";
gpios = <&gpio0 8 1>;
- linux,code = <0x74>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&gpio0 11 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio0 18 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
auto {
label = "mode";
gpios = <&gpio0 7 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
ap {
label = "ap";
gpios = <&gpio0 6 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
router {
label = "router";
gpios = <&gpio0 10 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "wt3020", "ralink,mt7620n-soc";
model = "Nexx WT3020";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "wt3020", "ralink,mt7620n-soc";
model = "Nexx WT3020";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt2880.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
wps {
label = "wps";
gpios = <&gpio0 0 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
router {
label = "router_switch";
gpios = <&gpio0 7 0>;
- linux,code = <0x100>;
+ linux,code = <BTN_0>;
};
reset {
label = "reset";
gpios = <&gpio0 9 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "X5", "ralink,rt5350-soc";
model = "Poray X5";
bat {
label = "bat";
gpios = <&gpio0 9 1>;
- linux,code = <0x211>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
mode {
label = "mode";
gpios = <&gpio0 14 1>;
- linux,code = <0x100>;
- linux,input-type = <5>;
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
};
#include "rt5350.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "X8", "ralink,rt5350-soc";
model = "Poray X8";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "XDXRN502J", "ralink,rt3052-soc";
model = "XDX RN502J";
reset {
label = "reset";
gpios = <&gpio0 10 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
chosen {
bootargs = "console=ttyS0,115200";
reset {
label = "reset";
gpios = <&gpio0 11 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "YOUKU-YK1", "ralink,mt7620a-soc";
model = "YOUKU YK1";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
model = "ZBT-APE522II";
reset {
label = "reset";
gpios = <&gpio0 2 0>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "zbtlink,zbt-cpe102", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-CPE102";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-WA05";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
model = "ZBT-WE826";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "ZBT-WG2626";
reset {
label = "reset";
gpios = <&gpio0 18 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7621.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "ZBT-WG3526";
reset {
label = "reset";
gpios = <&gpio0 18 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
#include "mt7620n.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "zbtlink,zbt-wr8305rt", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-WR8305RT";
reset {
label = "reset";
gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};
#include "mt7620a.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "ZTE-Q7", "ralink,mt7620a-soc";
model = "ZTE Q7";
reset {
label = "reset";
gpios = <&gpio1 2 1>;
- linux,code = <0x198>;
+ linux,code = <KEY_RESTART>;
};
};
};