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@kresin.me>
This commit is contained in:
Mathias Kresin 2016-11-11 22:43:08 +01:00
parent 77b807999d
commit 2b55c83e68
211 changed files with 757 additions and 349 deletions

View file

@ -43,7 +43,7 @@
phone { phone {
label = "phone"; label = "phone";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 1>;
linux,code = <169>; linux,code = <KEY_PHONE>;
}; };
reset { reset {
label = "reset"; label = "reset";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV4510PW - Wippies, Elisa"; model = "ARV4510PW - Wippies, Elisa";

View file

@ -1,5 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
chosen { chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G"; model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV4520PW - Easybox 800, WAV-281"; model = "ARV4520PW - Easybox 800, WAV-281";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV4525PW - Speedport W501V Typ A"; model = "ARV4525PW - Speedport W501V Typ A";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV452CQW - Arcor 801"; model = "ARV452CQW - Arcor 801";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV7506PW11 - Alice/O2 IAD 4421"; model = "ARV7506PW11 - Alice/O2 IAD 4421";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV7510PW22 - Astoria Networks"; model = "ARV7510PW22 - Astoria Networks";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV7518PW - Astoria Networks"; model = "ARV7518PW - Astoria Networks";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV7519PW - Astoria Networks"; model = "ARV7519PW - Astoria Networks";

View file

@ -2,6 +2,8 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV7519RW22 - Orange Livebox 2.1"; model = "ARV7519RW22 - Orange Livebox 2.1";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV7525PW - Speedport W303V Typ A"; model = "ARV7525PW - Speedport W303V Typ A";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV752DPW - Arcor 802"; model = "ARV752DPW - Arcor 802";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV752DPW22 - Arcor 803"; model = "ARV752DPW22 - Arcor 803";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "ARV8539PW22 - Speedport W 504V Typ A"; model = "ARV8539PW22 - Speedport W 504V Typ A";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #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 */ model = "BTHOMEHUBV2B - BT Home Hub 2B"; /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */

View file

@ -2,6 +2,8 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */ model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */

View file

@ -2,6 +2,8 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "BTHOMEHUBV5A - BT Home Hub 5A"; model = "BTHOMEHUBV5A - BT Home Hub 5A";

View file

@ -2,6 +2,8 @@
#include "amazonse.dtsi" #include "amazonse.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "DGN1000B - Netgear DGN1000B"; model = "DGN1000B - Netgear DGN1000B";

View file

@ -1,5 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
chosen { chosen {
bootargs = "root= console=ttyLTQ0,115200"; bootargs = "root= console=ttyLTQ0,115200";

View file

@ -1,5 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
chosen { chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";

View file

@ -2,6 +2,8 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "FRITZ3370 - Fritz!Box WLAN 3370"; model = "FRITZ3370 - Fritz!Box WLAN 3370";

View file

@ -2,6 +2,8 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "FRITZ7320 - 1&1 HomeServer"; model = "FRITZ7320 - 1&1 HomeServer";

View file

@ -2,6 +2,8 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "FRITZ7360SL - 1&1 HomeServer"; model = "FRITZ7360SL - 1&1 HomeServer";

View file

@ -2,6 +2,8 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "GIGASX76X - Gigaset SX761,SX762,SX763"; model = "GIGASX76X - Gigaset SX761,SX762,SX763";

View file

@ -2,6 +2,8 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "H201L - ZTE H210L"; model = "H201L - ZTE H210L";

View file

@ -2,6 +2,8 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "P2601HNFX - ZyXEL P-2601HN-Fx"; model = "P2601HNFX - ZyXEL P-2601HN-Fx";

View file

@ -1,5 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
chosen { chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";

View file

@ -1,5 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
chosen { chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";

View file

@ -2,6 +2,8 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "VG3503J - BT OpenReach VDSL Modem"; model = "VG3503J - BT OpenReach VDSL Modem";

View file

@ -1,5 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "VGV7510KW22 - o2 Box 6431"; model = "VGV7510KW22 - o2 Box 6431";

View file

@ -1,5 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "VGV7519 - KPN Experiabox V8"; model = "VGV7519 - KPN Experiabox V8";

View file

@ -2,6 +2,8 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "VR200v - TP-LINK Archer VR200v"; model = "VR200v - TP-LINK Archer VR200v";

View file

@ -2,6 +2,8 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "WBMR - Buffalo WBMR-HP-G300H"; model = "WBMR - Buffalo WBMR-HP-G300H";

View file

@ -2,6 +2,8 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "WBMR300 - Buffalo WBMR-300HPD"; model = "WBMR300 - Buffalo WBMR-300HPD";

View file

@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ { / {
#address-cells = <1>; #address-cells = <1>;

View file

@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ { / {
#address-cells = <1>; #address-cells = <1>;

View file

@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ { / {
#address-cells = <1>; #address-cells = <1>;

View file

@ -1,5 +1,4 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ { / {
#address-cells = <1>; #address-cells = <1>;

View file

@ -9,6 +9,8 @@
/dts-v1/; /dts-v1/;
#include "ox820.dtsi" #include "ox820.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "Akitio MyCloud mini"; model = "Akitio MyCloud mini";
@ -75,12 +77,12 @@
power { power {
label = "power"; label = "power";
gpios = <&GPIOA 11 1>; gpios = <&GPIOA 11 1>;
linux,code = <116>; linux,code = <KEY_POWER>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&GPIOB 6 1>; gpios = <&GPIOB 6 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };

View file

@ -9,6 +9,8 @@
/dts-v1/; /dts-v1/;
#include "ox820.dtsi" #include "ox820.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "Shuttle KD20"; model = "Shuttle KD20";
@ -91,17 +93,17 @@
power { power {
label = "power"; label = "power";
gpios = <&GPIOA 10 1>; gpios = <&GPIOA 10 1>;
linux,code = <116>; linux,code = <KEY_POWER>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&GPIOA 11 1>; gpios = <&GPIOA 11 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
eject1 { eject1 {
label = "eject1"; label = "eject1";
gpios = <&GPIOA 5 1>; gpios = <&GPIOA 5 1>;
linux,code = <161>; linux,code = <KEY_EJECTCD>;
}; };
eject2 { eject2 {
label = "eject2"; label = "eject2";

View file

@ -10,6 +10,8 @@
#include "ox820.dtsi" #include "ox820.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "MitraStar Technology Corp. STG-212"; model = "MitraStar Technology Corp. STG-212";
@ -57,12 +59,12 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&GPIOB 11 1>; gpios = <&GPIOB 11 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
copy { copy {
label = "copy"; label = "copy";
gpios = <&GPIOB 13 1>; gpios = <&GPIOB 13 1>;
linux,code = <0x85>; linux,code = <KEY_COPY>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "3G-6200N", "ralink,rt3050-soc"; compatible = "3G-6200N", "ralink,rt3050-soc";
model = "Edimax 3g-6200n"; model = "Edimax 3g-6200n";
@ -72,13 +74,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
rfkill { rfkill {
label = "wlanswitch"; label = "wlanswitch";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 1>;
linux,code = <0xf7>; linux,code = <KEY_RFKILL>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "3G-6200NL", "ralink,rt3050-soc"; compatible = "3G-6200NL", "ralink,rt3050-soc";
model = "Edimax 3g-6200nl"; model = "Edimax 3g-6200nl";
@ -67,7 +69,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "3G150B", "ralink,rt5350-soc"; compatible = "3G150B", "ralink,rt5350-soc";
model = "Tenda 3G150B"; model = "Tenda 3G150B";
@ -29,7 +31,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "3G300M", "ralink,rt3052-soc"; compatible = "3G300M", "ralink,rt3052-soc";
model = "Tenda 3G300M"; model = "Tenda 3G300M";
@ -49,13 +51,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "A5-V11", "ralink,rt5350-soc"; compatible = "A5-V11", "ralink,rt5350-soc";
model = "A5-V11"; model = "A5-V11";
@ -29,7 +31,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "AI-BR100", "ralink,mt7620a-soc"; compatible = "AI-BR100", "ralink,mt7620a-soc";
model = "Aigale Ai-BR100"; model = "Aigale Ai-BR100";
@ -29,7 +31,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "AIR3GII", "ralink,rt5350-soc"; compatible = "AIR3GII", "ralink,rt5350-soc";
model = "AirLive Air3GII"; model = "AirLive Air3GII";
@ -29,7 +31,7 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ALL0239-3G", "ralink,rt3052-soc"; compatible = "ALL0239-3G", "ralink,rt3052-soc";
model = "Allnet ALL0239-3G"; model = "Allnet ALL0239-3G";
@ -72,19 +74,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
connect { connect {
label = "connect"; label = "connect";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <0xda>; linux,code = <KEY_CONNECT>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ALL0256N", "ralink,rt3050-soc"; compatible = "ALL0256N", "ralink,rt3050-soc";
model = "Allnet ALL0256N"; model = "Allnet ALL0256N";
@ -34,7 +36,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ALL0256N", "ralink,rt3050-soc"; compatible = "ALL0256N", "ralink,rt3050-soc";
model = "Allnet ALL0256N"; model = "Allnet ALL0256N";
@ -34,7 +36,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt2880.dtsi" #include "rt2880.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "AR670W", "ralink,rt2880-soc"; compatible = "AR670W", "ralink,rt2880-soc";
model = "Airlink101 AR670W"; model = "Airlink101 AR670W";
@ -54,13 +56,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt2880.dtsi" #include "rt2880.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "AR725W", "ralink,rt2880-soc"; compatible = "AR725W", "ralink,rt2880-soc";
model = "Airlink101 AR725W"; model = "Airlink101 AR725W";
@ -64,13 +66,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ASL26555", "ralink,rt3050-soc"; compatible = "ASL26555", "ralink,rt3050-soc";
model = "Alpha ASL26555"; model = "Alpha ASL26555";
@ -15,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 0>; gpios = <&gpio0 10 0>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 0>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ASL26555", "ralink,rt3050-soc"; compatible = "ASL26555", "ralink,rt3050-soc";
model = "Alpha ASL26555"; model = "Alpha ASL26555";
@ -15,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 0>; gpios = <&gpio0 10 0>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 0>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ATP-52B", "ralink,rt3052-soc"; compatible = "ATP-52B", "ralink,rt3052-soc";
model = "Argus ATP-52B"; model = "Argus ATP-52B";
@ -59,13 +61,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "AWAPN2403", "ralink,rt3052-soc"; compatible = "AWAPN2403", "ralink,rt3052-soc";
model = "AsiaRF AWAPN2403"; model = "AsiaRF AWAPN2403";
@ -24,7 +26,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "AWM002-4M.dtsi" #include "AWM002-4M.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "AsiaRF AWM002 EVB"; model = "AsiaRF AWM002 EVB";
@ -33,13 +35,13 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 1>;
linux,code = <0x32>; linux,code = <ABS_MT_WIDTH_MAJOR>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "AWM002-8M.dtsi" #include "AWM002-8M.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
model = "AsiaRF AWM002 EVB"; model = "AsiaRF AWM002 EVB";
@ -33,13 +35,13 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 1>;
linux,code = <0x32>; linux,code = <ABS_MT_WIDTH_MAJOR>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "AWM002-8M.dtsi" #include "AWM002-8M.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "AWM003", "ralink,rt5350-soc"; compatible = "AWM003", "ralink,rt5350-soc";
model = "AsiaRF AWM003 EVB"; model = "AsiaRF AWM003 EVB";
@ -39,13 +41,13 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 1>;
linux,code = <0x32>; linux,code = <ABS_MT_WIDTH_MAJOR>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "ralink,mt7620a-soc";
model = "TP-Link Archer C20i"; model = "TP-Link Archer C20i";
@ -41,12 +43,12 @@
rfkill { rfkill {
label = "rfkill"; label = "rfkill";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 1>;
linux,code = <0xf7>; linux,code = <KEY_RFKILL>;
}; };
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "BC2", "ralink,rt3052-soc"; compatible = "BC2", "ralink,rt3052-soc";
model = "NexAira BC2"; model = "NexAira BC2";
@ -56,7 +58,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "BR-6425", "ralink,rt3052-soc"; compatible = "BR-6425", "ralink,rt3052-soc";
model = "Edimax BR-6425"; model = "Edimax BR-6425";
@ -38,13 +40,13 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
rfkill { rfkill {
label = "RFKILL switch"; label = "RFKILL switch";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 1>;
linux,code = <0xf7>; linux,code = <KEY_RFKILL>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3883.dtsi" #include "rt3883.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "BR-6475ND", "ralink,rt3883-soc"; compatible = "BR-6475ND", "ralink,rt3883-soc";
model = "Edimax BR-6475nD"; model = "Edimax BR-6475nD";
@ -15,14 +17,14 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
rfkill { rfkill {
label = "rfkill"; label = "rfkill";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 1>;
linux,input-type = <5>; linux,input-type = <EV_SW>;
linux,code = <0xf7>; linux,code = <KEY_RFKILL>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "BROADWAY", "ralink,rt3052-soc"; compatible = "BROADWAY", "ralink,rt3052-soc";
model = "Hauppauge Broadway"; model = "Hauppauge Broadway";
@ -61,7 +63,7 @@
factory { factory {
label = "Factory Reset button"; label = "Factory Reset button";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620n.dtsi" #include "mt7620n.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "cf-wr800n", "ralink,mt7620n-soc"; compatible = "cf-wr800n", "ralink,mt7620n-soc";
model = "Comfast CF-WR800N"; model = "Comfast CF-WR800N";
@ -38,7 +40,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "ralink,mt7620a-soc";
model = "Planex CS-QR10"; model = "Planex CS-QR10";
@ -35,13 +37,13 @@
s1 { s1 {
label = "reset"; label = "reset";
gpios = <&gpio1 1 1>; gpios = <&gpio1 1 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
s2 { s2 {
label = "wps"; label = "wps";
gpios = <&gpio1 3 1>; gpios = <&gpio1 3 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3883.dtsi" #include "rt3883.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "CY-SWR1100", "ralink,rt3883-soc"; compatible = "CY-SWR1100", "ralink,rt3883-soc";
model = "Samsung CY-SWR1100"; model = "Samsung CY-SWR1100";
@ -64,13 +66,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 6 1>; gpios = <&gpio0 6 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 3 1>; gpios = <&gpio0 3 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "D105", "ralink,rt3050-soc"; compatible = "D105", "ralink,rt3050-soc";
model = "Huawei D105"; model = "Huawei D105";
@ -61,7 +63,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DAP-1350", "ralink,rt3052-soc"; compatible = "DAP-1350", "ralink,rt3052-soc";
model = "D-Link DAP-1350"; model = "D-Link DAP-1350";
@ -76,25 +78,25 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
rt { rt {
label = "rt"; label = "rt";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
ap { ap {
label = "ap"; label = "ap";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <0x101>; linux,code = <BTN_1>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "ralink,mt7620a-soc";
model = "Planex DB-WRT01"; model = "Planex DB-WRT01";
@ -24,7 +26,7 @@
s1 { s1 {
label = "wps"; label = "wps";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
model = "D-Link DCH-M225"; model = "D-Link DCH-M225";
@ -15,13 +17,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 1>;
linux,code = <0xf7>; linux,code = <KEY_RFKILL>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio1 2 1>; gpios = <&gpio1 2 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DCS-930", "ralink,rt3050-soc"; compatible = "DCS-930", "ralink,rt3050-soc";
model = "D-Link DCS-930"; model = "D-Link DCS-930";
@ -76,13 +78,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x101>; linux,code = <BTN_1>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DCS-930L-B1", "ralink,rt5350-soc"; compatible = "DCS-930L-B1", "ralink,rt5350-soc";
model = "D-Link DCS-930L B1"; model = "D-Link DCS-930L B1";
@ -29,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-300-B1", "ralink,rt3050-soc"; compatible = "DIR-300-B1", "ralink,rt3050-soc";
model = "D-Link DIR-300 B1"; model = "D-Link DIR-300 B1";
@ -47,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-300-B7", "ralink,rt5350-soc"; compatible = "DIR-300-B7", "ralink,rt5350-soc";
model = "D-Link DIR-300 B7"; model = "D-Link DIR-300 B7";
@ -29,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-320-B1", "ralink,rt5350-soc"; compatible = "DIR-320-B1", "ralink,rt5350-soc";
model = "D-Link DIR-320 B1"; model = "D-Link DIR-320 B1";
@ -34,13 +36,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-600-B1", "ralink,rt3050-soc"; compatible = "DIR-600-B1", "ralink,rt3050-soc";
model = "D-Link DIR-600 B1"; model = "D-Link DIR-600 B1";
@ -47,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-600-B2", "ralink,rt3050-soc"; compatible = "DIR-600-B2", "ralink,rt3050-soc";
model = "D-Link DIR-600 B2"; model = "D-Link DIR-600 B2";
@ -47,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-610-A1", "ralink,rt5350-soc"; compatible = "DIR-610-A1", "ralink,rt5350-soc";
model = "D-Link DIR-610 A1"; model = "D-Link DIR-610 A1";
@ -29,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-615-D", "ralink,rt3050-soc"; compatible = "DIR-615-D", "ralink,rt3050-soc";
model = "D-Link DIR-615 D"; model = "D-Link DIR-615 D";
@ -47,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3352.dtsi" #include "rt3352.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-615-H1", "ralink,rt3352-soc"; compatible = "DIR-615-H1", "ralink,rt3352-soc";
model = "D-Link DIR-615 H1"; model = "D-Link DIR-615 H1";
@ -44,13 +46,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-620-A1", "ralink,rt3050-soc"; compatible = "DIR-620-A1", "ralink,rt3050-soc";
model = "D-Link DIR-620 A1"; model = "D-Link DIR-620 A1";
@ -47,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3352.dtsi" #include "rt3352.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-620-D1", "ralink,rt3352-soc"; compatible = "DIR-620-D1", "ralink,rt3352-soc";
model = "D-Link DIR-620 D1"; model = "D-Link DIR-620 D1";
@ -29,7 +31,7 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3883.dtsi" #include "rt3883.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "DIR-645", "ralink,rt3883-soc"; compatible = "DIR-645", "ralink,rt3883-soc";
model = "D-Link DIR-645"; model = "D-Link DIR-645";
@ -22,13 +24,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 9 0>; gpios = <&gpio0 9 0>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 14 0>; gpios = <&gpio0 14 0>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
model = "D-Link DIR-810L"; model = "D-Link DIR-810L";
@ -15,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7621.dtsi" #include "mt7621.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc"; compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
model = "D-Link DIR-860L B1"; model = "D-Link DIR-860L B1";
@ -48,13 +50,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7628an.dtsi" #include "mt7628an.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc"; compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc";
model = "DuZun DM06"; model = "DuZun DM06";
@ -20,13 +22,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio1 6 1>; gpios = <&gpio1 6 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -12,6 +12,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "linksys,e1700", "ralink,mt7620a-soc"; compatible = "linksys,e1700", "ralink,mt7620a-soc";
model = "Linksys E1700"; model = "Linksys E1700";
@ -25,13 +27,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 0>; gpios = <&gpio0 1 0>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 2 0>; gpios = <&gpio0 2 0>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ESR-9753", "ralink,rt3052-soc"; compatible = "ESR-9753", "ralink,rt3052-soc";
model = "Senao / EnGenius ESR-9753"; model = "Senao / EnGenius ESR-9753";
@ -61,13 +63,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -12,6 +12,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "ralink,mt7620a-soc";
model = "Netgear EX2700"; model = "Netgear EX2700";
@ -69,13 +71,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt2880.dtsi" #include "rt2880.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
@ -55,13 +57,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "F7C027", "ralink,rt5350-soc"; compatible = "F7C027", "ralink,rt5350-soc";
model = "Belkin F7C027"; model = "Belkin F7C027";
@ -39,19 +41,19 @@
top { top {
label = "restore"; label = "restore";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
power { power {
label = "power"; label = "power";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
linux,code = <0xf7>; linux,code = <KEY_RFKILL>;
}; };
sensor { sensor {
label = "sensor"; label = "sensor";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7621.dtsi" #include "mt7621.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
model = "Firefly FireWRT"; model = "Firefly FireWRT";
@ -33,13 +35,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 1>;
linux,code = <0x211>; linux,code = <KEY_WPS_BUTTON>;
}; };
power { power {
label = "power"; label = "power";
gpios = <&gpio0 23 1>; gpios = <&gpio0 23 1>;
linux,code = <116>; linux,code = <KEY_POWER>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "FONERA20N", "ralink,rt3052-soc"; compatible = "FONERA20N", "ralink,rt3052-soc";
model = "La Fonera 2.0N"; model = "La Fonera 2.0N";
@ -66,14 +68,14 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
switch { switch {
label = "switch"; label = "switch";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 1>;
linux,code = <0xf7>; linux,code = <KEY_RFKILL>;
linux,input-type = <5>; /* EV_SW */ linux,input-type = <EV_SW>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "GL-MT300A", "ralink,mt7620a-soc"; compatible = "GL-MT300A", "ralink,mt7620a-soc";
model = "GL-MT300A"; model = "GL-MT300A";
@ -43,19 +45,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
BTN_0 { BTN_0 {
label = "BTN_0"; label = "BTN_0";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 1>;
linux,code = <0x101>; linux,code = <BTN_1>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "GL-MT300N", "ralink,mt7620a-soc"; compatible = "GL-MT300N", "ralink,mt7620a-soc";
model = "GL-MT300N"; model = "GL-MT300N";
@ -38,19 +40,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
BTN_0 { BTN_0 {
label = "BTN_0"; label = "BTN_0";
gpios = <&gpio2 2 1>; gpios = <&gpio2 2 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio2 3 1>; gpios = <&gpio2 3 1>;
linux,code = <0x101>; linux,code = <BTN_1>;
}; };
}; };
}; };

View file

@ -2,6 +2,8 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
/ { / {
compatible = "GL-MT750", "ralink,mt7620a-soc"; compatible = "GL-MT750", "ralink,mt7620a-soc";
model = "GL-MT750"; model = "GL-MT750";
@ -38,19 +40,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 1>;
linux,code = <0x198>; linux,code = <KEY_RESTART>;
}; };
BTN_0 { BTN_0 {
label = "BTN_0"; label = "BTN_0";
gpios = <&gpio2 2 1>; gpios = <&gpio2 2 1>;
linux,code = <0x100>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio2 3 1>; gpios = <&gpio2 3 1>;
linux,code = <0x101>; linux,code = <BTN_1>;
}; };
}; };
}; };

Some files were not shown because too many files have changed in this diff Show more