From: Mathias Kresin Date: Fri, 11 Nov 2016 21:43:08 +0000 (+0100) Subject: treewide: dts: use keycode defines from input dt-binding X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2b55c83e68068887db9e49de8e81b1b4a267a4f2;p=openwrt%2Fstaging%2Frmilecki.git 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 --- diff --git a/target/linux/brcm63xx/dts/homehub2a.dts b/target/linux/brcm63xx/dts/homehub2a.dts index af5136c8824..b86a48fe40d 100644 --- a/target/linux/brcm63xx/dts/homehub2a.dts +++ b/target/linux/brcm63xx/dts/homehub2a.dts @@ -43,7 +43,7 @@ phone { label = "phone"; gpios = <&gpio0 1 1>; - linux,code = <169>; + linux,code = ; }; reset { label = "reset"; diff --git a/target/linux/lantiq/dts/ARV4510PW.dts b/target/linux/lantiq/dts/ARV4510PW.dts index 6f07c5f996e..c34ffe81d94 100644 --- a/target/linux/lantiq/dts/ARV4510PW.dts +++ b/target/linux/lantiq/dts/ARV4510PW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV4510PW - Wippies, Elisa"; diff --git a/target/linux/lantiq/dts/ARV4518PWR01.dtsi b/target/linux/lantiq/dts/ARV4518PWR01.dtsi index 49b7e50eb61..84c3c4aff56 100644 --- a/target/linux/lantiq/dts/ARV4518PWR01.dtsi +++ b/target/linux/lantiq/dts/ARV4518PWR01.dtsi @@ -1,5 +1,7 @@ #include "danube.dtsi" +#include + / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; diff --git a/target/linux/lantiq/dts/ARV4519PW.dts b/target/linux/lantiq/dts/ARV4519PW.dts index 43334f18d7b..77d466d8260 100644 --- a/target/linux/lantiq/dts/ARV4519PW.dts +++ b/target/linux/lantiq/dts/ARV4519PW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G"; diff --git a/target/linux/lantiq/dts/ARV4520PW.dts b/target/linux/lantiq/dts/ARV4520PW.dts index 17288b35273..0466968e6f3 100644 --- a/target/linux/lantiq/dts/ARV4520PW.dts +++ b/target/linux/lantiq/dts/ARV4520PW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV4520PW - Easybox 800, WAV-281"; diff --git a/target/linux/lantiq/dts/ARV4525PW.dts b/target/linux/lantiq/dts/ARV4525PW.dts index 69fd1aa29d0..605df428ef1 100644 --- a/target/linux/lantiq/dts/ARV4525PW.dts +++ b/target/linux/lantiq/dts/ARV4525PW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV4525PW - Speedport W501V Typ A"; diff --git a/target/linux/lantiq/dts/ARV452CQW.dts b/target/linux/lantiq/dts/ARV452CQW.dts index 4710a014868..7d0f981561e 100644 --- a/target/linux/lantiq/dts/ARV452CQW.dts +++ b/target/linux/lantiq/dts/ARV452CQW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV452CQW - Arcor 801"; diff --git a/target/linux/lantiq/dts/ARV7506PW11.dts b/target/linux/lantiq/dts/ARV7506PW11.dts index 5c8b0fe3a37..ef3ff306a94 100644 --- a/target/linux/lantiq/dts/ARV7506PW11.dts +++ b/target/linux/lantiq/dts/ARV7506PW11.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV7506PW11 - Alice/O2 IAD 4421"; diff --git a/target/linux/lantiq/dts/ARV7510PW22.dts b/target/linux/lantiq/dts/ARV7510PW22.dts index 079c8563082..3c2b0a74575 100644 --- a/target/linux/lantiq/dts/ARV7510PW22.dts +++ b/target/linux/lantiq/dts/ARV7510PW22.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV7510PW22 - Astoria Networks"; diff --git a/target/linux/lantiq/dts/ARV7518PW.dts b/target/linux/lantiq/dts/ARV7518PW.dts index d44927b813e..8a6b620eb71 100644 --- a/target/linux/lantiq/dts/ARV7518PW.dts +++ b/target/linux/lantiq/dts/ARV7518PW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV7518PW - Astoria Networks"; diff --git a/target/linux/lantiq/dts/ARV7519PW.dts b/target/linux/lantiq/dts/ARV7519PW.dts index 1fa52c3d905..ea9b0dab006 100644 --- a/target/linux/lantiq/dts/ARV7519PW.dts +++ b/target/linux/lantiq/dts/ARV7519PW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV7519PW - Astoria Networks"; diff --git a/target/linux/lantiq/dts/ARV7519RW22.dts b/target/linux/lantiq/dts/ARV7519RW22.dts index 3d08b938405..c25a3b5d5ee 100644 --- a/target/linux/lantiq/dts/ARV7519RW22.dts +++ b/target/linux/lantiq/dts/ARV7519RW22.dts @@ -2,6 +2,8 @@ #include "vr9.dtsi" +#include + / { model = "ARV7519RW22 - Orange Livebox 2.1"; diff --git a/target/linux/lantiq/dts/ARV7525PW.dts b/target/linux/lantiq/dts/ARV7525PW.dts index f259c17d264..be498e4d1ea 100644 --- a/target/linux/lantiq/dts/ARV7525PW.dts +++ b/target/linux/lantiq/dts/ARV7525PW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV7525PW - Speedport W303V Typ A"; diff --git a/target/linux/lantiq/dts/ARV752DPW.dts b/target/linux/lantiq/dts/ARV752DPW.dts index d51a70a593e..d324e6e8544 100644 --- a/target/linux/lantiq/dts/ARV752DPW.dts +++ b/target/linux/lantiq/dts/ARV752DPW.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV752DPW - Arcor 802"; diff --git a/target/linux/lantiq/dts/ARV752DPW22.dts b/target/linux/lantiq/dts/ARV752DPW22.dts index 7343a5d2ffb..2a37a3a0bd3 100644 --- a/target/linux/lantiq/dts/ARV752DPW22.dts +++ b/target/linux/lantiq/dts/ARV752DPW22.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV752DPW22 - Arcor 803"; diff --git a/target/linux/lantiq/dts/ARV8539PW22.dts b/target/linux/lantiq/dts/ARV8539PW22.dts index 5728993017c..e00bd149fc0 100644 --- a/target/linux/lantiq/dts/ARV8539PW22.dts +++ b/target/linux/lantiq/dts/ARV8539PW22.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "ARV8539PW22 - Speedport W 504V Typ A"; diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts index 502132e4e9c..d707a75265b 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "BTHOMEHUBV2B - BT Home Hub 2B"; /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */ diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts index e3a252bfc41..c290c7081bd 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts @@ -2,6 +2,8 @@ #include "ar9.dtsi" +#include + / { model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */ diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts index c2fe11a59e3..f99d32e0714 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts @@ -2,6 +2,8 @@ #include "vr9.dtsi" +#include + / { model = "BTHOMEHUBV5A - BT Home Hub 5A"; diff --git a/target/linux/lantiq/dts/DGN1000B.dts b/target/linux/lantiq/dts/DGN1000B.dts index a63199f4f55..e15a4e25ced 100644 --- a/target/linux/lantiq/dts/DGN1000B.dts +++ b/target/linux/lantiq/dts/DGN1000B.dts @@ -2,6 +2,8 @@ #include "amazonse.dtsi" +#include + / { model = "DGN1000B - Netgear DGN1000B"; diff --git a/target/linux/lantiq/dts/DGN3500.dtsi b/target/linux/lantiq/dts/DGN3500.dtsi index c7d0b2d30cc..1d0d71cdaee 100644 --- a/target/linux/lantiq/dts/DGN3500.dtsi +++ b/target/linux/lantiq/dts/DGN3500.dtsi @@ -1,5 +1,7 @@ #include "ar9.dtsi" +#include + / { chosen { bootargs = "root= console=ttyLTQ0,115200"; diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi index bce8d5e2657..5ce89178be5 100644 --- a/target/linux/lantiq/dts/EASY80920.dtsi +++ b/target/linux/lantiq/dts/EASY80920.dtsi @@ -1,5 +1,7 @@ #include "vr9.dtsi" +#include + / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; diff --git a/target/linux/lantiq/dts/FRITZ3370.dts b/target/linux/lantiq/dts/FRITZ3370.dts index 775fa5d4382..e12c7bf9005 100644 --- a/target/linux/lantiq/dts/FRITZ3370.dts +++ b/target/linux/lantiq/dts/FRITZ3370.dts @@ -2,6 +2,8 @@ #include "vr9.dtsi" +#include + / { model = "FRITZ3370 - Fritz!Box WLAN 3370"; diff --git a/target/linux/lantiq/dts/FRITZ7320.dts b/target/linux/lantiq/dts/FRITZ7320.dts index e1e70bef6c4..f14cac2850e 100644 --- a/target/linux/lantiq/dts/FRITZ7320.dts +++ b/target/linux/lantiq/dts/FRITZ7320.dts @@ -2,6 +2,8 @@ #include "ar9.dtsi" +#include + / { model = "FRITZ7320 - 1&1 HomeServer"; diff --git a/target/linux/lantiq/dts/FRITZ7360SL.dts b/target/linux/lantiq/dts/FRITZ7360SL.dts index f41ea41f3b8..796458a6a5a 100644 --- a/target/linux/lantiq/dts/FRITZ7360SL.dts +++ b/target/linux/lantiq/dts/FRITZ7360SL.dts @@ -2,6 +2,8 @@ #include "vr9.dtsi" +#include + / { model = "FRITZ7360SL - 1&1 HomeServer"; diff --git a/target/linux/lantiq/dts/GIGASX76X.dts b/target/linux/lantiq/dts/GIGASX76X.dts index 6507157d986..6602693b7ce 100644 --- a/target/linux/lantiq/dts/GIGASX76X.dts +++ b/target/linux/lantiq/dts/GIGASX76X.dts @@ -2,6 +2,8 @@ #include "danube.dtsi" +#include + / { model = "GIGASX76X - Gigaset SX761,SX762,SX763"; diff --git a/target/linux/lantiq/dts/H201L.dts b/target/linux/lantiq/dts/H201L.dts index 85723592b59..7d4a24c661e 100644 --- a/target/linux/lantiq/dts/H201L.dts +++ b/target/linux/lantiq/dts/H201L.dts @@ -2,6 +2,8 @@ #include "ar9.dtsi" +#include + / { model = "H201L - ZTE H210L"; diff --git a/target/linux/lantiq/dts/P2601HNFX.dts b/target/linux/lantiq/dts/P2601HNFX.dts index 250de38122e..c82ab3dcb81 100644 --- a/target/linux/lantiq/dts/P2601HNFX.dts +++ b/target/linux/lantiq/dts/P2601HNFX.dts @@ -2,6 +2,8 @@ #include "ar9.dtsi" +#include + / { model = "P2601HNFX - ZyXEL P-2601HN-Fx"; diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi index f0dfe985018..afd13eaf035 100644 --- a/target/linux/lantiq/dts/P2812HNUFX.dtsi +++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi @@ -1,5 +1,7 @@ #include "vr9.dtsi" +#include + / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; diff --git a/target/linux/lantiq/dts/TDW89X0.dtsi b/target/linux/lantiq/dts/TDW89X0.dtsi index fd37352959d..6447451d183 100644 --- a/target/linux/lantiq/dts/TDW89X0.dtsi +++ b/target/linux/lantiq/dts/TDW89X0.dtsi @@ -1,5 +1,7 @@ #include "vr9.dtsi" +#include + / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; diff --git a/target/linux/lantiq/dts/VG3503J.dts b/target/linux/lantiq/dts/VG3503J.dts index 46b047a09d7..db25b874884 100644 --- a/target/linux/lantiq/dts/VG3503J.dts +++ b/target/linux/lantiq/dts/VG3503J.dts @@ -2,6 +2,8 @@ #include "vr9.dtsi" +#include + / { model = "VG3503J - BT OpenReach VDSL Modem"; diff --git a/target/linux/lantiq/dts/VGV7510KW22.dtsi b/target/linux/lantiq/dts/VGV7510KW22.dtsi index 5ca2844d08a..370ef57e06a 100644 --- a/target/linux/lantiq/dts/VGV7510KW22.dtsi +++ b/target/linux/lantiq/dts/VGV7510KW22.dtsi @@ -1,5 +1,7 @@ #include "vr9.dtsi" +#include + / { model = "VGV7510KW22 - o2 Box 6431"; diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi index a7b421fff93..ad4233a43d0 100644 --- a/target/linux/lantiq/dts/VGV7519.dtsi +++ b/target/linux/lantiq/dts/VGV7519.dtsi @@ -1,5 +1,7 @@ #include "vr9.dtsi" +#include + / { model = "VGV7519 - KPN Experiabox V8"; diff --git a/target/linux/lantiq/dts/VR200v.dts b/target/linux/lantiq/dts/VR200v.dts index 777bef93720..f814d242d6d 100644 --- a/target/linux/lantiq/dts/VR200v.dts +++ b/target/linux/lantiq/dts/VR200v.dts @@ -2,6 +2,8 @@ #include "vr9.dtsi" +#include + / { model = "VR200v - TP-LINK Archer VR200v"; diff --git a/target/linux/lantiq/dts/WBMR.dts b/target/linux/lantiq/dts/WBMR.dts index 07671d60536..3dbc641e668 100644 --- a/target/linux/lantiq/dts/WBMR.dts +++ b/target/linux/lantiq/dts/WBMR.dts @@ -2,6 +2,8 @@ #include "ar9.dtsi" +#include + / { model = "WBMR - Buffalo WBMR-HP-G300H"; diff --git a/target/linux/lantiq/dts/WBMR300.dts b/target/linux/lantiq/dts/WBMR300.dts index dc0b2862a9e..54bb98e81a4 100644 --- a/target/linux/lantiq/dts/WBMR300.dts +++ b/target/linux/lantiq/dts/WBMR300.dts @@ -2,6 +2,8 @@ #include "vr9.dtsi" +#include + / { model = "WBMR300 - Buffalo WBMR-300HPD"; diff --git a/target/linux/lantiq/dts/amazonse.dtsi b/target/linux/lantiq/dts/amazonse.dtsi index 520f0e0e852..33a5a353398 100644 --- a/target/linux/lantiq/dts/amazonse.dtsi +++ b/target/linux/lantiq/dts/amazonse.dtsi @@ -1,5 +1,4 @@ #include -#include / { #address-cells = <1>; diff --git a/target/linux/lantiq/dts/ar9.dtsi b/target/linux/lantiq/dts/ar9.dtsi index 32bed972b1c..4d3fd6f9a33 100644 --- a/target/linux/lantiq/dts/ar9.dtsi +++ b/target/linux/lantiq/dts/ar9.dtsi @@ -1,5 +1,4 @@ #include -#include / { #address-cells = <1>; diff --git a/target/linux/lantiq/dts/danube.dtsi b/target/linux/lantiq/dts/danube.dtsi index 39f2865779b..62e31d6bec5 100644 --- a/target/linux/lantiq/dts/danube.dtsi +++ b/target/linux/lantiq/dts/danube.dtsi @@ -1,5 +1,4 @@ #include -#include / { #address-cells = <1>; diff --git a/target/linux/lantiq/dts/vr9.dtsi b/target/linux/lantiq/dts/vr9.dtsi index 5478e1a9df7..779e23e61f7 100644 --- a/target/linux/lantiq/dts/vr9.dtsi +++ b/target/linux/lantiq/dts/vr9.dtsi @@ -1,5 +1,4 @@ #include -#include / { #address-cells = <1>; diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts index 4dc969c1fd9..712c03e4256 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts @@ -9,6 +9,8 @@ /dts-v1/; #include "ox820.dtsi" +#include + / { model = "Akitio MyCloud mini"; @@ -75,12 +77,12 @@ power { label = "power"; gpios = <&GPIOA 11 1>; - linux,code = <116>; + linux,code = ; }; reset { label = "reset"; gpios = <&GPIOB 6 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts index b5c79dede38..1312fd63b56 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts @@ -9,6 +9,8 @@ /dts-v1/; #include "ox820.dtsi" +#include + / { model = "Shuttle KD20"; @@ -91,17 +93,17 @@ power { label = "power"; gpios = <&GPIOA 10 1>; - linux,code = <116>; + linux,code = ; }; reset { label = "reset"; gpios = <&GPIOA 11 1>; - linux,code = <0x198>; + linux,code = ; }; eject1 { label = "eject1"; gpios = <&GPIOA 5 1>; - linux,code = <161>; + linux,code = ; }; eject2 { label = "eject2"; diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts index a0704bb348e..a8112c947c0 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts @@ -10,6 +10,8 @@ #include "ox820.dtsi" +#include + / { model = "MitraStar Technology Corp. STG-212"; @@ -57,12 +59,12 @@ reset { label = "reset"; gpios = <&GPIOB 11 1>; - linux,code = <0x198>; + linux,code = ; }; copy { label = "copy"; gpios = <&GPIOB 13 1>; - linux,code = <0x85>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/3G-6200N.dts b/target/linux/ramips/dts/3G-6200N.dts index a8032c5a78d..502020e5d1b 100644 --- a/target/linux/ramips/dts/3G-6200N.dts +++ b/target/linux/ramips/dts/3G-6200N.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "3G-6200N", "ralink,rt3050-soc"; model = "Edimax 3g-6200n"; @@ -72,13 +74,13 @@ reset { label = "reset"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; rfkill { label = "wlanswitch"; gpios = <&gpio0 13 1>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/3G-6200NL.dts b/target/linux/ramips/dts/3G-6200NL.dts index 453e45b0226..111fef314ff 100644 --- a/target/linux/ramips/dts/3G-6200NL.dts +++ b/target/linux/ramips/dts/3G-6200NL.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "3G-6200NL", "ralink,rt3050-soc"; model = "Edimax 3g-6200nl"; @@ -67,7 +69,7 @@ reset { label = "reset"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/3G150B.dts b/target/linux/ramips/dts/3G150B.dts index 3d348ff0f35..b64f9403676 100644 --- a/target/linux/ramips/dts/3G150B.dts +++ b/target/linux/ramips/dts/3G150B.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "3G150B", "ralink,rt5350-soc"; model = "Tenda 3G150B"; @@ -29,7 +31,7 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/3G300M.dts b/target/linux/ramips/dts/3G300M.dts index df770d83d51..4d19bca6dad 100644 --- a/target/linux/ramips/dts/3G300M.dts +++ b/target/linux/ramips/dts/3G300M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "3G300M", "ralink,rt3052-soc"; model = "Tenda 3G300M"; @@ -49,13 +51,13 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 10 1>; - linux,code = <0x100>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/A5-V11.dts b/target/linux/ramips/dts/A5-V11.dts index 51eb0058746..748e1edac75 100644 --- a/target/linux/ramips/dts/A5-V11.dts +++ b/target/linux/ramips/dts/A5-V11.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "A5-V11", "ralink,rt5350-soc"; model = "A5-V11"; @@ -29,7 +31,7 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/AI-BR100.dts b/target/linux/ramips/dts/AI-BR100.dts index 2c3293331a9..2405ae700fd 100644 --- a/target/linux/ramips/dts/AI-BR100.dts +++ b/target/linux/ramips/dts/AI-BR100.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "AI-BR100", "ralink,mt7620a-soc"; model = "Aigale Ai-BR100"; @@ -29,7 +31,7 @@ reset { label = "reset"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/AIR3GII.dts b/target/linux/ramips/dts/AIR3GII.dts index 2b08895b496..4d9a3b54324 100644 --- a/target/linux/ramips/dts/AIR3GII.dts +++ b/target/linux/ramips/dts/AIR3GII.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "AIR3GII", "ralink,rt5350-soc"; model = "AirLive Air3GII"; @@ -29,7 +31,7 @@ wps { label = "wps"; gpios = <&gpio0 7 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ALL0239-3G.dts b/target/linux/ramips/dts/ALL0239-3G.dts index d1d92e168c9..7957bad2f9b 100644 --- a/target/linux/ramips/dts/ALL0239-3G.dts +++ b/target/linux/ramips/dts/ALL0239-3G.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "ALL0239-3G", "ralink,rt3052-soc"; model = "Allnet ALL0239-3G"; @@ -72,19 +74,19 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; connect { label = "connect"; gpios = <&gpio0 7 1>; - linux,code = <0xda>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ALL0256N-4M.dts b/target/linux/ramips/dts/ALL0256N-4M.dts index 1cfaed67bb7..19cef87cbd8 100644 --- a/target/linux/ramips/dts/ALL0256N-4M.dts +++ b/target/linux/ramips/dts/ALL0256N-4M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "ALL0256N", "ralink,rt3050-soc"; model = "Allnet ALL0256N"; @@ -34,7 +36,7 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ALL0256N-8M.dts b/target/linux/ramips/dts/ALL0256N-8M.dts index 074273d6088..a3fbeecb279 100644 --- a/target/linux/ramips/dts/ALL0256N-8M.dts +++ b/target/linux/ramips/dts/ALL0256N-8M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "ALL0256N", "ralink,rt3050-soc"; model = "Allnet ALL0256N"; @@ -34,7 +36,7 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/AR670W.dts b/target/linux/ramips/dts/AR670W.dts index c1eac438816..3d26c3b6ff4 100644 --- a/target/linux/ramips/dts/AR670W.dts +++ b/target/linux/ramips/dts/AR670W.dts @@ -2,6 +2,8 @@ #include "rt2880.dtsi" +#include + / { compatible = "AR670W", "ralink,rt2880-soc"; model = "Airlink101 AR670W"; @@ -54,13 +56,13 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 9 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/AR725W.dts b/target/linux/ramips/dts/AR725W.dts index 3b8cfb3be71..3a2003e8a37 100644 --- a/target/linux/ramips/dts/AR725W.dts +++ b/target/linux/ramips/dts/AR725W.dts @@ -2,6 +2,8 @@ #include "rt2880.dtsi" +#include + / { compatible = "AR725W", "ralink,rt2880-soc"; model = "Airlink101 AR725W"; @@ -64,13 +66,13 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 9 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ASL26555-16M.dts b/target/linux/ramips/dts/ASL26555-16M.dts index 56f3c9d99c9..2887a6ef027 100644 --- a/target/linux/ramips/dts/ASL26555-16M.dts +++ b/target/linux/ramips/dts/ASL26555-16M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "ASL26555", "ralink,rt3050-soc"; model = "Alpha ASL26555"; @@ -15,13 +17,13 @@ reset { label = "reset"; gpios = <&gpio0 10 0>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 12 0>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/ASL26555-8M.dts b/target/linux/ramips/dts/ASL26555-8M.dts index 0dbc1dd3373..5ab65938a1a 100644 --- a/target/linux/ramips/dts/ASL26555-8M.dts +++ b/target/linux/ramips/dts/ASL26555-8M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "ASL26555", "ralink,rt3050-soc"; model = "Alpha ASL26555"; @@ -15,13 +17,13 @@ reset { label = "reset"; gpios = <&gpio0 10 0>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 12 0>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/ATP-52B.dts b/target/linux/ramips/dts/ATP-52B.dts index c15d3a46458..7e872985dd2 100644 --- a/target/linux/ramips/dts/ATP-52B.dts +++ b/target/linux/ramips/dts/ATP-52B.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "ATP-52B", "ralink,rt3052-soc"; model = "Argus ATP-52B"; @@ -59,13 +61,13 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/AWAPN2403.dts b/target/linux/ramips/dts/AWAPN2403.dts index 7babe42d56f..a1b5b217b22 100644 --- a/target/linux/ramips/dts/AWAPN2403.dts +++ b/target/linux/ramips/dts/AWAPN2403.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "AWAPN2403", "ralink,rt3052-soc"; model = "AsiaRF AWAPN2403"; @@ -24,7 +26,7 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/AWM002-EVB-4M.dts b/target/linux/ramips/dts/AWM002-EVB-4M.dts index e1252325578..f647a9658c2 100644 --- a/target/linux/ramips/dts/AWM002-EVB-4M.dts +++ b/target/linux/ramips/dts/AWM002-EVB-4M.dts @@ -2,6 +2,8 @@ #include "AWM002-4M.dtsi" +#include + / { model = "AsiaRF AWM002 EVB"; @@ -33,13 +35,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 20 1>; - linux,code = <0x32>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/AWM002-EVB-8M.dts b/target/linux/ramips/dts/AWM002-EVB-8M.dts index f2f91bb3d93..3c34c4aaaab 100644 --- a/target/linux/ramips/dts/AWM002-EVB-8M.dts +++ b/target/linux/ramips/dts/AWM002-EVB-8M.dts @@ -2,6 +2,8 @@ #include "AWM002-8M.dtsi" +#include + / { model = "AsiaRF AWM002 EVB"; @@ -33,13 +35,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 20 1>; - linux,code = <0x32>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/AWM003-EVB.dts b/target/linux/ramips/dts/AWM003-EVB.dts index 13e6964ccc2..9f8c2d266bb 100644 --- a/target/linux/ramips/dts/AWM003-EVB.dts +++ b/target/linux/ramips/dts/AWM003-EVB.dts @@ -2,6 +2,8 @@ #include "AWM002-8M.dtsi" +#include + / { compatible = "AWM003", "ralink,rt5350-soc"; model = "AsiaRF AWM003 EVB"; @@ -39,13 +41,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 20 1>; - linux,code = <0x32>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ArcherC20i.dts b/target/linux/ramips/dts/ArcherC20i.dts index a58fa57ced5..711274e6257 100644 --- a/target/linux/ramips/dts/ArcherC20i.dts +++ b/target/linux/ramips/dts/ArcherC20i.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "TP-Link Archer C20i"; @@ -41,12 +43,12 @@ rfkill { label = "rfkill"; gpios = <&gpio0 2 1>; - linux,code = <0xf7>; + linux,code = ; }; reset_wps { label = "reset_wps"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/BC2.dts b/target/linux/ramips/dts/BC2.dts index 5ae10a31a0f..55cf8964f35 100644 --- a/target/linux/ramips/dts/BC2.dts +++ b/target/linux/ramips/dts/BC2.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "BC2", "ralink,rt3052-soc"; model = "NexAira BC2"; @@ -56,7 +58,7 @@ reset { label = "reset"; gpios = <&gpio0 17 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/BR-6425.dts b/target/linux/ramips/dts/BR-6425.dts index b871ead992a..1e13c97ada2 100644 --- a/target/linux/ramips/dts/BR-6425.dts +++ b/target/linux/ramips/dts/BR-6425.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "BR-6425", "ralink,rt3052-soc"; model = "Edimax BR-6425"; @@ -38,13 +40,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; rfkill { label = "RFKILL switch"; gpios = <&gpio0 13 1>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/BR-6475ND.dts b/target/linux/ramips/dts/BR-6475ND.dts index 2ab2cba8941..a93b8177bee 100644 --- a/target/linux/ramips/dts/BR-6475ND.dts +++ b/target/linux/ramips/dts/BR-6475ND.dts @@ -2,6 +2,8 @@ #include "rt3883.dtsi" +#include + / { compatible = "BR-6475ND", "ralink,rt3883-soc"; model = "Edimax BR-6475nD"; @@ -15,14 +17,14 @@ reset { label = "reset"; gpios = <&gpio0 7 1>; - linux,code = <0x198>; + linux,code = ; }; rfkill { label = "rfkill"; gpios = <&gpio0 9 1>; - linux,input-type = <5>; - linux,code = <0xf7>; + linux,input-type = ; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/BROADWAY.dts b/target/linux/ramips/dts/BROADWAY.dts index 790dcc0467f..6cfac0f988e 100644 --- a/target/linux/ramips/dts/BROADWAY.dts +++ b/target/linux/ramips/dts/BROADWAY.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "BROADWAY", "ralink,rt3052-soc"; model = "Hauppauge Broadway"; @@ -61,7 +63,7 @@ factory { label = "Factory Reset button"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/CF-WR800N.dts b/target/linux/ramips/dts/CF-WR800N.dts index 913f142f352..6ce4b27301f 100644 --- a/target/linux/ramips/dts/CF-WR800N.dts +++ b/target/linux/ramips/dts/CF-WR800N.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "cf-wr800n", "ralink,mt7620n-soc"; model = "Comfast CF-WR800N"; @@ -38,7 +40,7 @@ reset { label = "reset"; gpios = <&gpio0 2 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/CS-QR10.dts b/target/linux/ramips/dts/CS-QR10.dts index c3cb711a05f..bdd828fe8fd 100644 --- a/target/linux/ramips/dts/CS-QR10.dts +++ b/target/linux/ramips/dts/CS-QR10.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Planex CS-QR10"; @@ -35,13 +37,13 @@ s1 { label = "reset"; gpios = <&gpio1 1 1>; - linux,code = <0x198>; + linux,code = ; }; s2 { label = "wps"; gpios = <&gpio1 3 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/CY-SWR1100.dts b/target/linux/ramips/dts/CY-SWR1100.dts index 95827d5017f..e7722795258 100644 --- a/target/linux/ramips/dts/CY-SWR1100.dts +++ b/target/linux/ramips/dts/CY-SWR1100.dts @@ -2,6 +2,8 @@ #include "rt3883.dtsi" +#include + / { compatible = "CY-SWR1100", "ralink,rt3883-soc"; model = "Samsung CY-SWR1100"; @@ -64,13 +66,13 @@ reset { label = "reset"; gpios = <&gpio0 6 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 3 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/D105.dts b/target/linux/ramips/dts/D105.dts index 2e86d1edac2..f7ace49f628 100644 --- a/target/linux/ramips/dts/D105.dts +++ b/target/linux/ramips/dts/D105.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "D105", "ralink,rt3050-soc"; model = "Huawei D105"; @@ -61,7 +63,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DAP-1350.dts b/target/linux/ramips/dts/DAP-1350.dts index 4628544fb6a..c3225db9527 100644 --- a/target/linux/ramips/dts/DAP-1350.dts +++ b/target/linux/ramips/dts/DAP-1350.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "DAP-1350", "ralink,rt3052-soc"; model = "D-Link DAP-1350"; @@ -76,25 +78,25 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; rt { label = "rt"; gpios = <&gpio0 11 1>; - linux,code = <0x100>; + linux,code = ; }; ap { label = "ap"; gpios = <&gpio0 7 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DB-WRT01.dts b/target/linux/ramips/dts/DB-WRT01.dts index 4560dc5ca84..400c5ef51b4 100644 --- a/target/linux/ramips/dts/DB-WRT01.dts +++ b/target/linux/ramips/dts/DB-WRT01.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Planex DB-WRT01"; @@ -24,7 +26,7 @@ s1 { label = "wps"; gpios = <&gpio0 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DCH-M225.dts b/target/linux/ramips/dts/DCH-M225.dts index ee7c2c404a5..21133a9b88c 100644 --- a/target/linux/ramips/dts/DCH-M225.dts +++ b/target/linux/ramips/dts/DCH-M225.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; model = "D-Link DCH-M225"; @@ -15,13 +17,13 @@ wps { label = "wps"; gpios = <&gpio0 11 1>; - linux,code = <0xf7>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio1 2 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DCS-930.dts b/target/linux/ramips/dts/DCS-930.dts index 373973c3df8..d57682ec7bf 100644 --- a/target/linux/ramips/dts/DCS-930.dts +++ b/target/linux/ramips/dts/DCS-930.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "DCS-930", "ralink,rt3050-soc"; model = "D-Link DCS-930"; @@ -76,13 +78,13 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x101>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DCS-930L-B1.dts b/target/linux/ramips/dts/DCS-930L-B1.dts index 133245cb74b..17996d2358c 100644 --- a/target/linux/ramips/dts/DCS-930L-B1.dts +++ b/target/linux/ramips/dts/DCS-930L-B1.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "DCS-930L-B1", "ralink,rt5350-soc"; model = "D-Link DCS-930L B1"; @@ -29,13 +31,13 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 20 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DIR-300-B1.dts b/target/linux/ramips/dts/DIR-300-B1.dts index 4f0a7ffde75..2ba6ae64c60 100644 --- a/target/linux/ramips/dts/DIR-300-B1.dts +++ b/target/linux/ramips/dts/DIR-300-B1.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "DIR-300-B1", "ralink,rt3050-soc"; model = "D-Link DIR-300 B1"; @@ -47,13 +49,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-300-B7.dts b/target/linux/ramips/dts/DIR-300-B7.dts index 9b9a6a45926..fb93f5d646e 100644 --- a/target/linux/ramips/dts/DIR-300-B7.dts +++ b/target/linux/ramips/dts/DIR-300-B7.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "DIR-300-B7", "ralink,rt5350-soc"; model = "D-Link DIR-300 B7"; @@ -29,13 +31,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DIR-320-B1.dts b/target/linux/ramips/dts/DIR-320-B1.dts index 102e06abf9a..2335c9a391e 100644 --- a/target/linux/ramips/dts/DIR-320-B1.dts +++ b/target/linux/ramips/dts/DIR-320-B1.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "DIR-320-B1", "ralink,rt5350-soc"; model = "D-Link DIR-320 B1"; @@ -34,13 +36,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-600-B1.dts b/target/linux/ramips/dts/DIR-600-B1.dts index d45d3c5ccdf..493d49bb730 100644 --- a/target/linux/ramips/dts/DIR-600-B1.dts +++ b/target/linux/ramips/dts/DIR-600-B1.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "DIR-600-B1", "ralink,rt3050-soc"; model = "D-Link DIR-600 B1"; @@ -47,13 +49,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-600-B2.dts b/target/linux/ramips/dts/DIR-600-B2.dts index f0269cfa2e5..f1f10ad2545 100644 --- a/target/linux/ramips/dts/DIR-600-B2.dts +++ b/target/linux/ramips/dts/DIR-600-B2.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "DIR-600-B2", "ralink,rt3050-soc"; model = "D-Link DIR-600 B2"; @@ -47,13 +49,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-610-A1.dts b/target/linux/ramips/dts/DIR-610-A1.dts index 9ec66b4b003..e69997f4746 100644 --- a/target/linux/ramips/dts/DIR-610-A1.dts +++ b/target/linux/ramips/dts/DIR-610-A1.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "DIR-610-A1", "ralink,rt5350-soc"; model = "D-Link DIR-610 A1"; @@ -29,13 +31,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DIR-615-D.dts b/target/linux/ramips/dts/DIR-615-D.dts index cac9d2602cb..67705fe3ce4 100644 --- a/target/linux/ramips/dts/DIR-615-D.dts +++ b/target/linux/ramips/dts/DIR-615-D.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "DIR-615-D", "ralink,rt3050-soc"; model = "D-Link DIR-615 D"; @@ -47,13 +49,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-615-H1.dts b/target/linux/ramips/dts/DIR-615-H1.dts index d53c82609f0..9fbd7356c49 100644 --- a/target/linux/ramips/dts/DIR-615-H1.dts +++ b/target/linux/ramips/dts/DIR-615-H1.dts @@ -2,6 +2,8 @@ #include "rt3352.dtsi" +#include + / { compatible = "DIR-615-H1", "ralink,rt3352-soc"; model = "D-Link DIR-615 H1"; @@ -44,13 +46,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DIR-620-A1.dts b/target/linux/ramips/dts/DIR-620-A1.dts index 68a23465a64..50967b29c2a 100644 --- a/target/linux/ramips/dts/DIR-620-A1.dts +++ b/target/linux/ramips/dts/DIR-620-A1.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "DIR-620-A1", "ralink,rt3050-soc"; model = "D-Link DIR-620 A1"; @@ -47,13 +49,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-620-D1.dts b/target/linux/ramips/dts/DIR-620-D1.dts index 5cf330e66bb..1bdcaffb4ac 100644 --- a/target/linux/ramips/dts/DIR-620-D1.dts +++ b/target/linux/ramips/dts/DIR-620-D1.dts @@ -2,6 +2,8 @@ #include "rt3352.dtsi" +#include + / { compatible = "DIR-620-D1", "ralink,rt3352-soc"; model = "D-Link DIR-620 D1"; @@ -29,7 +31,7 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 7 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DIR-645.dts b/target/linux/ramips/dts/DIR-645.dts index d508297ac18..30eccaf5f59 100644 --- a/target/linux/ramips/dts/DIR-645.dts +++ b/target/linux/ramips/dts/DIR-645.dts @@ -2,6 +2,8 @@ #include "rt3883.dtsi" +#include + / { compatible = "DIR-645", "ralink,rt3883-soc"; model = "D-Link DIR-645"; @@ -22,13 +24,13 @@ reset { label = "reset"; gpios = <&gpio0 9 0>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 14 0>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts index 1f9ad8a5d2d..4ccea0d45b0 100644 --- a/target/linux/ramips/dts/DIR-810L.dts +++ b/target/linux/ramips/dts/DIR-810L.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; model = "D-Link DIR-810L"; @@ -15,13 +17,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x100>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 2 1>; - linux,code = <0x100>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts index 579df585c71..5154a4dedb6 100644 --- a/target/linux/ramips/dts/DIR-860L-B1.dts +++ b/target/linux/ramips/dts/DIR-860L-B1.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc"; model = "D-Link DIR-860L B1"; @@ -48,13 +50,13 @@ reset { label = "reset"; gpios = <&gpio0 7 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 18 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/DUZUN-DM06.dts b/target/linux/ramips/dts/DUZUN-DM06.dts index 05bb56181e5..5715791a688 100644 --- a/target/linux/ramips/dts/DUZUN-DM06.dts +++ b/target/linux/ramips/dts/DUZUN-DM06.dts @@ -2,6 +2,8 @@ #include "mt7628an.dtsi" +#include + / { compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc"; model = "DuZun DM06"; @@ -20,13 +22,13 @@ reset { label = "reset"; gpios = <&gpio1 14 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio1 6 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/E1700.dts b/target/linux/ramips/dts/E1700.dts index 36126ab42b0..050303a4136 100644 --- a/target/linux/ramips/dts/E1700.dts +++ b/target/linux/ramips/dts/E1700.dts @@ -12,6 +12,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "linksys,e1700", "ralink,mt7620a-soc"; model = "Linksys E1700"; @@ -25,13 +27,13 @@ reset { label = "reset"; gpios = <&gpio0 1 0>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 2 0>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/ESR-9753.dts b/target/linux/ramips/dts/ESR-9753.dts index 68691667874..59a961d6990 100644 --- a/target/linux/ramips/dts/ESR-9753.dts +++ b/target/linux/ramips/dts/ESR-9753.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "ESR-9753", "ralink,rt3052-soc"; model = "Senao / EnGenius ESR-9753"; @@ -61,13 +63,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/EX2700.dts b/target/linux/ramips/dts/EX2700.dts index c711adc6b4e..348ca789d10 100644 --- a/target/linux/ramips/dts/EX2700.dts +++ b/target/linux/ramips/dts/EX2700.dts @@ -12,6 +12,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Netgear EX2700"; @@ -69,13 +71,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts index dacdea6ca40..74e423c2654 100644 --- a/target/linux/ramips/dts/F5D8235_V1.dts +++ b/target/linux/ramips/dts/F5D8235_V1.dts @@ -2,6 +2,8 @@ #include "rt2880.dtsi" +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -55,13 +57,13 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 9 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/F7C027.dts b/target/linux/ramips/dts/F7C027.dts index c8ed765df28..d6a150a4a77 100644 --- a/target/linux/ramips/dts/F7C027.dts +++ b/target/linux/ramips/dts/F7C027.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "F7C027", "ralink,rt5350-soc"; model = "Belkin F7C027"; @@ -39,19 +41,19 @@ top { label = "restore"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; power { label = "power"; gpios = <&gpio0 12 1>; - linux,code = <0xf7>; + linux,code = ; }; sensor { label = "sensor"; gpios = <&gpio0 14 1>; - linux,code = <0x100>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts index 4299b68a340..b318e6808bc 100644 --- a/target/linux/ramips/dts/FIREWRT.dts +++ b/target/linux/ramips/dts/FIREWRT.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "Firefly FireWRT"; @@ -33,13 +35,13 @@ wps { label = "wps"; gpios = <&gpio0 18 1>; - linux,code = <0x211>; + linux,code = ; }; power { label = "power"; gpios = <&gpio0 23 1>; - linux,code = <116>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts index b7eb91ea7bc..c409f9b01d7 100644 --- a/target/linux/ramips/dts/FONERA20N.dts +++ b/target/linux/ramips/dts/FONERA20N.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "FONERA20N", "ralink,rt3052-soc"; model = "La Fonera 2.0N"; @@ -66,14 +68,14 @@ reset { label = "reset"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; switch { label = "switch"; gpios = <&gpio0 13 1>; - linux,code = <0xf7>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; }; }; diff --git a/target/linux/ramips/dts/GL-MT300A.dts b/target/linux/ramips/dts/GL-MT300A.dts index 5edb7ca4878..6922b958db4 100644 --- a/target/linux/ramips/dts/GL-MT300A.dts +++ b/target/linux/ramips/dts/GL-MT300A.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "GL-MT300A", "ralink,mt7620a-soc"; model = "GL-MT300A"; @@ -43,19 +45,19 @@ reset { label = "reset"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; BTN_0 { label = "BTN_0"; gpios = <&gpio0 1 1>; - linux,code = <0x100>; + linux,code = ; }; BTN_1 { label = "BTN_1"; gpios = <&gpio0 2 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/GL-MT300N.dts b/target/linux/ramips/dts/GL-MT300N.dts index 341a8f64628..c6feb96f89c 100644 --- a/target/linux/ramips/dts/GL-MT300N.dts +++ b/target/linux/ramips/dts/GL-MT300N.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "GL-MT300N", "ralink,mt7620a-soc"; model = "GL-MT300N"; @@ -38,19 +40,19 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; BTN_0 { label = "BTN_0"; gpios = <&gpio2 2 1>; - linux,code = <0x100>; + linux,code = ; }; BTN_1 { label = "BTN_1"; gpios = <&gpio2 3 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/GL-MT750.dts b/target/linux/ramips/dts/GL-MT750.dts index c59ffb37565..46679842bc5 100644 --- a/target/linux/ramips/dts/GL-MT750.dts +++ b/target/linux/ramips/dts/GL-MT750.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "GL-MT750", "ralink,mt7620a-soc"; model = "GL-MT750"; @@ -38,19 +40,19 @@ reset { label = "reset"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; BTN_0 { label = "BTN_0"; gpios = <&gpio2 2 1>; - linux,code = <0x100>; + linux,code = ; }; BTN_1 { label = "BTN_1"; gpios = <&gpio2 3 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/HC5XXX.dtsi b/target/linux/ramips/dts/HC5XXX.dtsi index d55d5b65cd6..54bf40936e4 100644 --- a/target/linux/ramips/dts/HC5XXX.dtsi +++ b/target/linux/ramips/dts/HC5XXX.dtsi @@ -1,5 +1,7 @@ #include "mt7620a.dtsi" +#include + / { chosen { bootargs = "console=ttyS0,115200"; @@ -14,7 +16,7 @@ reset { label = "reset"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts index ee385097b2c..91426db3c98 100644 --- a/target/linux/ramips/dts/HG255D.dts +++ b/target/linux/ramips/dts/HG255D.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "HG255D", "ralink,rt3052-soc"; model = "HuaWei HG255D"; @@ -87,19 +89,19 @@ reset { label = "reset"; gpios = <&gpio0 4 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 10 1>; - linux,code = <0x211>; + linux,code = ; }; rfkill { label = "rfkill"; gpios = <&gpio0 0 1>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/HLKRM04.dts b/target/linux/ramips/dts/HLKRM04.dts index 2f4e43548f5..cbd860967a8 100644 --- a/target/linux/ramips/dts/HLKRM04.dts +++ b/target/linux/ramips/dts/HLKRM04.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "HLKRM04", "ralink,rt5350-soc"; model = "HILINK HLK-RM04"; @@ -42,12 +44,12 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 14 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/HPM.dts b/target/linux/ramips/dts/HPM.dts index 000750fa127..ada12c1cf48 100644 --- a/target/linux/ramips/dts/HPM.dts +++ b/target/linux/ramips/dts/HPM.dts @@ -2,6 +2,8 @@ #include "rt3883.dtsi" +#include + / { compatible = "HPM", "ralink,rt3883-soc"; model = "Omnima HPM"; @@ -19,7 +21,7 @@ reset { label = "reset"; gpios = <&gpio0 14 0>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/HT-TM02.dts b/target/linux/ramips/dts/HT-TM02.dts index bfa3536a29d..8dc2dbc5241 100644 --- a/target/linux/ramips/dts/HT-TM02.dts +++ b/target/linux/ramips/dts/HT-TM02.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "HT-TM02", "ralink,rt5350-soc"; model = "HooToo HT-TM02"; @@ -29,14 +31,14 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; modeswitch { label = "modeswitch"; gpios = <&gpio0 14 1>; - linux,code = <0x100>; - linux,input-type = <5>; + linux,code = ; + linux,input-type = ; }; }; }; diff --git a/target/linux/ramips/dts/HW550-3G.dts b/target/linux/ramips/dts/HW550-3G.dts index 0efa8d0f54b..d5bca44f94f 100644 --- a/target/linux/ramips/dts/HW550-3G.dts +++ b/target/linux/ramips/dts/HW550-3G.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "HW550-3G", "ralink,rt3052-soc"; model = "Aztech HW550-3G"; @@ -71,19 +73,19 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; connect { label = "connect"; gpios = <&gpio0 7 1>; - linux,code = <0xda>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/IP2202.dts b/target/linux/ramips/dts/IP2202.dts index 50d5532a2d6..6f26f3b50a2 100644 --- a/target/linux/ramips/dts/IP2202.dts +++ b/target/linux/ramips/dts/IP2202.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "IP2202", "ralink,rt3052-soc"; model = "Poray IP2202"; @@ -61,7 +63,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/JHR-N805R.dts b/target/linux/ramips/dts/JHR-N805R.dts index 0688c3ab023..20cdb848760 100644 --- a/target/linux/ramips/dts/JHR-N805R.dts +++ b/target/linux/ramips/dts/JHR-N805R.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "JHR-N805R", "ralink,rt3050-soc"; model = "JCG JHR-N805R"; @@ -24,7 +26,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/JHR-N825R.dts b/target/linux/ramips/dts/JHR-N825R.dts index 1e9acdf1139..4eab8932654 100644 --- a/target/linux/ramips/dts/JHR-N825R.dts +++ b/target/linux/ramips/dts/JHR-N825R.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "JHR-N825R", "ralink,rt3052-soc"; model = "JCG JHR-N825R"; @@ -54,7 +56,7 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/JHR-N926R.dts b/target/linux/ramips/dts/JHR-N926R.dts index 1a63656ed93..e5b64c5b96f 100644 --- a/target/linux/ramips/dts/JHR-N926R.dts +++ b/target/linux/ramips/dts/JHR-N926R.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "JHR-N926R", "ralink,rt3052-soc"; model = "JCG JHR-N926R"; @@ -94,13 +96,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wlan { label = "wlan"; gpios = <&gpio0 1 1>; - linux,code = <0x100>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/LINKIT7688.dts b/target/linux/ramips/dts/LINKIT7688.dts index 09a8c987f7c..210d4d0b8d1 100644 --- a/target/linux/ramips/dts/LINKIT7688.dts +++ b/target/linux/ramips/dts/LINKIT7688.dts @@ -2,6 +2,8 @@ #include "mt7628an.dtsi" +#include + / { compatible = "mediatek,linkit", "mediatek,mt7628an-soc"; model = "MediaTek LinkIt Smart 7688"; @@ -44,7 +46,7 @@ wps { label = "reset"; gpios = <&gpio1 6 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/M2M.dts b/target/linux/ramips/dts/M2M.dts index 22ec534a2a6..99e7b6a44b4 100644 --- a/target/linux/ramips/dts/M2M.dts +++ b/target/linux/ramips/dts/M2M.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "M2M", "ralink,rt5350-soc"; model = "Intenso Memory 2 Move"; @@ -33,13 +35,13 @@ power { label = "power"; gpios = <&gpio0 1 1>; - linux,code = <0x116>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/M3.dts b/target/linux/ramips/dts/M3.dts index 9b6ed89142a..f4169c779ca 100644 --- a/target/linux/ramips/dts/M3.dts +++ b/target/linux/ramips/dts/M3.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "M3", "ralink,rt5350-soc"; model = "Poray M3"; @@ -24,14 +26,14 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 17 1>; - linux,code = <0x100>; - linux,input-type = <5>; + linux,code = ; + linux,input-type = ; }; }; }; diff --git a/target/linux/ramips/dts/M4-4M.dts b/target/linux/ramips/dts/M4-4M.dts index 0502714c3b0..79bea1952e2 100644 --- a/target/linux/ramips/dts/M4-4M.dts +++ b/target/linux/ramips/dts/M4-4M.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "M4", "ralink,rt5350-soc"; model = "Poray M4"; @@ -24,7 +26,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/M4-8M.dts b/target/linux/ramips/dts/M4-8M.dts index 16ee184ed26..8d6453b0d07 100644 --- a/target/linux/ramips/dts/M4-8M.dts +++ b/target/linux/ramips/dts/M4-8M.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "M4", "ralink,rt5350-soc"; model = "Poray M4"; @@ -24,7 +26,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MINIEMBPLUG.dts b/target/linux/ramips/dts/MINIEMBPLUG.dts index eefac574c13..5f1cfe93cba 100644 --- a/target/linux/ramips/dts/MINIEMBPLUG.dts +++ b/target/linux/ramips/dts/MINIEMBPLUG.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "MINIEMBPLUG", "ralink,rt5350-soc"; model = "Omnima MiniEMBPlug"; @@ -29,25 +31,25 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x211>; + linux,code = ; }; mode-one { label = "mode1"; gpios = <&gpio0 11 1>; - linux,code = <0x211>; + linux,code = ; }; mode-two { label = "mode2"; gpios = <&gpio0 12 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MINIEMBWIFI.dts b/target/linux/ramips/dts/MINIEMBWIFI.dts index 1240adede0a..ccdd40f8014 100644 --- a/target/linux/ramips/dts/MINIEMBWIFI.dts +++ b/target/linux/ramips/dts/MINIEMBWIFI.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "MINIEMBWIFI", "ralink,rt3052-soc"; model = "Omnima MiniEMBWiFi"; @@ -29,7 +31,7 @@ reset { label = "reset"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts index e9ad3750b70..0cd511c4fae 100644 --- a/target/linux/ramips/dts/MIWIFI-MINI.dts +++ b/target/linux/ramips/dts/MIWIFI-MINI.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc"; model = "Xiaomi MiWiFi Mini"; @@ -38,7 +40,7 @@ reset { label = "reset"; gpios = <&gpio1 6 0>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MLW221.dts b/target/linux/ramips/dts/MLW221.dts index 3406280a418..05d7dfff8a4 100644 --- a/target/linux/ramips/dts/MLW221.dts +++ b/target/linux/ramips/dts/MLW221.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "mlw221", "ralink,mt7620n-soc"; model = "Kingston MLW221"; @@ -29,13 +31,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; system { label = "system"; gpios = <&gpio0 2 1>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MLWG2.dts b/target/linux/ramips/dts/MLWG2.dts index aeedb464d51..9c71c91c1c4 100644 --- a/target/linux/ramips/dts/MLWG2.dts +++ b/target/linux/ramips/dts/MLWG2.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "mlwg2", "ralink,mt7620n-soc"; model = "Kingston MLWG2"; @@ -29,13 +31,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; system { label = "system"; gpios = <&gpio0 2 1>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MOFI3500-3GN.dts b/target/linux/ramips/dts/MOFI3500-3GN.dts index 633f20a7504..23596e0f344 100644 --- a/target/linux/ramips/dts/MOFI3500-3GN.dts +++ b/target/linux/ramips/dts/MOFI3500-3GN.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "MOFI3500-3GN", "ralink,rt3052-soc"; model = "MoFi Network MOFI3500-3GN"; @@ -71,19 +73,19 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; connect { label = "connect"; gpios = <&gpio0 7 1>; - linux,code = <0xda>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts index d9baed732a2..e97e60ca59f 100644 --- a/target/linux/ramips/dts/MPRA1.dts +++ b/target/linux/ramips/dts/MPRA1.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "MPRA1", "ralink,rt5350-soc"; model = "HAME MPR-A1"; @@ -29,7 +31,7 @@ wps { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/MPRA2.dts b/target/linux/ramips/dts/MPRA2.dts index 84f5dda3a63..72ee8768b6b 100644 --- a/target/linux/ramips/dts/MPRA2.dts +++ b/target/linux/ramips/dts/MPRA2.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "MPRA2", "ralink,rt5350-soc"; model = "HAME MPR-A2"; @@ -29,7 +31,7 @@ wps { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/MR-102N.dts b/target/linux/ramips/dts/MR-102N.dts index 6546601f158..a28deb79eda 100644 --- a/target/linux/ramips/dts/MR-102N.dts +++ b/target/linux/ramips/dts/MR-102N.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "MR-102N", "ralink,rt3052-soc"; model = "AXIMCom MR-102N"; @@ -76,13 +78,13 @@ reset { label = "reset"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 18 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MT7620a.dts b/target/linux/ramips/dts/MT7620a.dts index 7bf38976f61..8f1b6d95210 100644 --- a/target/linux/ramips/dts/MT7620a.dts +++ b/target/linux/ramips/dts/MT7620a.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc"; model = "Ralink MT7620a + MT7610e evaluation board"; @@ -15,13 +17,13 @@ s2 { label = "S2"; gpios = <&gpio0 1 1>; - linux,code = <0x100>; + linux,code = ; }; s3 { label = "S3"; gpios = <&gpio0 2 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MT7620a_MT7610e.dts b/target/linux/ramips/dts/MT7620a_MT7610e.dts index 52ceddcbc82..da241a42531 100644 --- a/target/linux/ramips/dts/MT7620a_MT7610e.dts +++ b/target/linux/ramips/dts/MT7620a_MT7610e.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc"; model = "Ralink MT7620A evaluation board"; @@ -15,13 +17,13 @@ wps { label = "wps"; gpios = <&gpio0 12 1>; - linux,code = <0x100>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 13 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MT7620a_V22SG.dts b/target/linux/ramips/dts/MT7620a_V22SG.dts index a3e206e5ddd..ea175120825 100644 --- a/target/linux/ramips/dts/MT7620a_V22SG.dts +++ b/target/linux/ramips/dts/MT7620a_V22SG.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc"; model = "Ralink MT7620a V22SG High Power evaluation board"; @@ -15,13 +17,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio0 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/MZK-750DHP.dts b/target/linux/ramips/dts/MZK-750DHP.dts index 01fe2a1e24f..589b19e52cb 100644 --- a/target/linux/ramips/dts/MZK-750DHP.dts +++ b/target/linux/ramips/dts/MZK-750DHP.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Planex MZK-750DHP"; @@ -34,13 +36,13 @@ s1 { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; s2 { label = "wps"; gpios = <&gpio2 19 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MZK-DP150N.dts b/target/linux/ramips/dts/MZK-DP150N.dts index 86f82ba59ae..7fa8ef4ab90 100644 --- a/target/linux/ramips/dts/MZK-DP150N.dts +++ b/target/linux/ramips/dts/MZK-DP150N.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "MZK-DP150N", "ralink,rt5350-soc"; model = "Planex MZK-DP150N"; @@ -24,7 +26,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MZK-EX300NP.dts b/target/linux/ramips/dts/MZK-EX300NP.dts index 4c87f90c567..569d0a951cb 100644 --- a/target/linux/ramips/dts/MZK-EX300NP.dts +++ b/target/linux/ramips/dts/MZK-EX300NP.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Planex MZK-EX300NP"; @@ -49,13 +51,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio1 3 0>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MZK-EX750NP.dts b/target/linux/ramips/dts/MZK-EX750NP.dts index 74f72f04cad..ec2ca5fc4b4 100644 --- a/target/linux/ramips/dts/MZK-EX750NP.dts +++ b/target/linux/ramips/dts/MZK-EX750NP.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Planex MZK-EX750NP"; @@ -54,13 +56,13 @@ reset { label = "reset"; gpios = <&gpio0 9 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 13 0>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MZK-W300NH2.dts b/target/linux/ramips/dts/MZK-W300NH2.dts index 987d6a7c0d2..4b002b7c20e 100644 --- a/target/linux/ramips/dts/MZK-W300NH2.dts +++ b/target/linux/ramips/dts/MZK-W300NH2.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "MZK-W300NH2", "ralink,rt3052-soc"; model = "Planex MZK-W300NH2"; @@ -72,19 +74,19 @@ wps { label = "wps"; gpios = <&gpio0 12 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; rt { label = "rt"; gpios = <&gpio0 13 1>; - linux,code = <0x100>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/MicroWRT.dts b/target/linux/ramips/dts/MicroWRT.dts index 07e01550a7f..c8558c6326e 100644 --- a/target/linux/ramips/dts/MicroWRT.dts +++ b/target/linux/ramips/dts/MicroWRT.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "microwrt", "ralink,mt7620a-soc"; model = "Microduino MicroWRT"; @@ -19,13 +21,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/NA930.dts b/target/linux/ramips/dts/NA930.dts index 4093932a50e..522bc758551 100644 --- a/target/linux/ramips/dts/NA930.dts +++ b/target/linux/ramips/dts/NA930.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc"; model = "Sercomm NA930"; @@ -48,19 +50,19 @@ reset { label = "reset"; gpios = <&gpio0 11 1>; - linux,code = <0x198>; + linux,code = ; }; zwave { label = "zwave"; gpios = <&gpio0 12 1>; - linux,code = <0x100>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 14 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/NBG-419N.dts b/target/linux/ramips/dts/NBG-419N.dts index 59ab665da71..e19ce34b5c3 100644 --- a/target/linux/ramips/dts/NBG-419N.dts +++ b/target/linux/ramips/dts/NBG-419N.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "NBG-419N", "ralink,rt3052-soc"; model = "ZyXEL NBG-419N"; @@ -61,13 +63,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/NBG-419N2.dts b/target/linux/ramips/dts/NBG-419N2.dts index 981b4e5872f..8bb0cc5280c 100644 --- a/target/linux/ramips/dts/NBG-419N2.dts +++ b/target/linux/ramips/dts/NBG-419N2.dts @@ -2,6 +2,8 @@ #include "rt3352.dtsi" +#include + / { compatible = "NBG-419N2", "ralink,rt3352-soc"; model = "ZyXEL NBG-419N v2"; @@ -70,18 +72,18 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; rfkill { label = "rfkill"; - linux,input-type = <5>; + linux,input-type = ; gpios = <&gpio0 12 0>; - linux,code = <0xf7>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/NW718.dts b/target/linux/ramips/dts/NW718.dts index 06c6b0d62dc..372bff6e7f2 100644 --- a/target/linux/ramips/dts/NW718.dts +++ b/target/linux/ramips/dts/NW718.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "NW718", "ralink,rt3050-soc"; model = "Netcore NW718"; @@ -34,13 +36,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts index 2d91c58c1e5..07950baed8f 100644 --- a/target/linux/ramips/dts/Newifi-D1.dts +++ b/target/linux/ramips/dts/Newifi-D1.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "Newifi-D1"; @@ -43,7 +45,7 @@ reset { label = "reset"; gpios = <&gpio0 15 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/OY-0001.dts b/target/linux/ramips/dts/OY-0001.dts index 6bf1ad6be70..932d379b700 100644 --- a/target/linux/ramips/dts/OY-0001.dts +++ b/target/linux/ramips/dts/OY-0001.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "OY-0001"; @@ -33,7 +35,7 @@ s1 { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/PBR-D1.dts b/target/linux/ramips/dts/PBR-D1.dts index 30477a0ddfe..da32c8dff92 100644 --- a/target/linux/ramips/dts/PBR-D1.dts +++ b/target/linux/ramips/dts/PBR-D1.dts @@ -2,6 +2,8 @@ #include "mt7628an.dtsi" +#include + / { compatible = "mediatek,pbr-d1", "mediatek,mt7628an-soc"; model = "PBR-D1"; @@ -44,7 +46,7 @@ wps { label = "reset"; gpios = <&gpio1 38 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts index ac77cd5c6aa..e278fc54d2c 100644 --- a/target/linux/ramips/dts/PBR-M1.dts +++ b/target/linux/ramips/dts/PBR-M1.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "PBR-M1"; @@ -65,7 +67,7 @@ reset { label = "reset"; gpios = <&gpio0 18 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/PSG1208.dts b/target/linux/ramips/dts/PSG1208.dts index dc1adc4c731..e9b66395dff 100644 --- a/target/linux/ramips/dts/PSG1208.dts +++ b/target/linux/ramips/dts/PSG1208.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "PSG1208", "ralink,mt7620a-soc"; model = "Phicomm PSG1208"; @@ -29,7 +31,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/PSG1218.dts b/target/linux/ramips/dts/PSG1218.dts index 6fdb67869a4..b777c9b1f28 100644 --- a/target/linux/ramips/dts/PSG1218.dts +++ b/target/linux/ramips/dts/PSG1218.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "PSG1218", "ralink,mt7620a-soc"; model = "Phicomm PSG1218"; @@ -34,7 +36,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index c4c4522afc5..f749a4e5899 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "PSR-680W", "ralink,rt3052-soc"; model = "Petatel PSR-680W Wireless 3G Router"; @@ -60,7 +62,7 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/PWH2004.dts b/target/linux/ramips/dts/PWH2004.dts index 51f43928f46..18ee7426f41 100644 --- a/target/linux/ramips/dts/PWH2004.dts +++ b/target/linux/ramips/dts/PWH2004.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "PWH2004", "ralink,rt3052-soc"; model = "Prolink PWH2004"; @@ -61,7 +63,7 @@ wps { label = "wps"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/PX-4885.dtsi b/target/linux/ramips/dts/PX-4885.dtsi index b135b5747b5..257a636412b 100644 --- a/target/linux/ramips/dts/PX-4885.dtsi +++ b/target/linux/ramips/dts/PX-4885.dtsi @@ -1,5 +1,7 @@ #include "rt5350.dtsi" +#include + / { compatible = "PX-4885", "ralink,rt5350-soc"; model = "7Links PX-4885"; @@ -13,7 +15,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/RE6500.dts b/target/linux/ramips/dts/RE6500.dts index 39205c41acf..d34e857e61e 100644 --- a/target/linux/ramips/dts/RE6500.dts +++ b/target/linux/ramips/dts/RE6500.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "Linksys RE6500"; @@ -38,13 +40,13 @@ wps { label = "wps"; gpios = <&gpio0 10 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 11 0>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/RP-N53.dts b/target/linux/ramips/dts/RP-N53.dts index c661be3a28c..514481b3821 100644 --- a/target/linux/ramips/dts/RP-N53.dts +++ b/target/linux/ramips/dts/RP-N53.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "asus,rp-n53", "ralink,mt7620a-soc"; model = "Asus RP-N53"; @@ -15,25 +17,25 @@ touch { label = "touch"; gpios = <&gpio1 0 1>; - linux,code = <0x100>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio1 1 1>; - linux,code = <0x100>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio1 2 1>; - linux,code = <0x100>; + linux,code = ; }; audio { label = "audio"; gpios = <&gpio1 3 0>; - linux,code = <0x101>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/RT-G32-B1.dts b/target/linux/ramips/dts/RT-G32-B1.dts index ab8e3fdad3c..d392bb3545a 100644 --- a/target/linux/ramips/dts/RT-G32-B1.dts +++ b/target/linux/ramips/dts/RT-G32-B1.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "RT-G32-B1", "ralink,rt3050-soc"; model = "Asus RT-G32 B1"; @@ -15,13 +17,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/RT-N10-PLUS.dts b/target/linux/ramips/dts/RT-N10-PLUS.dts index 43535d417bf..cb5a13618d5 100644 --- a/target/linux/ramips/dts/RT-N10-PLUS.dts +++ b/target/linux/ramips/dts/RT-N10-PLUS.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "RT-N10-PLUS", "ralink,rt3050-soc"; model = "Asus RT-N10+"; @@ -56,13 +58,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/RT-N13U.dts b/target/linux/ramips/dts/RT-N13U.dts index 14cff67855a..9625415b73e 100644 --- a/target/linux/ramips/dts/RT-N13U.dts +++ b/target/linux/ramips/dts/RT-N13U.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "RT-N13U", "ralink,rt3052-soc"; model = "Asus RT-N13U"; @@ -61,13 +63,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/RT-N14U.dts b/target/linux/ramips/dts/RT-N14U.dts index 05263e165d6..22dd7b818b9 100644 --- a/target/linux/ramips/dts/RT-N14U.dts +++ b/target/linux/ramips/dts/RT-N14U.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "asus,rt-n14u", "ralink,mt7620n-soc"; model = "Asus RT-N14U"; @@ -44,13 +46,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/RT-N15.dts b/target/linux/ramips/dts/RT-N15.dts index d5bcbe3409e..704d3130c84 100644 --- a/target/linux/ramips/dts/RT-N15.dts +++ b/target/linux/ramips/dts/RT-N15.dts @@ -2,6 +2,8 @@ #include "rt2880.dtsi" +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -55,13 +57,13 @@ wps { label = "wps"; gpios = <&gpio0 0 0>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 12 0>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/RT-N56U.dts b/target/linux/ramips/dts/RT-N56U.dts index fea73e27e72..d101ece83c9 100644 --- a/target/linux/ramips/dts/RT-N56U.dts +++ b/target/linux/ramips/dts/RT-N56U.dts @@ -2,6 +2,8 @@ #include "rt3883.dtsi" +#include + / { compatible = "RT-N56U", "ralink,rt3883-soc"; model = "Asus RT-N56U"; @@ -53,13 +55,13 @@ reset { label = "reset"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio1 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/RUT5XX.dts b/target/linux/ramips/dts/RUT5XX.dts index 85c26d96bee..76cf49bab2f 100644 --- a/target/linux/ramips/dts/RUT5XX.dts +++ b/target/linux/ramips/dts/RUT5XX.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "RUT5XX", "ralink,rt3050-soc"; model = "Teltonika RUT5XX"; @@ -24,7 +26,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/SAP-G3200U3.dts b/target/linux/ramips/dts/SAP-G3200U3.dts index d6f2f305766..9069f7cff23 100644 --- a/target/linux/ramips/dts/SAP-G3200U3.dts +++ b/target/linux/ramips/dts/SAP-G3200U3.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "STORYLiNK SAP-G3200U3"; @@ -33,13 +35,13 @@ reset { label = "reset"; gpios = <&gpio0 16 1>; - linux,code = <0x198>; + linux,code = ; }; rfkill { label = "rfkill"; gpios = <&gpio0 14 1>; - linux,code = <0xf7>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/SK-WB8.dts b/target/linux/ramips/dts/SK-WB8.dts index 1fed89e11e4..b50de555dc7 100644 --- a/target/linux/ramips/dts/SK-WB8.dts +++ b/target/linux/ramips/dts/SK-WB8.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "SamKnows Whitebox 8"; @@ -37,12 +39,12 @@ wps { label = "wps"; gpios = <&gpio1 11 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio1 9 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/SL-R7205.dts b/target/linux/ramips/dts/SL-R7205.dts index f5884fbecd8..7b6dc990e22 100644 --- a/target/linux/ramips/dts/SL-R7205.dts +++ b/target/linux/ramips/dts/SL-R7205.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "SL-R7205", "ralink,rt3052-soc"; model = "Skyline SL-R7205 Wireless 3G Router"; @@ -56,13 +58,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/TEW-691GR.dts b/target/linux/ramips/dts/TEW-691GR.dts index e92db1ecb29..af910798f5b 100644 --- a/target/linux/ramips/dts/TEW-691GR.dts +++ b/target/linux/ramips/dts/TEW-691GR.dts @@ -2,6 +2,8 @@ #include "rt3883.dtsi" +#include + / { compatible = "TEW-691GR", "ralink,rt3883-soc"; model = "TRENDnet TEW-691GR"; @@ -46,19 +48,19 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio1 2 1>; - linux,code = <0x211>; + linux,code = ; }; rfkill { label = "rfkill"; gpios = <&gpio0 0 1>; - linux,code = <0xf7>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/TEW-692GR.dts b/target/linux/ramips/dts/TEW-692GR.dts index 2c9313f2002..b9c7006406e 100644 --- a/target/linux/ramips/dts/TEW-692GR.dts +++ b/target/linux/ramips/dts/TEW-692GR.dts @@ -2,6 +2,8 @@ #include "rt3883.dtsi" +#include + / { compatible = "TEW-692GR", "ralink,rt3883-soc"; model = "TRENDnet TEW-692GR"; @@ -46,13 +48,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio1 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/TEW-714TRU.dts b/target/linux/ramips/dts/TEW-714TRU.dts index 0e0f066518d..79b30d1bfdc 100644 --- a/target/linux/ramips/dts/TEW-714TRU.dts +++ b/target/linux/ramips/dts/TEW-714TRU.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "TEW-714TRU", "ralink,rt5350-soc"; model = "TRENDnet TEW714TRU"; @@ -29,13 +31,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/TINY-AC.dts b/target/linux/ramips/dts/TINY-AC.dts index 81f1adee87f..356c44d5118 100644 --- a/target/linux/ramips/dts/TINY-AC.dts +++ b/target/linux/ramips/dts/TINY-AC.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "TINY-AC", "ralink,mt7620a-soc"; model = "Dovado Tiny AC"; @@ -34,7 +36,7 @@ reset { label = "reset"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/Timecloud.dts b/target/linux/ramips/dts/Timecloud.dts index 8ee312cd866..2d60324f246 100644 --- a/target/linux/ramips/dts/Timecloud.dts +++ b/target/linux/ramips/dts/Timecloud.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "Thunder Timecloud"; @@ -39,13 +41,13 @@ reset { label = "reset"; gpios = <&gpio0 13 1>; - linux,code = <0x198>; + linux,code = ; }; BTN_0 { label = "BTN_0"; gpios = <&gpio0 4 1>; - linux,code = <0x100>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/UR-326N4G.dts b/target/linux/ramips/dts/UR-326N4G.dts index d90d77c0611..6ca1aa9f62d 100644 --- a/target/linux/ramips/dts/UR-326N4G.dts +++ b/target/linux/ramips/dts/UR-326N4G.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "UR-326N4G", "ralink,rt3052-soc"; model = "UPVEL UR-326N4G"; @@ -76,13 +78,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 7 1>; - linux,code = <0x32>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/UR-336UN.dts b/target/linux/ramips/dts/UR-336UN.dts index e0325a7c567..fa753047e89 100644 --- a/target/linux/ramips/dts/UR-336UN.dts +++ b/target/linux/ramips/dts/UR-336UN.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "UR-336UN", "ralink,rt3052-soc"; model = "UPVEL UR-336UN"; @@ -53,13 +55,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 7 1>; - linux,code = <0x32>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/V11STFE.dts b/target/linux/ramips/dts/V11STFE.dts index 6f7a5cbdfd6..c4867d8f1c3 100644 --- a/target/linux/ramips/dts/V11STFE.dts +++ b/target/linux/ramips/dts/V11STFE.dts @@ -2,6 +2,8 @@ #include "rt2880.dtsi" +#include + / { compatible = "V11ST-FE", "ralink,rt2880-soc"; model = "Ralink V11ST-FE"; @@ -56,7 +58,7 @@ wps { label = "wps"; gpios = <&gpio0 0 0>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/V22RW-2X2.dts b/target/linux/ramips/dts/V22RW-2X2.dts index 602e170e607..29d14c2e5fe 100644 --- a/target/linux/ramips/dts/V22RW-2X2.dts +++ b/target/linux/ramips/dts/V22RW-2X2.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "V22RW-2X2", "ralink,rt3052-soc"; model = "Ralink AP-RT3052-V22RW-2X2"; @@ -61,13 +63,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/VR500.dts b/target/linux/ramips/dts/VR500.dts index 3cddce6fbe7..8b5d98fa697 100644 --- a/target/linux/ramips/dts/VR500.dts +++ b/target/linux/ramips/dts/VR500.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc"; model = "Planex VR500"; @@ -33,7 +35,7 @@ reset { label = "reset"; gpios = <&gpio1 15 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/W150M.dts b/target/linux/ramips/dts/W150M.dts index 679db60af4a..9ac84a0f4b7 100644 --- a/target/linux/ramips/dts/W150M.dts +++ b/target/linux/ramips/dts/W150M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "W150M", "ralink,rt3050-soc"; model = "Tenda W150M"; @@ -81,13 +83,13 @@ reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 10 1>; - linux,code = <0x100>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/W306R_V20.dts b/target/linux/ramips/dts/W306R_V20.dts index 79ae23dd632..ff5ca59ad6d 100644 --- a/target/linux/ramips/dts/W306R_V20.dts +++ b/target/linux/ramips/dts/W306R_V20.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "W306R_V20", "ralink,rt3052-soc"; model = "Tenda W306R V2.0"; @@ -61,7 +63,7 @@ reset { label = "RESET/WPS"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/W502U.dts b/target/linux/ramips/dts/W502U.dts index 739817022b4..1de6ffa3370 100644 --- a/target/linux/ramips/dts/W502U.dts +++ b/target/linux/ramips/dts/W502U.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "W502U", "ralink,rt3052-soc"; model = "ALFA Networks W502U"; @@ -65,13 +67,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WCR150GN.dts b/target/linux/ramips/dts/WCR150GN.dts index 541836b2185..b47dd8b4afe 100644 --- a/target/linux/ramips/dts/WCR150GN.dts +++ b/target/linux/ramips/dts/WCR150GN.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WCR150GN", "ralink,rt3050-soc"; model = "Sparklan WCR-150GN"; @@ -61,13 +63,13 @@ wps { label = "wps"; gpios = <&gpio0 10 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WF-2881.dts b/target/linux/ramips/dts/WF-2881.dts index 050bc2e7ccb..2cad0ec3445 100644 --- a/target/linux/ramips/dts/WF-2881.dts +++ b/target/linux/ramips/dts/WF-2881.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "NETIS WF-2881"; @@ -71,7 +73,7 @@ reset { label = "reset"; gpios = <&gpio0 12 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WHR-1166D.dts b/target/linux/ramips/dts/WHR-1166D.dts index fd2e451c377..c3b85da2b34 100644 --- a/target/linux/ramips/dts/WHR-1166D.dts +++ b/target/linux/ramips/dts/WHR-1166D.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Buffalo WHR-1166D"; @@ -54,27 +56,27 @@ reset { label = "reset"; gpios = <&gpio2 12 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio2 13 1>; - linux,code = <0x211>; + linux,code = ; }; ap { label = "ap"; gpios = <&gpio2 14 1>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; bridge { label = "bridge"; gpios = <&gpio2 15 1>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; }; }; diff --git a/target/linux/ramips/dts/WHR-300HP2.dts b/target/linux/ramips/dts/WHR-300HP2.dts index acd4ce47e54..39582170827 100644 --- a/target/linux/ramips/dts/WHR-300HP2.dts +++ b/target/linux/ramips/dts/WHR-300HP2.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Buffalo WHR-300HP2"; @@ -54,27 +56,27 @@ reset { label = "reset"; gpios = <&gpio2 12 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio2 13 1>; - linux,code = <0x211>; + linux,code = ; }; ap { label = "ap"; gpios = <&gpio2 14 1>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; bridge { label = "bridge"; gpios = <&gpio2 15 1>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; }; }; diff --git a/target/linux/ramips/dts/WHR-600D.dts b/target/linux/ramips/dts/WHR-600D.dts index c0633559b6a..bea67a9a901 100644 --- a/target/linux/ramips/dts/WHR-600D.dts +++ b/target/linux/ramips/dts/WHR-600D.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ralink,mt7620a-soc"; model = "Buffalo WHR-600D"; @@ -54,27 +56,27 @@ reset { label = "reset"; gpios = <&gpio2 12 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio2 13 1>; - linux,code = <0x211>; + linux,code = ; }; ap { label = "ap"; gpios = <&gpio2 14 1>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; bridge { label = "bridge"; gpios = <&gpio2 15 1>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; }; }; diff --git a/target/linux/ramips/dts/WHR-G300N.dts b/target/linux/ramips/dts/WHR-G300N.dts index 4f80f2db1a3..c0779e25bdd 100644 --- a/target/linux/ramips/dts/WHR-G300N.dts +++ b/target/linux/ramips/dts/WHR-G300N.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WHR-G300N", "ralink,rt3052-soc"; model = "Buffalo WHR-G300N"; @@ -43,25 +45,25 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; router-off { label = "router-off"; gpios = <&gpio0 11 1>; - linux,code = <0x102>; + linux,code = ; }; router-on { label = "router-on"; gpios = <&gpio0 8 1>; - linux,code = <0x103>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WIDORA-NEO.dts b/target/linux/ramips/dts/WIDORA-NEO.dts index 406b5ca099a..f6b8f1d52c1 100644 --- a/target/linux/ramips/dts/WIDORA-NEO.dts +++ b/target/linux/ramips/dts/WIDORA-NEO.dts @@ -2,6 +2,8 @@ #include "mt7628an.dtsi" +#include + / { compatible = "mediatek,widora-neo", "mediatek,mt7628an-soc"; model = "Widora-NEO"; @@ -34,7 +36,7 @@ wps { label = "reset"; gpios = <&gpio1 6 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/WITI.dts b/target/linux/ramips/dts/WITI.dts index bffd4ff7a99..a82a49521ba 100644 --- a/target/linux/ramips/dts/WITI.dts +++ b/target/linux/ramips/dts/WITI.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "MQmaker WiTi"; @@ -36,7 +38,7 @@ reset { label = "reset"; gpios = <&gpio0 18 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WIZFI630A.dts b/target/linux/ramips/dts/WIZFI630A.dts index 0f7ede54dfd..78891c24b6d 100644 --- a/target/linux/ramips/dts/WIZFI630A.dts +++ b/target/linux/ramips/dts/WIZFI630A.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "wizfi630a", "ralink,rt5350-soc"; model = "WIZnet WizFi630A"; @@ -48,25 +50,25 @@ reset { label = "reset"; gpios = <&gpio0 17 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; scm1 { label = "SCM1"; gpios = <&gpio0 19 1>; - linux,code = <0x100>; + linux,code = ; }; scm2 { label = "SCM2"; gpios = <&gpio0 2 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WL-330N.dts b/target/linux/ramips/dts/WL-330N.dts index d3cd74b2ab3..1cf1712dfa1 100644 --- a/target/linux/ramips/dts/WL-330N.dts +++ b/target/linux/ramips/dts/WL-330N.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WL-330N", "ralink,rt3050-soc"; model = "Asus WL-330N"; @@ -29,13 +31,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WL-330N3G.dts b/target/linux/ramips/dts/WL-330N3G.dts index 9290673419d..fe703ba5b3f 100644 --- a/target/linux/ramips/dts/WL-330N3G.dts +++ b/target/linux/ramips/dts/WL-330N3G.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WL-330N3G", "ralink,rt3050-soc"; model = "Asus WL-330N3G"; @@ -34,13 +36,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WL-341V3.dts b/target/linux/ramips/dts/WL-341V3.dts index 5f9e1dd9246..e8b6d689de4 100644 --- a/target/linux/ramips/dts/WL-341V3.dts +++ b/target/linux/ramips/dts/WL-341V3.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WL-341V3", "ralink,rt3052-soc"; model = "Sitecom WL-341 v3"; @@ -86,13 +88,13 @@ reset { label = "reset"; gpios = <&gpio0 7 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 5 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WL-351.dts b/target/linux/ramips/dts/WL-351.dts index 541f8cef992..91e71c657a6 100644 --- a/target/linux/ramips/dts/WL-351.dts +++ b/target/linux/ramips/dts/WL-351.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WL-351", "ralink,rt3052-soc"; model = "Sitecom WL-351 v1 002"; @@ -66,13 +68,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/WLI-TX4-AG300N.dts b/target/linux/ramips/dts/WLI-TX4-AG300N.dts index 70521a71edb..9d9b222bd7a 100644 --- a/target/linux/ramips/dts/WLI-TX4-AG300N.dts +++ b/target/linux/ramips/dts/WLI-TX4-AG300N.dts @@ -2,6 +2,8 @@ #include "rt2880.dtsi" +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -49,19 +51,19 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; bandwidth { label = "bandwidth"; gpios = <&gpio0 8 0>; - linux,code = <0x198>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 9 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/WMR-300.dts b/target/linux/ramips/dts/WMR-300.dts index 02fbdc598a5..faa867b723d 100644 --- a/target/linux/ramips/dts/WMR-300.dts +++ b/target/linux/ramips/dts/WMR-300.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "buffalo,wmr-300", "ralink,mt7620n-soc"; model = "Buffalo WMR-300"; @@ -34,13 +36,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio0 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WNCE2001.dts b/target/linux/ramips/dts/WNCE2001.dts index 2dc39ce142a..92d03defdce 100644 --- a/target/linux/ramips/dts/WNCE2001.dts +++ b/target/linux/ramips/dts/WNCE2001.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WNCE2001", "ralink,rt3052-soc"; model = "Netgear WNCE2001"; @@ -43,25 +45,25 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; rt { label = "rt"; gpios = <&gpio0 11 1>; - linux,code = <0x100>; + linux,code = ; }; ap { label = "ap"; gpios = <&gpio0 7 1>; - linux,code = <0x101>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts index 9d3d0d53968..f67c32030e5 100644 --- a/target/linux/ramips/dts/WNDR3700V5.dts +++ b/target/linux/ramips/dts/WNDR3700V5.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board","ralink,mt7621-soc"; model = "Netgear WNDR3700v5"; @@ -38,19 +40,19 @@ wps { label = "wndr3700v5:wps"; gpios = <&gpio0 7 0>; - linux,code = <0x211>; + linux,code = ; }; wifi { label = "wndr3700v5:wifi"; gpios = <&gpio0 8 0>; - linux,code = <0xf7>; + linux,code = ; }; reset { label = "wndr3700v5:reset"; gpios = <&gpio0 14 0>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/WR512-3GN-4M.dts b/target/linux/ramips/dts/WR512-3GN-4M.dts index 45e1463bf0f..09e448019a2 100644 --- a/target/linux/ramips/dts/WR512-3GN-4M.dts +++ b/target/linux/ramips/dts/WR512-3GN-4M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WR512-3GN", "ralink,rt3052-soc"; model = "WR512-3GN-like router"; @@ -76,13 +78,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 7 1>; - linux,code = <0x32>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WR512-3GN-8M.dts b/target/linux/ramips/dts/WR512-3GN-8M.dts index 7e9a0c25ed2..03583f99fe6 100644 --- a/target/linux/ramips/dts/WR512-3GN-8M.dts +++ b/target/linux/ramips/dts/WR512-3GN-8M.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WR512-3GN", "ralink,rt3052-soc"; model = "WR512-3GN-like router"; @@ -76,13 +78,13 @@ reset_wps { label = "reset_wps"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 7 1>; - linux,code = <0x32>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WR6202.dts b/target/linux/ramips/dts/WR6202.dts index 534d78d3fa0..1740b188fb4 100644 --- a/target/linux/ramips/dts/WR6202.dts +++ b/target/linux/ramips/dts/WR6202.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "WR6202", "ralink,rt3052-soc"; model = "AWB WR6202"; @@ -33,13 +35,13 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/WRH-300CR.dts b/target/linux/ramips/dts/WRH-300CR.dts index aece2e68847..f7ef9335f1c 100644 --- a/target/linux/ramips/dts/WRH-300CR.dts +++ b/target/linux/ramips/dts/WRH-300CR.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc"; model = "ELECOM WRH-300CR"; @@ -34,13 +36,13 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; wps { label = "wps"; gpios = <&gpio0 2 1>; - linux,code = <0x211>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WRTNODE2.dtsi b/target/linux/ramips/dts/WRTNODE2.dtsi index 0242314dfb2..294616c0f78 100644 --- a/target/linux/ramips/dts/WRTNODE2.dtsi +++ b/target/linux/ramips/dts/WRTNODE2.dtsi @@ -1,5 +1,7 @@ #include "mt7628an.dtsi" +#include + / { chosen { bootargs = "console=ttyS0,115200"; @@ -14,7 +16,7 @@ reset { label = "reset"; gpios = <&gpio0 5 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/WSR-1166.dts b/target/linux/ramips/dts/WSR-1166.dts index 8f9991f4a7f..97a4304a739 100644 --- a/target/linux/ramips/dts/WSR-1166.dts +++ b/target/linux/ramips/dts/WSR-1166.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc"; model = "Buffalo WSR-1166DHP"; @@ -68,40 +70,40 @@ power { label = "power"; gpios = <&gpio0 18 1>; - linux,code = <0x74>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 3 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio0 6 1>; - linux,code = <0x211>; + linux,code = ; }; auto { label = "mode"; gpios = <&gpio0 7 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; ap { label = "ap"; gpios = <&gpio0 10 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; router { label = "router"; gpios = <&gpio0 12 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; }; diff --git a/target/linux/ramips/dts/WSR-600.dts b/target/linux/ramips/dts/WSR-600.dts index 2d08b9369be..43f63f6fadd 100644 --- a/target/linux/ramips/dts/WSR-600.dts +++ b/target/linux/ramips/dts/WSR-600.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc"; model = "Buffalo WSR-600DHP"; @@ -68,40 +70,40 @@ power { label = "power"; gpios = <&gpio0 8 1>; - linux,code = <0x74>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 11 1>; - linux,code = <0x198>; + linux,code = ; }; aoss { label = "aoss"; gpios = <&gpio0 18 1>; - linux,code = <0x211>; + linux,code = ; }; auto { label = "mode"; gpios = <&gpio0 7 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; ap { label = "ap"; gpios = <&gpio0 6 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; router { label = "router"; gpios = <&gpio0 10 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + linux,code = ; + linux,input-type = ; }; }; diff --git a/target/linux/ramips/dts/WT3020-4M.dts b/target/linux/ramips/dts/WT3020-4M.dts index f611cdfce9a..368a24619c6 100644 --- a/target/linux/ramips/dts/WT3020-4M.dts +++ b/target/linux/ramips/dts/WT3020-4M.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "wt3020", "ralink,mt7620n-soc"; model = "Nexx WT3020"; @@ -15,7 +17,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/WT3020-8M.dts b/target/linux/ramips/dts/WT3020-8M.dts index 3c6230726c5..0e15d031f57 100644 --- a/target/linux/ramips/dts/WT3020-8M.dts +++ b/target/linux/ramips/dts/WT3020-8M.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "wt3020", "ralink,mt7620n-soc"; model = "Nexx WT3020"; @@ -15,7 +17,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/WZR-AGL300NH.dts b/target/linux/ramips/dts/WZR-AGL300NH.dts index 23fba7cb8fd..0f2a73a48ac 100644 --- a/target/linux/ramips/dts/WZR-AGL300NH.dts +++ b/target/linux/ramips/dts/WZR-AGL300NH.dts @@ -2,6 +2,8 @@ #include "rt2880.dtsi" +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -63,19 +65,19 @@ wps { label = "wps"; gpios = <&gpio0 0 1>; - linux,code = <0x211>; + linux,code = ; }; router { label = "router_switch"; gpios = <&gpio0 7 0>; - linux,code = <0x100>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 9 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts index 86f5c635f1a..efb9d77d710 100644 --- a/target/linux/ramips/dts/X5.dts +++ b/target/linux/ramips/dts/X5.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "X5", "ralink,rt5350-soc"; model = "Poray X5"; @@ -39,20 +41,20 @@ bat { label = "bat"; gpios = <&gpio0 9 1>; - linux,code = <0x211>; + linux,code = ; }; reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; mode { label = "mode"; gpios = <&gpio0 14 1>; - linux,code = <0x100>; - linux,input-type = <5>; + linux,code = ; + linux,input-type = ; }; }; diff --git a/target/linux/ramips/dts/X8.dts b/target/linux/ramips/dts/X8.dts index 733bbb55d49..db8eec56c5a 100644 --- a/target/linux/ramips/dts/X8.dts +++ b/target/linux/ramips/dts/X8.dts @@ -2,6 +2,8 @@ #include "rt5350.dtsi" +#include + / { compatible = "X8", "ralink,rt5350-soc"; model = "Poray X8"; @@ -24,7 +26,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/XDXRN502J.dts b/target/linux/ramips/dts/XDXRN502J.dts index 34a29cc74b9..304da9cf6e9 100644 --- a/target/linux/ramips/dts/XDXRN502J.dts +++ b/target/linux/ramips/dts/XDXRN502J.dts @@ -2,6 +2,8 @@ #include "rt3050.dtsi" +#include + / { compatible = "XDXRN502J", "ralink,rt3052-soc"; model = "XDX RN502J"; @@ -61,7 +63,7 @@ reset { label = "reset"; gpios = <&gpio0 10 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/Y1.dtsi b/target/linux/ramips/dts/Y1.dtsi index 201f48b6261..1d5f1ef0743 100644 --- a/target/linux/ramips/dts/Y1.dtsi +++ b/target/linux/ramips/dts/Y1.dtsi @@ -1,5 +1,7 @@ #include "mt7620a.dtsi" +#include + / { chosen { bootargs = "console=ttyS0,115200"; @@ -14,7 +16,7 @@ reset { label = "reset"; gpios = <&gpio0 11 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/YOUKU-YK1.dts b/target/linux/ramips/dts/YOUKU-YK1.dts index a9c13e50b66..1746f6c674a 100644 --- a/target/linux/ramips/dts/YOUKU-YK1.dts +++ b/target/linux/ramips/dts/YOUKU-YK1.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "YOUKU-YK1", "ralink,mt7620a-soc"; model = "YOUKU YK1"; @@ -34,7 +36,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-APE522II.dts b/target/linux/ramips/dts/ZBT-APE522II.dts index eff27c2a159..f5701299777 100644 --- a/target/linux/ramips/dts/ZBT-APE522II.dts +++ b/target/linux/ramips/dts/ZBT-APE522II.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc"; model = "ZBT-APE522II"; @@ -48,7 +50,7 @@ reset { label = "reset"; gpios = <&gpio0 2 0>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-CPE102.dts b/target/linux/ramips/dts/ZBT-CPE102.dts index b93e58526a1..abfe0c0229e 100644 --- a/target/linux/ramips/dts/ZBT-CPE102.dts +++ b/target/linux/ramips/dts/ZBT-CPE102.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "zbtlink,zbt-cpe102", "ralink,mt7620n-soc"; model = "Zbtlink ZBT-CPE102"; @@ -38,7 +40,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-WA05.dts b/target/linux/ramips/dts/ZBT-WA05.dts index c2d51c300ac..43f08f51390 100644 --- a/target/linux/ramips/dts/ZBT-WA05.dts +++ b/target/linux/ramips/dts/ZBT-WA05.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc"; model = "Zbtlink ZBT-WA05"; @@ -38,7 +40,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-WE826.dts b/target/linux/ramips/dts/ZBT-WE826.dts index 75c99a7fdc5..1eb03189d1f 100644 --- a/target/linux/ramips/dts/ZBT-WE826.dts +++ b/target/linux/ramips/dts/ZBT-WE826.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc"; model = "ZBT-WE826"; @@ -34,7 +36,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ZBT-WG2626.dts b/target/linux/ramips/dts/ZBT-WG2626.dts index b599d7b49bd..e926514f7b2 100644 --- a/target/linux/ramips/dts/ZBT-WG2626.dts +++ b/target/linux/ramips/dts/ZBT-WG2626.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "ZBT-WG2626"; @@ -30,7 +32,7 @@ reset { label = "reset"; gpios = <&gpio0 18 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/ZBT-WG3526.dts b/target/linux/ramips/dts/ZBT-WG3526.dts index 538a7d86326..4c15f41ca52 100644 --- a/target/linux/ramips/dts/ZBT-WG3526.dts +++ b/target/linux/ramips/dts/ZBT-WG3526.dts @@ -2,6 +2,8 @@ #include "mt7621.dtsi" +#include + / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; model = "ZBT-WG3526"; @@ -30,7 +32,7 @@ reset { label = "reset"; gpios = <&gpio0 18 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/ramips/dts/ZBT-WR8305RT.dts b/target/linux/ramips/dts/ZBT-WR8305RT.dts index 694b7cfa962..edc820f790f 100644 --- a/target/linux/ramips/dts/ZBT-WR8305RT.dts +++ b/target/linux/ramips/dts/ZBT-WR8305RT.dts @@ -2,6 +2,8 @@ #include "mt7620n.dtsi" +#include + / { compatible = "zbtlink,zbt-wr8305rt", "ralink,mt7620n-soc"; model = "Zbtlink ZBT-WR8305RT"; @@ -34,7 +36,7 @@ reset { label = "reset"; gpios = <&gpio0 1 1>; - linux,code = <0x198>; + linux,code = ; }; }; }; diff --git a/target/linux/ramips/dts/ZTE-Q7.dts b/target/linux/ramips/dts/ZTE-Q7.dts index 2c4c2e57121..44bed871aa5 100644 --- a/target/linux/ramips/dts/ZTE-Q7.dts +++ b/target/linux/ramips/dts/ZTE-Q7.dts @@ -2,6 +2,8 @@ #include "mt7620a.dtsi" +#include + / { compatible = "ZTE-Q7", "ralink,mt7620a-soc"; model = "ZTE Q7"; @@ -29,7 +31,7 @@ reset { label = "reset"; gpios = <&gpio1 2 1>; - linux,code = <0x198>; + linux,code = ; }; }; };