ramips: update device tree source files
authorL. D. Pinney <ldpinney@gmail.com>
Sat, 29 Jul 2017 02:14:07 +0000 (10:14 +0800)
committerMathias Kresin <dev@kresin.me>
Thu, 3 Aug 2017 17:37:40 +0000 (19:37 +0200)
Use the GPIO dt-bindings macros and add compatible strings in the
ramips device tree source files.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
213 files changed:
target/linux/ramips/dts/3G-6200N.dts
target/linux/ramips/dts/3G-6200NL.dts
target/linux/ramips/dts/3G150B.dts
target/linux/ramips/dts/3G300M.dts
target/linux/ramips/dts/A5-V11.dts
target/linux/ramips/dts/AI-BR100.dts
target/linux/ramips/dts/AIR3GII.dts
target/linux/ramips/dts/ALL0239-3G.dts
target/linux/ramips/dts/ALL0256N-4M.dts
target/linux/ramips/dts/ALL0256N-8M.dts
target/linux/ramips/dts/ALL5002.dts
target/linux/ramips/dts/ALL5003.dts
target/linux/ramips/dts/AR670W.dts
target/linux/ramips/dts/AR725W.dts
target/linux/ramips/dts/ASL26555-16M.dts
target/linux/ramips/dts/ASL26555-8M.dts
target/linux/ramips/dts/ATP-52B.dts
target/linux/ramips/dts/AWAPN2403.dts
target/linux/ramips/dts/AWM002-EVB.dtsi
target/linux/ramips/dts/ArcherC20i.dts
target/linux/ramips/dts/ArcherC50.dts
target/linux/ramips/dts/ArcherMR200.dts
target/linux/ramips/dts/BC2.dts
target/linux/ramips/dts/BR-6475ND.dts
target/linux/ramips/dts/BROADWAY.dts
target/linux/ramips/dts/CARAMBOLA.dts
target/linux/ramips/dts/CF-WR800N.dts
target/linux/ramips/dts/CS-QR10.dts
target/linux/ramips/dts/CY-SWR1100.dts
target/linux/ramips/dts/D105.dts
target/linux/ramips/dts/D240.dts
target/linux/ramips/dts/DAP-1350.dts
target/linux/ramips/dts/DB-WRT01.dts
target/linux/ramips/dts/DCH-M225.dts
target/linux/ramips/dts/DCS-930.dts
target/linux/ramips/dts/DCS-930L-B1.dts
target/linux/ramips/dts/DIR-300-B1.dts
target/linux/ramips/dts/DIR-300-B7.dts
target/linux/ramips/dts/DIR-320-B1.dts
target/linux/ramips/dts/DIR-600-B1.dts
target/linux/ramips/dts/DIR-610-A1.dts
target/linux/ramips/dts/DIR-615-D.dts
target/linux/ramips/dts/DIR-615-H1.dts
target/linux/ramips/dts/DIR-620-A1.dts
target/linux/ramips/dts/DIR-620-D1.dts
target/linux/ramips/dts/DIR-645.dts
target/linux/ramips/dts/DIR-810L.dts
target/linux/ramips/dts/DIR-860L-B1.dts
target/linux/ramips/dts/DUZUN-DM06.dts
target/linux/ramips/dts/DWR-512-B.dts
target/linux/ramips/dts/E1700.dts
target/linux/ramips/dts/ESR-9753.dts
target/linux/ramips/dts/EW1200.dts
target/linux/ramips/dts/EX2700.dts
target/linux/ramips/dts/EX3700.dts
target/linux/ramips/dts/F5D8235_V1.dts
target/linux/ramips/dts/F5D8235_V2.dts
target/linux/ramips/dts/F7C027.dts
target/linux/ramips/dts/FIREWRT.dts
target/linux/ramips/dts/FONERA20N.dts
target/linux/ramips/dts/FREESTATION5.dts
target/linux/ramips/dts/GL-MT300A.dts
target/linux/ramips/dts/GL-MT300N-V2.dts
target/linux/ramips/dts/GL-MT300N.dts
target/linux/ramips/dts/GL-MT750.dts
target/linux/ramips/dts/HC5661.dts
target/linux/ramips/dts/HC5661A.dts
target/linux/ramips/dts/HC5761.dts
target/linux/ramips/dts/HC5861.dts
target/linux/ramips/dts/HC5X61.dtsi [new file with mode: 0644]
target/linux/ramips/dts/HC5XXX.dtsi [deleted file]
target/linux/ramips/dts/HG255D.dts
target/linux/ramips/dts/HLKRM04.dts
target/linux/ramips/dts/HPM.dts
target/linux/ramips/dts/HT-TM02.dts
target/linux/ramips/dts/HW550-3G.dts
target/linux/ramips/dts/IP2202.dts
target/linux/ramips/dts/JHR-N805R.dts
target/linux/ramips/dts/JHR-N825R.dts
target/linux/ramips/dts/JHR-N926R.dts
target/linux/ramips/dts/LINKIT7688.dts
target/linux/ramips/dts/M2M.dts
target/linux/ramips/dts/M3.dts
target/linux/ramips/dts/M4-4M.dts
target/linux/ramips/dts/M4-8M.dts
target/linux/ramips/dts/MAC1200RV2.dts
target/linux/ramips/dts/MINIEMBPLUG.dts
target/linux/ramips/dts/MINIEMBWIFI.dts
target/linux/ramips/dts/MIWIFI-MINI.dts
target/linux/ramips/dts/MIWIFI-NANO.dts
target/linux/ramips/dts/MLW221.dts
target/linux/ramips/dts/MLWG2.dts
target/linux/ramips/dts/MOFI3500-3GN.dts
target/linux/ramips/dts/MPRA1.dts
target/linux/ramips/dts/MPRA2.dts
target/linux/ramips/dts/MR-102N.dts
target/linux/ramips/dts/MT7620a.dts
target/linux/ramips/dts/MT7620a_MT7610e.dts
target/linux/ramips/dts/MT7620a_V22SG.dts
target/linux/ramips/dts/MZK-750DHP.dts
target/linux/ramips/dts/MZK-DP150N.dts
target/linux/ramips/dts/MZK-EX300NP.dts
target/linux/ramips/dts/MZK-EX750NP.dts
target/linux/ramips/dts/MZK-W300NH2.dts
target/linux/ramips/dts/MZK-WDPR.dts
target/linux/ramips/dts/MicroWRT.dts
target/linux/ramips/dts/NA930.dts
target/linux/ramips/dts/NBG-419N.dts
target/linux/ramips/dts/NBG-419N2.dts
target/linux/ramips/dts/NCS601W.dts
target/linux/ramips/dts/NIXCORE-16M.dts
target/linux/ramips/dts/NIXCORE-8M.dts
target/linux/ramips/dts/NIXCORE.dtsi
target/linux/ramips/dts/NW718.dts
target/linux/ramips/dts/Newifi-D1.dts
target/linux/ramips/dts/OY-0001.dts
target/linux/ramips/dts/PBR-D1.dts
target/linux/ramips/dts/PBR-M1.dts
target/linux/ramips/dts/PSG1208.dts
target/linux/ramips/dts/PSG1218.dtsi
target/linux/ramips/dts/PSG1218A.dts
target/linux/ramips/dts/PSG1218B.dts
target/linux/ramips/dts/PSR-680W.dts
target/linux/ramips/dts/PWH2004.dts
target/linux/ramips/dts/PX-4885-4M.dts
target/linux/ramips/dts/PX-4885-8M.dts
target/linux/ramips/dts/PX-4885.dtsi
target/linux/ramips/dts/RE6500.dts
target/linux/ramips/dts/RP-N53.dts
target/linux/ramips/dts/RT-G32-B1.dts
target/linux/ramips/dts/RT-N10-PLUS.dts
target/linux/ramips/dts/RT-N13U.dts
target/linux/ramips/dts/RT-N14U.dts
target/linux/ramips/dts/RT-N15.dts
target/linux/ramips/dts/RT-N56U.dts
target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts
target/linux/ramips/dts/RT5350F-OLINUXINO.dts
target/linux/ramips/dts/RUT5XX.dts
target/linux/ramips/dts/SAP-G3200U3.dts
target/linux/ramips/dts/SL-R7205.dts
target/linux/ramips/dts/TEW-691GR.dts
target/linux/ramips/dts/TEW-692GR.dts
target/linux/ramips/dts/TEW-714TRU.dts
target/linux/ramips/dts/TINY-AC.dts
target/linux/ramips/dts/Timecloud.dts
target/linux/ramips/dts/UR-326N4G.dts
target/linux/ramips/dts/UR-336UN.dts
target/linux/ramips/dts/V11STFE.dts
target/linux/ramips/dts/V22RW-2X2.dts
target/linux/ramips/dts/VOCORE-16M.dts
target/linux/ramips/dts/VOCORE-8M.dts
target/linux/ramips/dts/VOCORE.dtsi
target/linux/ramips/dts/VOCORE2.dts
target/linux/ramips/dts/VR500.dts
target/linux/ramips/dts/W150M.dts
target/linux/ramips/dts/W306R_V20.dts
target/linux/ramips/dts/W502U.dts
target/linux/ramips/dts/WCR150GN.dts
target/linux/ramips/dts/WF-2881.dts
target/linux/ramips/dts/WHR-1166D.dts
target/linux/ramips/dts/WHR-300HP2.dts
target/linux/ramips/dts/WHR-600D.dts
target/linux/ramips/dts/WHR-G300N.dts
target/linux/ramips/dts/WIDORA-NEO.dts
target/linux/ramips/dts/WITI.dts
target/linux/ramips/dts/WIZARD8800.dts
target/linux/ramips/dts/WIZFI630A.dts
target/linux/ramips/dts/WL-330N.dts
target/linux/ramips/dts/WL-330N3G.dts
target/linux/ramips/dts/WL-341V3.dts
target/linux/ramips/dts/WL-351.dts
target/linux/ramips/dts/WLI-TX4-AG300N.dts
target/linux/ramips/dts/WLR-6000.dts
target/linux/ramips/dts/WMR-300.dts
target/linux/ramips/dts/WN3000RPV3.dts
target/linux/ramips/dts/WNCE2001.dts
target/linux/ramips/dts/WNDR3700V5.dts
target/linux/ramips/dts/WR512-3GN-4M.dts
target/linux/ramips/dts/WR512-3GN-8M.dts
target/linux/ramips/dts/WR6202.dts
target/linux/ramips/dts/WRH-300CR.dts
target/linux/ramips/dts/WRTNODE.dts
target/linux/ramips/dts/WRTNODE2.dtsi
target/linux/ramips/dts/WRTNODE2P.dts
target/linux/ramips/dts/WRTNODE2R.dts
target/linux/ramips/dts/WSR-1166.dts
target/linux/ramips/dts/WSR-600.dts
target/linux/ramips/dts/WT1520-4M.dts
target/linux/ramips/dts/WT1520-8M.dts
target/linux/ramips/dts/WT1520.dtsi
target/linux/ramips/dts/WT3020-4M.dts
target/linux/ramips/dts/WT3020-8M.dts
target/linux/ramips/dts/WZR-AGL300NH.dts
target/linux/ramips/dts/X5.dts
target/linux/ramips/dts/X8.dts
target/linux/ramips/dts/XDXRN502J.dts
target/linux/ramips/dts/Y1.dts
target/linux/ramips/dts/Y1.dtsi
target/linux/ramips/dts/Y1S.dts
target/linux/ramips/dts/YOUKU-YK1.dts
target/linux/ramips/dts/ZBT-APE522II.dts
target/linux/ramips/dts/ZBT-CPE102.dts
target/linux/ramips/dts/ZBT-WA05.dts
target/linux/ramips/dts/ZBT-WE826-16M.dts
target/linux/ramips/dts/ZBT-WE826-32M.dts
target/linux/ramips/dts/ZBT-WE826.dtsi
target/linux/ramips/dts/ZBT-WG2626.dts
target/linux/ramips/dts/ZBT-WG3526.dtsi
target/linux/ramips/dts/ZBT-WR8305RT.dts
target/linux/ramips/dts/ZTE-Q7.dts
target/linux/ramips/dts/kn_rc.dts
target/linux/ramips/dts/kn_rf.dts
target/linux/ramips/dts/kng_rc.dts

index 502020e5d1b24bae51491549cf6da65f78e4ae3c..82cfaa800827adc0a3416abb5d9f0ecaa7722e41 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "3G-6200N", "ralink,rt3050-soc";
+       compatible = "edimax,3g-6200n", "ralink,rt3050-soc";
        model = "Edimax 3g-6200n";
 
        cfi@1f000000 {
 
                power {
                        label = "3g-6200n:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "3g-6200n:amber:wlan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "3g-6200n:blue:3g";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "wlanswitch";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index 111fef314ff55566265c387c40eacd133f390275..c95c5bf2da8bd3185293ef8561ad5cf526569a16 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "3G-6200NL", "ralink,rt3050-soc";
+       compatible = "edimax,3g-6200nl", "ralink,rt3050-soc";
        model = "Edimax 3g-6200nl";
 
        cfi@1f000000 {
 
                internet {
                        label = "3g-6200nl:green:internet";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "3g-6200nl:green:wlan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -68,7 +69,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index e242e3360ecc560a0bafb257afc0e1c13beea53e..afe9fafe9bea385769a43acadbbb93e980824c1c 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "3G150B", "ralink,rt5350-soc";
+       compatible = "tenda,3g150b", "ralink,rt5350-soc";
        model = "Tenda 3G150B";
 
        gpio-leds {
 
                ap {
                        label = "3g150b:blue:ap";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "3g150b:blue:3g";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -42,7 +43,7 @@
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 8ca8d1544674a47a6bdc95962845993cc434cc7e..eb1399529acd141cf80c6dd67a29f57315a4619b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "3G300M", "ralink,rt3052-soc";
+       compatible = "tenda,3g300m", "ralink,rt3052-soc";
        model = "Tenda 3G300M";
 
        gpio-leds {
 
                3grouter {
                        label = "3g300m:blue:3grouter";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                ap {
                        label = "3g300m:blue:ap";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wisprouter {
                        label = "3g300m:blue:wisprouter";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wirelessrouter {
                        label = "3g300m:blue:wirelessrouter";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "3g300m:blue:3g";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wpsreset {
                        label = "3g300m:blue:wpsreset";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index d755695de394c82d034c42e0083e36b7be7151b3..40b0b1c37aa2edc6c4d06a52c619443d3c48cef0 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "A5-V11", "ralink,rt5350-soc";
+       compatible = "unbranded,a5-v11", "ralink,rt5350-soc";
        model = "A5-V11";
 
        gpio-leds {
 
                system {
                        label = "a5-v11:blue:system";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "a5-v11:red:power";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                root_hub {
                        gpio-export,name = "root_hub";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index b21e4c25ca003a29e34abb994a5d3d06e44dec1b..687a78a10e84d27e862001719f2d699783af1f4c 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "AI-BR100", "ralink,mt7620a-soc";
+       compatible = "aigale,ai-br100", "ralink,mt7620a-soc";
        model = "Aigale Ai-BR100";
 
        gpio-leds {
 
                wan {
                        label = "ai-br100:blue:wan";
-                       gpios = <&gpio2 4 1>;
+                       gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "ai-br100:blue:wlan";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index e9c1434734c76913e9a5fc52bddd1cc329887dd5..042037559afbe8b8d81288acf945918567840e8b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "AIR3GII", "ralink,rt5350-soc";
+       compatible = "airlive,air3gii", "ralink,rt5350-soc";
        model = "AirLive Air3GII";
 
        gpio-leds {
 
                wlan {
                        label = "air3gii:green:wlan";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
                mobile {
                        label = "air3gii:green:mobile";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 7957bad2f9b9eadbc8c453ac6677c6441af5f679..f34567f286b697388b313c95f9fd1f7c0b051639 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ALL0239-3G", "ralink,rt3052-soc";
+       compatible = "allnet,all0239-3g", "ralink,rt3052-soc";
        model = "Allnet ALL0239-3G";
 
 
 
                usb {
                        label = "all0239-3g:green:usb";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "all0239-3g:green:3g";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "all0239-3g:green:status";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "all0239-3g:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                connect {
                        label = "connect";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_CONNECT>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index b4d421fc29b65bb765059582087107dca1ad54bc..2e1977c623d23485a7f05cc67f81604dda85c58e 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ALL0256N", "ralink,rt3050-soc";
+       compatible = "allnet,all0256n-4m", "allnet,all0256n", "ralink,rt3050-soc";
        model = "Allnet ALL0256N (4M)";
 
        gpio-leds {
 
                rssilow {
                        label = "all0256n:green:rssilow";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                rssimed {
                        label = "all0256n:green:rssimed";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                rssihigh {
                        label = "all0256n:green:rssihigh";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -35,7 +36,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 704e60625fb6975b73e4ef05e191f8e92cd577e0..a662abbb3f91e168c794b89ab5f8808f294f1ef4 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ALL0256N", "ralink,rt3050-soc";
+       compatible = "allnet,all0256n-8m", "allnet,all0256n", "ralink,rt3050-soc";
        model = "Allnet ALL0256N (8M)";
 
        gpio-leds {
 
                rssilow {
                        label = "all0256n:green:rssilow";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                rssimed {
                        label = "all0256n:green:rssimed";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                rssihigh {
                        label = "all0256n:green:rssihigh";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -35,7 +36,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index ddfe811d9d7d9070f64cdacf9cbcdd130b70ae01..73421f16283697c0596090023ee3c66d2fd47239 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3352.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "ALL5002", "ralink,rt3352-soc";
+       compatible = "allnet,all5002", "ralink,rt3352-soc";
        model = "Allnet ALL5002";
 
        i2c-gpio {
@@ -11,7 +14,7 @@
                #size-cells = <0>;
 
                compatible = "i2c-gpio";
-               gpios = <&gpio0 1 0 &gpio0 2 0>;
+               gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
                i2c-gpio,delay-us = <10>;
 
                pcf0: iexp@38 {
 
                ld1 {
                        label = "all5002:green:ld1";
-                       gpios = <&pcf0 0 1>;
+                       gpios = <&pcf0 0 GPIO_ACTIVE_LOW>;
                };
 
                ld2 {
                        label = "all5002:green:ld2";
-                       gpios = <&pcf0 1 1>;
+                       gpios = <&pcf0 1 GPIO_ACTIVE_LOW>;
                };
        };
 };
index f507aa91b224e0c1c565f7227a3bdb876e941ab7..a740455ae054900847c3219c296bc45a73a957a5 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "ALL5003", "ralink,rt5350-soc";
+       compatible = "allnet,all5003", "ralink,rt5350-soc";
        model = "Allnet ALL5003";
 
        i2c-gpio {
@@ -11,7 +14,7 @@
                #size-cells = <0>;
 
                compatible = "i2c-gpio";
-               gpios = <&gpio0 1 0 &gpio0 2 0>;
+               gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
                i2c-gpio,delay-us = <10>;
 
                pcf0: iexp@38 {
 
                ld1 {
                        label = "all5003:green:ld1";
-                       gpios = <&pcf0 0 1>;
+                       gpios = <&pcf0 0 GPIO_ACTIVE_LOW>;
                };
 
                ld2 {
                        label = "all5003:green:ld2";
-                       gpios = <&pcf0 1 1>;
+                       gpios = <&pcf0 1 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 3d26c3b6ff4e3c43c19ab354d62240d3e85fcc79..3759f4a8c4e4855cc6090aefabc1115140fcf795 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "AR670W", "ralink,rt2880-soc";
+       compatible = "airlink101,ar670w", "ralink,rt2880-soc";
        model = "Airlink101 AR670W";
 
        cfi@bdc00000 {
 
                status {
                        label = "ar670w:green:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wpsblue {
                        label = "ar670w:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 3a2003e8a376f8dc9428ad6d8b98e147629e4790..ae5034edee06e9f58219c0937268a1edddad2034 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "AR725W", "ralink,rt2880-soc";
+       compatible = "airlink101,ar725w", "ralink,rt2880-soc";
        model = "Airlink101 AR725W";
 
        cfi@bdc00000 {
 
                status {
                        label = "ar725w:green:power";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                wpsred {
                        label = "ar725w:red:wps";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                wpsblue {
                        label = "ar725w:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 83798513fd1be48ecfad7dd9923d8b0ae6b58859..525c4d314cbf0df438a6c1e19324765d5329c0a8 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ASL26555", "ralink,rt3050-soc";
+       compatible = "alphanetworks,asl26555-16m", "alphanetworks,asl26555", "ralink,rt3050-soc";
        model = "Alpha ASL26555 (16M)";
 
        gpio-keys-polled {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 0>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                eth {
                        label = "asl26555:green:eth";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                wan-red {
                        label = "asl26555:red:wan";
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                };
 
                wan-green {
                        label = "asl26555:green:wan";
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
                        label = "asl26555:green:wlan";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                power-green {
                        label = "asl26555:green:power";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
                power-red {
                        label = "asl26555:red:power";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                3g-green {
                        label = "asl26555:green:3g";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                3g-red {
                        label = "asl26555:red:3g";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 2c6a4620268812d3d9e421e3e224829334a7ea6a..66a67fdbf9bd9cfcfc988f0b7e8fbc7cff1408df 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ASL26555", "ralink,rt3050-soc";
+       compatible = "alphanetworks,asl26555-8m", "alphanetworks,asl26555", "ralink,rt3050-soc";
        model = "Alpha ASL26555 (8M)";
 
        gpio-keys-polled {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 0>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                eth {
                        label = "asl26555:green:eth";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                wan-red {
                        label = "asl26555:red:wan";
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                };
 
                wan-green {
                        label = "asl26555:green:wan";
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
                        label = "asl26555:green:wlan";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                power-green {
                        label = "asl26555:green:power";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
                power-red {
                        label = "asl26555:red:power";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                3g-green {
                        label = "asl26555:green:3g";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                3g-red {
                        label = "asl26555:red:3g";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 7e872985dd21ce2685a53d1936a4708af72f59be..ca62a443c8796c2a216b125bd6e56641614a050f 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ATP-52B", "ralink,rt3052-soc";
+       compatible = "argus,atp-52b", "ralink,rt3052-soc";
        model = "Argus ATP-52B";
 
        cfi@1f000000 {
 
                run {
                        label = "atp-52b:green:run";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                net {
                        label = "atp-52b:amber:net";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 06bfac0578ea7e922ef491f6862864915e7a1ec4..c304373ce17a6a0221d32aa4bb8d302448c0a6c1 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "AWAPN2403", "ralink,rt3052-soc";
+       compatible = "asiarf,awapn2403", "ralink,rt3052-soc";
        model = "AsiaRF AWAPN2403";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                link {
                        label = "awapn2403:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 0e82436027c7f0312664e6baf16d9dfb5315d9d6..7a66af21af63f373fa1d40d8d587481a0dcd30c3 100644 (file)
@@ -1,5 +1,6 @@
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                tx {
                        label = "awm002-evb:green:tx";
-                       gpios = <&gpio0 15 1>;
+                       gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
 
                rx {
                        label = "awm002-evb:green:rx";
-                       gpios = <&gpio0 16 1>;
+                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "awm002-evb:green:wps";
-                       gpios = <&gpio0 21 1>;
+                       gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index 5d0fc308c3cd14fb5d72906d8268e30df1f55e39..c12f49855d7883dac91555513790f205ad6dbaac 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "tplink,c20i", "ralink,mt7620a-soc";
        model = "TP-Link Archer C20i";
 
        chosen {
                compatible = "gpio-leds";
                lan {
                        label = "c20i:blue:lan";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
                usb {
                        label = "c20i:blue:usb";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
                wps {
                        label = "c20i:blue:wps";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
                wan {
                        label = "c20i:blue:wan";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
                wlan {
                        label = "c20i:blue:wlan";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
                #size-cells = <0>;
                rfkill {
                        label = "rfkill";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 497238fa39bc3c686c879a1b1f9d7bde6ad17a91..444c2bc1af965dbc58f2ca8ad8af1d9075b31b6d 100644 (file)
@@ -1,11 +1,12 @@
 /dts-v1/;
-#include <dt-bindings/input/input.h>
-#include <dt-bindings/gpio/gpio.h>
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "tplink,c50", "ralink,mt7620a-soc";
        model = "TP-Link Archer C50";
 
        chosen {
index f41014bbf65db1bbb92333a48d5bb61dcbaa4d0a..2736a05b35561a8fbde48d74c0bcafbba970b077 100644 (file)
@@ -1,11 +1,12 @@
 /dts-v1/;
 
 #include "mt7620a.dtsi"
-#include <dt-bindings/input/input.h>
+
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "tplink,mr200", "ralink,mt7620a-soc";
        model = "TP-Link Archer MR200";
 
        chosen {
index 55cf8964f35e7937211e39730a032e1edff5693d..94a22ec7f6249457fa764f661750643e953613e0 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "BC2", "ralink,rt3052-soc";
+       compatible = "nexaira,bc2", "ralink,rt3052-soc";
        model = "NexAira BC2";
 
        cfi@1f000000 {
@@ -45,7 +46,7 @@
 
                usb {
                        label = "bc2:blue:usb";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -57,7 +58,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index a93b8177bee54e850ee58d301cbd8f7434ec860d..4e52da04b5764318e862e443cbac4142f59a1f2f 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "BR-6475ND", "ralink,rt3883-soc";
+       compatible = "edimax,br-6475nd", "ralink,rt3883-soc";
        model = "Edimax BR-6475nD";
 
        gpio-keys-polled {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "rfkill";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,input-type = <EV_SW>;
                        linux,code = <KEY_RFKILL>;
                };
 
                power {
                        label = "br-6475nd:green:power";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "br-6475nd:amber:wlan";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan_5ghz {
                        label = "br-6475nd:amber:wlan_5ghz";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -86,8 +87,8 @@
 
        rtl8367 {
                compatible = "realtek,rtl8367";
-               gpio-sda = <&gpio0 5 0>;
-               gpio-sck = <&gpio0 4 0>;
+               gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
                realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
        };
 
                usb {
                        gpio-export,name="usb";
                        gpio-export,output=<0>;
-                       gpios = <&gpio0 19 0>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
                };
        };
        */
index 6cfac0f988ea7ba54311ba32bd7bd66ee7b9a85a..4b6b6ca422c2d5bd8dc3af07af5712cefbb31f9e 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "BROADWAY", "ralink,rt3052-soc";
+       compatible = "hauppauge,broadway", "ralink,rt3052-soc";
        model = "Hauppauge Broadway";
 
        cfi@1f000000 {
 
                diskmounted {
                        label = "broadway:red:diskmounted";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps_active {
                        label = "broadway:red:wps_active";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -62,7 +63,7 @@
 
                factory {
                        label = "Factory Reset button";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index e38c49f9574f6a2a3e8cb6a13f84306a2849884f..908770977dde2249eb22e8b8caa198c064e11a51 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "CARAMBOLA", "ralink,rt3050-soc";
+       compatible = "8devices,carambola", "ralink,rt3050-soc";
        model = "8devices Carambola";
 
        chosen {
@@ -44,7 +47,7 @@
 
        i2c-gpio {
                compatible = "i2c-gpio";
-               gpios = <&gpio0 1 0 &gpio0 2 0>;
+               gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
                i2c-gpio,delay-us = <10>;
        };
 };
index 9fcab024626f2ad7ebaf6077bf3368d139f8ba8f..b66df862fb344b55fb0afd502ecb2ba24b21d6d3 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "cf-wr800n", "ralink,mt7620n-soc";
+       compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
        model = "Comfast CF-WR800N";
 
        chosen {
 
                ethernet {
                        label = "cf-wr800n:white:ethernet";
-                       gpios = <&gpio2 4 1>;
+                       gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "cf-wr800n:white:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "cf-wr800n:white:wps";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -39,7 +40,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 81d897a0e84dda650bab3cb4dcde4cbb178349f9..6b70a31678d52cdebc3c1c79abf7d4b8610ccf8d 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "planex,cs-qr10", "ralink,mt7620a-soc";
        model = "Planex CS-QR10";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                power {
                        label = "cs-qr10:red:power";
-                       gpios = <&gpio1 4 1>;
+                       gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                s1 {
                        label = "reset";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                s2 {
                        label = "wps";
-                       gpios = <&gpio1 3 1>;
+                       gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index e77227952588c1566113a4c2778c5ef3a14e0244..b5b594bf59ae421cc24a4d6727a2305e91e03804 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "CY-SWR1100", "ralink,rt3883-soc";
+       compatible = "samsung,cy-swr1100", "ralink,rt3883-soc";
        model = "Samsung CY-SWR1100";
 
        nor-flash@1c000000 {
@@ -52,8 +53,8 @@
 
        rtl8367 {
                compatible = "realtek,rtl8367";
-               gpio-sda = <&gpio0 1 0>;
-               gpio-sck = <&gpio0 2 0>;
+               gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 6 1>;
+                       gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 3 1>;
+                       gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                wps {
                        label = "cy-swr1100:blue:wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "cy-swr1100:blue:usb";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
        };
 };
index f7ace49f6285a7c2c19a884d2863e2f3223194db..a7d7d3777d648b3537342daedfe608551b5efa92 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "D105", "ralink,rt3050-soc";
+       compatible = "huawei,d105", "ralink,rt3050-soc";
        model = "Huawei D105";
 
        cfi@1f000000 {
 
                power {
                        label = "d105:red:power";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "d105:green:usb";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -62,7 +63,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 46d014126d6784e41e90e8c0b3fd6900fd8c671d..4f3da8d316e4ba6ffd9079efc87d5a4ebf207a76 100644 (file)
@@ -39,7 +39,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "d240", "ralink,mt7620a-soc";
+       compatible = "sanlinking,d240", "ralink,mt7620a-soc";
        model = "Sanlinking Technologies D240";
 
        chosen {
index c3225db9527ba333bd8c1b4f24445c14763d9119..107acdb2c3bdd008e420fd5d73103a6ce3bd02a6 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DAP-1350", "ralink,rt3052-soc";
+       compatible = "dlink,dap-1350", "ralink,rt3052-soc";
        model = "D-Link DAP-1350";
 
        chosen {
 
                power {
                        label = "dap-1350:blue:power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
                        label = "dap-1350:red:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dap-1350:blue:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                rt {
                        label = "rt";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                ap {
                        label = "ap";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index c4a32ea9e9a29117b43bd42c41cc194ba42bf8aa..09efff6f50970fd2078cde698ab5a40a949d76c0 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "planex,db-wrt01", "ralink,mt7620a-soc";
        model = "Planex DB-WRT01";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                power {
                        label = "db-wrt01:orange:power";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                s1 {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 3465c70ad0e04edfe9af21ab3640cf8d2268883c..867335e95720370a9f6246bb86ca933f60e1c877 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
                power {
                        label = "dch-m225:green:power";
-                       gpios = <&gpio1 5 1>;
+                       gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "dch-m225:red:status";
-                       gpios = <&gpio1 0 1>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -53,7 +54,7 @@
                        "Headphones", "HP_L",
                        "Headphones", "HP_R";
                simple-audio-card,mclk-fs = <256>;
-               simple-audio-card,hp-det-gpio = <&gpio0 14 1>;
+               simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
 
                simple-audio-card,cpu {
                        sound-dai = <&i2s>;
index d57682ec7bf1aae0bb1dfd46e6367701b5713c4d..348cdb43823aaec72fd4849d01070c402ede5bd6 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DCS-930", "ralink,rt3050-soc";
+       compatible = "dlink,dcs-930", "ralink,rt3050-soc";
        model = "D-Link DCS-930";
 
        cfi@1f000000 {
 
                wifi {
                        label = "dcs-930:red:alert";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "dcs-930:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dcs-930:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 8ebc1bb3d27bc2d385b7f9c95a9300e24fc332ad..5d2899ea27fd31c28678445cef09835aba7bc4eb 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DCS-930L-B1", "ralink,rt5350-soc";
+       compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc";
        model = "D-Link DCS-930L B1";
 
        gpio-leds {
 
                power {
                        label = "dcs-930l-b1:red:power";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dcs-930l-b1:blue:wps";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 2ba6ae64c60b13f6df97b73c9c30bc2d685f28c6..b8d8f164586c92cc5d8340f2f2e91c28198a7b5b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-300-B1", "ralink,rt3050-soc";
+       compatible = "dlink,dir-300-b1", "ralink,rt3050-soc";
        model = "D-Link DIR-300 B1";
 
        cfi@1f000000 {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                status {
                        label = "dir-300-b1:amber:status";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                status2 {
                        label = "dir-300-b1:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "dir-300-b1:amber:wan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
                        label = "dir-300-b1:green:wan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-300-b1:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 9bb4345e33e8bf6e3983233e22eb45a5f9055ffe..12ccd1620d51cf0ee3ca789ce86dfe356ee01648 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-300-B7", "ralink,rt5350-soc";
+       compatible = "dlink,dir-300-b7", "ralink,rt5350-soc";
        model = "D-Link DIR-300 B7";
 
        gpio-leds {
 
                status {
                        label = "dir-300-b7:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-300-b7:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 07162298352f68301111b920ebfaaad2ab67877a..9e05b63e98c273db5008748786859fdd6c934159 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-320-B1", "ralink,rt5350-soc";
+       compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
        model = "D-Link DIR-320 B1";
 
        gpio-leds {
 
                status {
                        label = "dir-320-b1:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "dir-320-b1:green:usb";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-320-b1:green:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                root_hub {
                        gpio-export,name = "root_hub";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 493d49bb73096d87a6e5575bfeed6a433f9219fd..0e8239d0b33a60fc39b56bc4e87bf2198ccce93c 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-600-B1", "ralink,rt3050-soc";
+       compatible = "dlink,dir-600-b1", "ralink,rt3050-soc";
        model = "D-Link DIR-600 B1";
 
        cfi@1f000000 {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                status {
                        label = "dir-600-b1:amber:status";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                status2 {
                        label = "dir-600-b1:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "dir-600-b1:amber:wan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
                        label = "dir-600-b1:green:wan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-600-b1:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
index a70b4604b01ae2d0e10d8b8f5761c4a711781bb8..eda0bc8c2f3d6415d9f40674d5aa15bb5d32661b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-610-A1", "ralink,rt5350-soc";
+       compatible = "dlink,dir-610-a1", "ralink,rt5350-soc";
        model = "D-Link DIR-610 A1";
 
        gpio-leds {
 
                status {
                        label = "dir-610-a1:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-610-a1:green:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 67705fe3ce445eadc7851a9c59984495ea224331..507f08774a18ce16a11d929976cb97e3777fdd5c 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-615-D", "ralink,rt3050-soc";
+       compatible = "dlink,dir-615-d1", "ralink,rt3050-soc";
        model = "D-Link DIR-615 D";
 
        cfi@1f000000 {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                status {
                        label = "dir-615-d:amber:status";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                status2 {
                        label = "dir-615-d:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "dir-615-d:amber:wan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
                        label = "dir-615-d:green:wan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-615-d:blue:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
index a2873be5da8bcf3ba22ea7fdd4bdacf7b6e175bd..9e8b86ed7cc1518318d5bde03e937c38c21f9302 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3352.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-615-H1", "ralink,rt3352-soc";
+       compatible = "dlink,dir-615-h1", "ralink,rt3352-soc";
        model = "D-Link DIR-615 H1";
 
        gpio-leds {
 
                status {
                        label = "dir-615-h1:amber:status";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                status2 {
                        label = "dir-615-h1:green:status";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                wan {
                        label = "dir-615-h1:amber:wan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
                        label = "dir-615-h1:green:wan";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-615-h1:blue:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 50967b29c2a839d9379c102b2fe2a5fdb47099d5..23f5a5daef9413e7bb07a1a8801bbaa780802d7b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-620-A1", "ralink,rt3050-soc";
+       compatible = "dlink,dir-620-a1", "ralink,rt3050-soc";
        model = "D-Link DIR-620 A1";
 
        cfi@1f000000 {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                status {
                        label = "dir-620-a1:amber:status";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                status2 {
                        label = "dir-620-a1:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "dir-620-a1:amber:wan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
                        label = "dir-620-a1:green:wan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-620-a1:blue:wps";
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
 
                wps2 {
                        label = "dir-620-a1:amber:wps";
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index f3079d370366970fed7b1394cc056dcb660e752e..baf17e733113000c5a417acc65ea56ef41c50a8f 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3352.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-620-D1", "ralink,rt3352-soc";
+       compatible = "dlink,dir-620-d1", "ralink,rt3352-soc";
        model = "D-Link DIR-620 D1";
 
        gpio-leds {
 
                status {
                        label = "dir-620-d1:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "dir-620-d1:green:wifi";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 9c8082ca244389b1eddd1f8640b7da869855b060..0afa87a0774de99a35ff30c2d4a37220f2f42eda 100644 (file)
@@ -2,16 +2,17 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "DIR-645", "ralink,rt3883-soc";
+       compatible = "dlink,dir-645", "ralink,rt3883-soc";
        model = "D-Link DIR-645";
 
        rtl8367b {
                compatible = "realtek,rtl8367b";
-               gpio-sda = <&gpio0 1 0>;
-               gpio-sck = <&gpio0 2 0>;
+               gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 14 0>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                inet {
                        label = "dir-645:green:inet";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "dir-645:green:wps";
-                       gpios = <&gpio1 2 0>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
                };
        };
 
@@ -55,7 +56,7 @@
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio1 6 0>;
+                       gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 9621183e07c685052eccbc2e9339275a3eb77e3c..7a1736d5632ceefc6ada6c695d2b1f219143d571 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
 
                power {
                        label = "dir-810l:green:power";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                wan {
                        label = "dir-810l:orange:wan";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
                status {
                        label = "dir-810l:orange:power";
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index e00bae9c6257b87e13139dee435a5c476de62340..5dfc1eeaefd57d5a81e019f13f6fd9d1630bc952 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                power {
                        label = "dir-860l-b1:orange:power";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
                        label = "dir-860l-b1:green:power";
-                       gpios = <&gpio0 15 1>;
+                       gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
 
                net {
                        label = "dir-860l-b1:orange:net";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                net2 {
                        label = "dir-860l-b1:green:net";
-                       gpios = <&gpio0 16 1>;
+                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index d40df4fb5c68f90281adc6101b5699a8be58b7a8..97625d875ee9fd5fdd5ed75bffbe6d19fb8f99f3 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc";
+       compatible = "duzun,dm06", "mediatek,mt7628an-soc";
        model = "DuZun DM06";
 
        memory@0 {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 6 1>;
+                       gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index d26bd4bbb51dacc8b4c3d1aa3d0ac2c1a59e33da..f531df80a189f1ec09625bb9a440fba0f90bcb71 100644 (file)
@@ -6,7 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,rt5350-soc";
+       compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
        model = "D-Link DWR-512 B";
 
        gpio-keys-polled {
index cb3d2ec83a306922eec752683f593f85f891833b..f65f14492157cabbea809670644446a286861b9a 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                power {
                        label = "e1700:green:power";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "e1700:green:wps";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 59a961d69907cec5c4c274360aace960e18b5a0b..444bea1af7355347fcfcac587bc40bdb764abd2b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ESR-9753", "ralink,rt3052-soc";
+       compatible = "engenius,esr-9753", "ralink,rt3052-soc";
        model = "Senao / EnGenius ESR-9753";
 
        cfi@1f000000 {
 
                power {
                        label = "esr-9753:orange:power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "esr-9753:orange:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 2f1cfc70df77a7cdc7ccebd4ff68b1fc769178c9..e6b96fa2b0cff74429e61a71094ed46816b833ab 100644 (file)
@@ -32,7 +32,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 6c66c2009d06c2d6bb0c1893f100b067638e12e1..380db801d573bdf12c4b6e0a2454dbd903a7914f 100644 (file)
 
 #include "mt7620a.dtsi"
 
-#include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "netgear,ex2700", "ralink,mt7620a-soc";
        model = "Netgear EX2700";
 
        chosen {
index 2cf1c0b3e8d76ca81bcdbeab14a65bcbe74c8091..18079ea79cebf60d21911146af8dce7d0ffc2f7b 100644 (file)
@@ -8,7 +8,7 @@
 #include "mt7620a.dtsi"
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "netgear,ex3700", "ralink,mt7620a-soc";
        model = "Netgear EX3700/EX3800";
 
        chosen {
index d6d23473d567cea58bdf6f6fb2eda584cde98cd6..79920922d47588489bacb4a03bcb4bc5bbf4481c 100644 (file)
@@ -8,7 +8,7 @@
 / {
        #address-cells = <1>;
        #size-cells = <1>;
-       compatible = "F5D8235_V1", "ralink,rt2880-soc";
+       compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc";
        model = "Belkin F5D8235 v1";
 
        pci@440000 {
index b38dbbb072a0946d4f359dae271d6771d41ba4fa..5e32d7ff7ceffd24ed6a398928cfbf09d7a67f09 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "F5D8235_V2", "ralink,rt3052-soc";
+       compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc";
        model = "Belkin F5D8235 v2";
 
        cfi@1f000000 {
@@ -38,8 +41,8 @@
 
        rtl8366rb {
                compatible = "realtek,rtl8366rb";
-               gpio-sda = <&gpio0 1 0>;
-               gpio-sck = <&gpio0 2 0>;
+               gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
        };
 
        gpio-leds {
 
                internet {
                        label = "f5d8235-v2:blue:internet";
-                       gpios = <&gpio0 5 1>;
+                       gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
                };
 
                internet2 {
                        label = "f5d8235-v2:amber:internet";
-                       gpios = <&gpio0 6 1>;
+                       gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
                modem {
                        label = "f5d8235-v2:blue:modem";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                modem2 {
                        label = "f5d8235-v2:amber:modem";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                router {
                        label = "f5d8235-v2:blue:router";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                storage {
                        label = "f5d8235-v2:blue:storage";
-                       gpios = <&gpio0 23 1>;
+                       gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
                };
 
                storage2 {
                        label = "f5d8235-v2:amber:storage";
-                       gpios = <&gpio0 22 1>;
+                       gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
                };
 
                security {
                        label = "f5d8235-v2:blue:security";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                security2 {
                        label = "f5d8235-v2:amber:security";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 10d26a4e484e33b6dbea6531ba047e38fe6eb679..532c6243b841e8c1eb4dbf96df2944ec10576e09 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "F7C027", "ralink,rt5350-soc";
+       compatible = "belkin,f7c027", "ralink,rt5350-soc";
        model = "Belkin F7C027";
 
        gpio-leds {
 
                status {
                        label = "f7c027:blue:status";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "f7c027:blue:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                orange {
                        label = "f7c027:orange:status";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                relay {
                        label = "f7c027:device:relay";
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 
 
                top {
                        label = "restore";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                power {
                        label = "power";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
 
                sensor {
                        label = "sensor";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index d38ee39bd906edd464d21d9e9ea2d762a0810b35..262dbb5f576a86a313b78b92849bb4c40a073d75 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
@@ -22,7 +23,7 @@
 
                power {
                        label = "firewrt:green:power";
-                       gpios = <&gpio0 22 1>;
+                       gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                power {
                        label = "power";
-                       gpios = <&gpio0 23 1>;
+                       gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                };
        };
index c409f9b01d73d554dbc109b7d4a3e9d6a17ab060..bc7474ccfb204e3c7f3fa8adaf97c80b6e7ec701 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "FONERA20N", "ralink,rt3052-soc";
+       compatible = "fon,fonera20n", "ralink,rt3052-soc";
        model = "La Fonera 2.0N";
 
        cfi@1f000000 {
 
                wifi {
                        label = "fonera20n:orange:wifi";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "fonera20n:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "fonera20n:orange:usb";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                switch {
                        label = "switch";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                        linux,input-type = <EV_SW>;
                };
index 425eb2adbe09a89582fe18df4dcc2aaf8e63c64a..38f058dfa23a3aba73107197e83819f4617e55f0 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "FREESTATION5", "ralink,rt3050-soc";
+       compatible = "arcwireless,freestation5", "ralink,rt3050-soc";
        model = "ARC FreeStation5";
 
        chosen {
@@ -50,7 +53,7 @@
                poe {
                        gpio-export,name = "poe-passthrough";
                        gpio-export,output = <1>; // OUT_INIT_HIGH
-                       gpios = <&gpio0 11 1>;    // GPIO 11, ACTIVE_LOW
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;    // GPIO 11, ACTIVE_LOW
                };
        };
 
                // not present in the Freestation5 device.
                wifi {
                        label = "freestation5:unknown:wifi";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                powerg {
                        label = "freestation5:unknown:powerg";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "freestation5:unknown:usb";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 };
index d4c8351f1ef9808d49ab73f6978fa3adb8fa7fe2..c69d816456fca47acfa2d64e2449feccb85961f9 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "GL-MT300A", "ralink,mt7620a-soc";
+       compatible = "glinet,gl-mt300a", "ralink,mt7620a-soc";
        model = "GL-MT300A";
 
        chosen {
 
                wan {
                        label = "gl-mt300a:wan";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "gl-mt300a:lan";
-                       gpios = <&gpio2 1 1>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "gl-mt300a:wlan";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "gl-mt300a:usb";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
        };
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index 442fc093a5ffa6054a9fd074f793d373fba387ba..e7df340eecaa948b1184b32ea16c3b2dc25b5eee 100644 (file)
@@ -6,7 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 /{
-       compatible = "gl-inet,gl-mt300n-v2", "ralink,mt7620an-soc";
+       compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc";
        model = "GL-MT300N-V2";
 
        chosen {
index 927ea54d0e948eba9d5d666b04b86be1228a89ac..27f3d065e10095a9703d48ce85e6766154c005ab 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "GL-MT300N", "ralink,mt7620a-soc";
+       compatible = "glinet,gl-mt300n", "ralink,mt7620a-soc";
        model = "GL-MT300N";
 
        chosen {
 
                wan {
                        label = "gl-mt300n:wan";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "gl-mt300n:lan";
-                       gpios = <&gpio2 1 1>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "gl-mt300n:wlan";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
        };
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
-                       gpios = <&gpio2 2 1>;
+                       gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index 1266dd323056fe1e2003256694a5570915ae643f..2b5bf558e16fb51732531f8c890a7b7768375281 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "GL-MT750", "ralink,mt7620a-soc";
+       compatible = "glinet,gl-mt750", "ralink,mt7620a-soc";
        model = "GL-MT750";
 
        chosen {
 
                wan {
                        label = "gl-mt750:wan";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "gl-mt750:lan";
-                       gpios = <&gpio2 1 1>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "gl-mt750:wlan";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
        };
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
-                       gpios = <&gpio2 2 1>;
+                       gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index eb1df345edd7ddfe1e1674f1f1d93b30610295b7..5227ee06c52a5173acd18f40d89f615dc87696de 100644 (file)
@@ -1,9 +1,9 @@
 /dts-v1/;
 
-#include "HC5XXX.dtsi"
+#include "HC5X61.dtsi"
 
 / {
-       compatible = "HC5661", "ralink,mt7620a-soc";
+       compatible = "hiwifi,hc5661", "hiwifi,hc5x61", "ralink,mt7620a-soc";
        model = "HiWiFi HC5661";
 
        gpio-leds {
 
                system {
                        label = "hc5661:blue:system";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "hc5661:blue:internet";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
                        label = "hc5661:blue:wlan2g";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
                        label = "hc5661:blue:wlan5g";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
        };
 };
index f462606f7b49d28973bb759c272e1dbb122502a2..9ca734f0a655d46d434ff0b390d0cdc22788dfe8 100644 (file)
@@ -6,7 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "HC5661A", "mediatek,mt7628an-soc";
+       compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc";
        model = "HiWiFi HC5661A";
 
        chosen {
index 6b0554a054aa395e24df1bbe92a21c7b7af29d84..6cc7c6ba7646cf24a7189bb7584c49524fe34d8c 100644 (file)
@@ -1,9 +1,9 @@
 /dts-v1/;
 
-#include "HC5XXX.dtsi"
+#include "HC5X61.dtsi"
 
 / {
-       compatible = "HC5761", "ralink,mt7620a-soc";
+       compatible = "hiwifi,hc5761", "hiwifi,hc5x61", "ralink,mt7620a-soc";
        model = "HiWiFi HC5761";
 
        gpio-leds {
 
                system {
                        label = "hc5761:blue:system";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "hc5761:blue:internet";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
                        label = "hc5761:blue:wlan2g";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
                        label = "hc5761:blue:wlan5g";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 3e812f691d7242469bff5b42b8552ad212e85352..d4f34b32d1b269d692f2e5fbd7c0db45229873c1 100644 (file)
@@ -1,9 +1,9 @@
 /dts-v1/;
 
-#include "HC5XXX.dtsi"
+#include "HC5X61.dtsi"
 
 / {
-       compatible = "HC5861", "ralink,mt7620a-soc";
+       compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc";
        model = "HiWiFi HC5861";
 
        gpio-leds {
 
                system {
                        label = "hc5861:blue:system";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
                        label = "hc5861:blue:wlan2g";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "hc5861:blue:internet";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
                        label = "hc5861:blue:wlan5g";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                turbo {
                        label = "hc5861:blue:turbo";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
        };
 
                usbpower {
                        gpio-export,name = "usbpower";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
 
                sdpower {
                        gpio-export,name = "sdpower";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
        };
 };
diff --git a/target/linux/ramips/dts/HC5X61.dtsi b/target/linux/ramips/dts/HC5X61.dtsi
new file mode 100644 (file)
index 0000000..1a5927d
--- /dev/null
@@ -0,0 +1,143 @@
+#include "mt7620a.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+       compatible = "hiwifi,hc5x61", "ralink,mt7620a-soc";
+
+       chosen {
+               bootargs = "console=ttyS0,115200";
+       };
+
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <20>;
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
+       };
+
+       gpio_export {
+               compatible = "gpio-export";
+               #size-cells = <0>;
+
+               usbpower {
+                       gpio-export,name = "usbpower";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
+               };
+       };
+};
+
+&sysc {
+       ralink,gpiomux = "i2c", "jtag";
+       ralink,uartmux = "gpio";
+       ralink,wdtmux = <1>;
+};
+
+&gpio0 {
+       status = "okay";
+};
+
+&gpio2 {
+       status = "okay";
+};
+
+&gpio3 {
+       status = "okay";
+};
+
+&spi0 {
+       status = "okay";
+
+       m25p80@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+
+               partition@0 {
+                       label = "u-boot";
+                       reg = <0x0 0x30000>;
+               };
+
+               partition@30000 {
+                       label = "u-boot-env";
+                       reg = <0x30000 0x10000>;
+                       read-only;
+               };
+
+               factory: partition@40000 {
+                       label = "factory";
+                       reg = <0x40000 0x10000>;
+               };
+
+               partition@50000 {
+                       label = "firmware";
+                       reg = <0x50000 0xf80000>;
+               };
+
+               partition@fd0000 {
+                       label = "hwf_config";
+                       reg = <0xfd0000 0x10000>;
+               };
+
+               bdinfo: partition@fe0000 {
+                       label = "bdinfo";
+                       reg = <0xfe0000 0x10000>;
+               };
+
+               partition@ff0000 {
+                       label = "backup";
+                       reg = <0xff0000 0x10000>;
+               };
+       };
+};
+
+&ehci {
+       status = "okay";
+};
+
+&ohci {
+       status = "okay";
+};
+
+&ethernet {
+       pinctrl-names = "default";
+       pinctrl-0 = <&ephy_pins>;
+       mtd-mac-address = <&factory 0x4>;
+       mediatek,portmap = "wllll";
+};
+
+&sdhci {
+       status = "okay";
+};
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};
+
+&pcie {
+       status = "okay";
+};
+
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "uartf", "wled", "nd_sd";
+                       ralink,function = "gpio";
+               };
+
+               pa {
+                       ralink,group = "pa";
+                       ralink,function = "pa";
+               };
+       };
+};
diff --git a/target/linux/ramips/dts/HC5XXX.dtsi b/target/linux/ramips/dts/HC5XXX.dtsi
deleted file mode 100644 (file)
index 3bea77e..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#include "mt7620a.dtsi"
-
-#include <dt-bindings/input/input.h>
-
-/ {
-       chosen {
-               bootargs = "console=ttyS0,115200";
-       };
-
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               poll-interval = <20>;
-
-               reset {
-                       label = "reset";
-                       gpios = <&gpio0 12 1>;
-                       linux,code = <KEY_RESTART>;
-               };
-       };
-
-       gpio_export {
-               compatible = "gpio-export";
-               #size-cells = <0>;
-
-               usbpower {
-                       gpio-export,name = "usbpower";
-                       gpio-export,output = <1>;
-                       gpios = <&gpio0 13 0>;
-               };
-       };
-};
-
-&sysc {
-       ralink,gpiomux = "i2c", "jtag";
-       ralink,uartmux = "gpio";
-       ralink,wdtmux = <1>;
-};
-
-&gpio0 {
-       status = "okay";
-};
-
-&gpio2 {
-       status = "okay";
-};
-
-&gpio3 {
-       status = "okay";
-};
-
-&spi0 {
-       status = "okay";
-
-       m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               reg = <0>;
-               spi-max-frequency = <10000000>;
-
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-               };
-
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0xf80000>;
-               };
-
-               partition@fd0000 {
-                       label = "hwf_config";
-                       reg = <0xfd0000 0x10000>;
-               };
-
-               bdinfo: partition@fe0000 {
-                       label = "bdinfo";
-                       reg = <0xfe0000 0x10000>;
-               };
-
-               partition@ff0000 {
-                       label = "backup";
-                       reg = <0xff0000 0x10000>;
-               };
-       };
-};
-
-&ehci {
-       status = "okay";
-};
-
-&ohci {
-       status = "okay";
-};
-
-&ethernet {
-       pinctrl-names = "default";
-       pinctrl-0 = <&ephy_pins>;
-       mtd-mac-address = <&factory 0x4>;
-       mediatek,portmap = "wllll";
-};
-
-&sdhci {
-       status = "okay";
-};
-
-&wmac {
-       ralink,mtd-eeprom = <&factory 0>;
-};
-
-&pcie {
-       status = "okay";
-};
-
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "uartf", "wled", "nd_sd";
-                       ralink,function = "gpio";
-               };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
-       };
-};
index 91426db3c981650f5f81e898779a21904cfd7d36..bed5977ac13946783c0a4118c02a81bacf155f36 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "HG255D", "ralink,rt3052-soc";
+       compatible = "huawei,hg255d", "ralink,rt3052-soc";
        model = "HuaWei HG255D";
 
        cfi@1f000000 {
 
                power {
                        label = "hg255d:green:power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "hg255d:green:internet";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "hg255d:green:wlan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "hg255d:green:usb";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "hg255d:green:wps";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                voice {
                        label = "hg255d:green:voice";
-                       gpios = <&gpio0 5 1>;
+                       gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 4 1>;
+                       gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                rfkill {
                        label = "rfkill";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index 79a599d49e27eb8a8c9571296bb12683de1b3806..3013305493848f2f3e2b45d08bc44db9739e4a16 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "HLKRM04", "ralink,rt5350-soc";
+       compatible = "hilink,hlk-rm04", "ralink,rt5350-soc";
        model = "HILINK HLK-RM04";
 
        memory@0 {
                        /* I2C_I2C_SD */
                        gpio-export,name = "hlk-rm04:gpio0";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                };
                gpio2 {
                        /* I2C_I2C_SCLK */
                        gpio-export,name = "hlk-rm04:gpio1";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                };
        };
 
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index ada12c1cf485bd69fbdaac1f9f271a9da590e1c6..904c8df9fe55f2664c0c253577051bf2afed86a1 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "HPM", "ralink,rt3883-soc";
+       compatible = "omnima,hpm", "ralink,rt3883-soc";
        model = "Omnima HPM";
 
        chosen {
@@ -20,7 +21,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 14 0>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
                power {
                        label = "hpm:orange:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "hpm:green:status";
-                       gpios = <&gpio0 21 1>;
+                       gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                };
 
                eth {
                        label = "hpm:green:eth";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                eth2 {
                        label = "hpm:red:eth";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "hpm:green:wifi";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
                wifi2 {
                        label = "hpm:red:wifi";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
        };
 
                usb0 {
                        gpio-export,name = "usb0";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                };
 
                usb1 {
                        gpio-export,name = "usb1";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 0bfe48f3d4e8e8f48e48f6a5703673c29d4a351e..a2874725013fda81ea15b95c9ff7eea8911c4747 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "HT-TM02", "ralink,rt5350-soc";
+       compatible = "hootoo,ht-tm02", "ralink,rt5350-soc";
        model = "HooToo HT-TM02";
 
        gpio-leds {
 
                wlan {
                        label = "ht-tm02:blue:wlan";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "ht-tm02:green:lan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                modeswitch {
                        label = "modeswitch";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
index d5bca44f94f0f5999376814a7369b2cff21576f5..f6a05fcd5f832343ae4e4f54a8abea492e6e4a12 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "HW550-3G", "ralink,rt3052-soc";
+       compatible = "aztech,hw550-3g", "ralink,rt3052-soc";
        model = "Aztech HW550-3G";
 
        cfi@1f000000 {
 
                usb {
                        label = "hw550-3g:green:usb";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "hw550-3g:green:3g";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "hw550-3g:green:status";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "hw550-3g:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                connect {
                        label = "connect";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_CONNECT>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 6f26f3b50a22c1b8fbb1602bb0534ae2cea2c016..260846e16446efbdf38d0364b2ee81c2981dbd96 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "IP2202", "ralink,rt3052-soc";
+       compatible = "poray,ip2202", "ralink,rt3052-soc";
        model = "Poray IP2202";
 
        cfi@1f000000 {
 
                run {
                        label = "ip2202:green:run";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                net {
                        label = "ip2202:amber:net";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -62,7 +63,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 4493b3c30d2f59765979f16ef80026ee0c66610e..d043e0f05d3f38fec32f284e3f7f7aacbfd2111d 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "JHR-N805R", "ralink,rt3050-soc";
+       compatible = "jcg,jhr-n805r", "ralink,rt3050-soc";
        model = "JCG JHR-N805R";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                system {
                        label = "jhr-n805r:blue:system";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                 reset {
                         label = "reset";
-                        gpios = <&gpio0 10 1>;
+                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                         linux,code = <KEY_RESTART>;
                 };
        };
index 4eab8932654d4d0033d5fe8e4702a7a918f770c9..5e64b2cc0903dd287012f5c50b53abb1502c32dd 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "JHR-N825R", "ralink,rt3052-soc";
+       compatible = "jcg,jhr-n825r", "ralink,rt3052-soc";
        model = "JCG JHR-N825R";
 
        cfi@1f000000 {
@@ -44,7 +45,7 @@
                compatible = "gpio-leds";
                system {
                        label = "jhr-n825r:red:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -55,7 +56,7 @@
                poll-interval = <20>;
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index e5b64c5b96fd56944a8f8916ac09edf888d54472..93310e1287ee65589c90e12d5d02da6aed08f524 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "JHR-N926R", "ralink,rt3052-soc";
+       compatible = "jcg,jhr-n926r", "ralink,rt3052-soc";
        model = "JCG JHR-N926R";
 
        cfi@1f000000 {
 
                wlan1 {
                        label = "jhr-n926r:red:wlan";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                wlan2 {
                        label = "jhr-n926r:yellow:wlan";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
 
                wlan3 {
                        label = "jhr-n926r:green:wlan";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
                system {
                        label = "jhr-n926r:blue:system";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
                display_data {
                        gpio-export,name = "display_data";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                display_clock {
                        gpio-export,name = "display_clock";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
                display_blank {
                        gpio-export,name = "display_blank";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 
 
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wlan {
                        label = "wlan";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index f1809d169a154944058d2ff95c11742c33afc98a..f21ffcca66d1fa934dc98c16ba0da4f0108b0412 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
@@ -32,7 +33,7 @@
 
                wifi {
                        label = "mediatek:orange:wifi";
-                       gpios = <&wgpio 0 0>;
+                       gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
        };
@@ -45,7 +46,7 @@
 
                wps {
                        label = "reset";
-                       gpios = <&gpio1 6 1>;
+                       gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 74d66d5ff5d769da88cefcadd00d5c8441715dd9..d828f5a74768802da9014faeb58b1894296d4c36 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "M2M", "ralink,rt5350-soc";
+       compatible = "intenso,memory2move", "ralink,rt5350-soc";
        model = "Intenso Memory 2 Move";
 
        chosen {
 
                wifi {
                        label = "m2m:blue:wifi";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "m2m:green:wan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                power {
                        label = "power";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 19ccf3ddfad49bfd837ed9c5e3ab633f78b3fc9a..5f52e6064ff58f1d26e61424f8d97757c5a3aaa6 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "M3", "ralink,rt5350-soc";
+       compatible = "poray,m3", "ralink,rt5350-soc";
        model = "Poray M3";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                status {
                        label = "m3:blue:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
index 3e147e53b3833f0f5e0dc9fb42712b0e680f6f41..1a7154e57c524b07ffb0a3b3773736fdb28f42d7 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "M4", "ralink,rt5350-soc";
+       compatible = "poray,m4-4m", "poray,m4", "ralink,rt5350-soc";
        model = "Poray M4 (4M)";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                status {
                        label = "m4:blue:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 65a3972d7d3743f4031a63b9199632bce48c5098..6d5086950ea2095daefeeb059158d2c08ab3ac32 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "M4", "ralink,rt5350-soc";
+       compatible = "poray,m4-8m", "poray,m4", "ralink,rt5350-soc";
        model = "Poray M4 (8M)";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                status {
                        label = "m4:blue:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 6d58b25b87aa1ab8006c0172b108b1c6b34c845c..bcbe55f3f890fc0335747f19af4d706cf2473754 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "mercury,mac1200rv2", "mediatek,mt7628an-soc";
+       compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
        model = "Mercury MAC1200R v2";
 
        chosen {
@@ -19,7 +22,7 @@
                compatible = "gpio-leds";
                status {
                        label = "mac1200rv2:green:status";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 45616ef28a18c31e81efff74c071300e5adabae0..2f58eafdb936383fc560387e759f22c5166d3423 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MINIEMBPLUG", "ralink,rt5350-soc";
+       compatible = "omnima,miniembplug", "ralink,rt5350-soc";
        model = "Omnima MiniEMBPlug";
 
        gpio-leds {
 
                wlan {
                        label = "miniembplug:red:wlan";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                mobile {
                        label = "miniembplug:green:mobile";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                mode-one {
                        label = "mode1";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                mode-two {
                        label = "mode2";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index ccdd40f80145c6b16fa115144e24cd6063e5f29f..d4551896363968dfb0cd9ccb951160e69203ef65 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MINIEMBWIFI", "ralink,rt3052-soc";
+       compatible = "omnima,miniembwifi", "ralink,rt3052-soc";
        model = "Omnima MiniEMBWiFi";
 
        gpio-leds {
 
                status {
                        label = "miniembwifi:green:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "miniembwifi:green:wlan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 45e1f2ef5f7c496ecc3ca4052292df8c4a7e4e09..9da5673d4af405eba95b91b38622634cb4a06e2c 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                blue {
                        label = "miwifi-mini:blue:status";
-                       gpios = <&gpio1 0 1>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
 
                yellow {
                        label = "miwifi-mini:yellow:status";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                };
 
                red {
                        label = "miwifi-mini:red:status";
-                       gpios = <&gpio1 5 1>;
+                       gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -39,7 +40,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 6 0>;
+                       gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 21ac541107d056f5769d0812acf1a8e45947a174..b8a325d4f4744409cdb39c38c68526ac1ffc1563 100644 (file)
@@ -6,7 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "xiaomi,MiWifi Nano", "mediatek,mt7628an-soc";
+       compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
        model = "MiWiFi Nano";
 
        chosen {
index f02602fb9f2f2b584c76fe247618a0302d68af51..f4a715247904c42e419012ed7f4f8acf79552ad0 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "mlw221", "ralink,mt7620n-soc";
+       compatible = "kingston,mlw221", "ralink,mt7620n-soc";
        model = "Kingston MLW221";
 
        gpio-leds {
 
                system {
                        label = "mlw221:blue:system";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "mlw221:blue:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                system {
                        label = "system";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index fc281934e16162fc8ea587655d73b920a99e52d6..58fce43b4fe58b1f613db49dc20fe783423cf2a3 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "mlwg2", "ralink,mt7620n-soc";
+       compatible = "kingston,mlwg2", "ralink,mt7620n-soc";
        model = "Kingston MLWG2";
 
        gpio-leds {
 
                system {
                        label = "mlwg2:blue:system";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "mlwg2:blue:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                system {
                        label = "system";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index 23596e0f344be31f708fd3628c7ae04959072ee3..f60919d5a19ac6fa9422b57e2a9220e0a6a630bd 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MOFI3500-3GN", "ralink,rt3052-soc";
+       compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc";
        model = "MoFi Network MOFI3500-3GN";
 
        cfi@1f000000 {
 
                usb {
                        label = "mofi3500-3gn:green:usb";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "mofi3500-3gn:green:3g";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "mofi3500-3gn:green:status";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "mofi3500-3gn:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                connect {
                        label = "connect";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_CONNECT>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 9762658c72c0721ddf6925888a2b0f5d290a3b93..59dfe4ebd2d04591aa1bf5af1601b39cb81b93b9 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MPRA1", "ralink,rt5350-soc";
+       compatible = "hame,mpr-a1", "ralink,rt5350-soc";
        model = "HAME MPR-A1";
 
        gpio-leds {
 
                system {
                        label = "mpr-a1:blue:system";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "mpr-a1:red:power";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                wps {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                root_hub {
                        gpio-export,name = "root_hub";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 30ab50f33d71c8b232137709e184333ab378a9bb..4bf9b57549e296539218f930678aa2352af4fa80 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MPRA2", "ralink,rt5350-soc";
+       compatible = "hame,mpr-a2", "ralink,rt5350-soc";
        model = "HAME MPR-A2";
 
        gpio-leds {
 
                system {
                        label = "mpr-a2:blue:system";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "mpr-a2:red:power";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                wps {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                root_hub {
                        gpio-export,name = "root_hub";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index a28deb79eda7f7b6500f63d906d43729c3b77da1..44569eb62d5e4ca698da7981704f07da6af6cd32 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MR-102N", "ralink,rt3052-soc";
+       compatible = "aximcom,mr-102n", "ralink,rt3052-soc";
        model = "AXIMCom MR-102N";
 
        cfi@1f000000 {
 
                usb {
                        label = "mr-102n:green:usb";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "mr-102n:amber:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "mr-102n:green:wlan";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 3ed22d5c9ab922d2246c5eab9b296a8de6358f3a..cbd7319a85244ab2ec6dc114cae6aafffcbfe1e1 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                s2 {
                        label = "S2";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                s3 {
                        label = "S3";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index 1670b9c86b023da58c25fe178c441b003268645b..d5f5dbba9fc5dd550994687a28b7f6257ac0b2f6 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index ea175120825e0b2ccc6bab55ff590247c4705cf8..25b3cc7a13d387924462797392df8c4ba2b55fee 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index dfefb0e3201f2041a7208a5230a04481aa36c225..f9f02550cae4d20274ce721a04660cfda5649971 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc";
        model = "Planex MZK-750DHP";
 
        gpio-leds {
 
                wps {
                        label = "mzk-750dhp:green:wps";
-                       gpios = <&gpio2 15 1>;
+                       gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "mzk-750dhp:green:power";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
                        label = "mzk-750dhp:green:wlan5g";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                s1 {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                s2 {
                        label = "wps";
-                       gpios = <&gpio2 19 1>;
+                       gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 2e559d6c7e12bebb0f58e35b87ca7c9190539a55..6e5d9c18044aa5f6bf689c7c842d7eac4c59f294 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MZK-DP150N", "ralink,rt5350-soc";
+       compatible = "planex,mzk-dp150n", "ralink,rt5350-soc";
        model = "Planex MZK-DP150N";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                power {
                        label = "mzk-dp150n:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 854d8a141b1924647614e56daee5bb545d386772..3463201f89bde57152192c6c3725b2de01053527 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "planex,mzk-ex300np", "ralink,mt7620a-soc";
        model = "Planex MZK-EX300NP";
 
        gpio-leds {
 
                wifi {
                        label = "mzk-ex300np:green:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "mzk-ex300np:green:wps";
-                       gpios = <&gpio1 5 1>;
+                       gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
 
                rep {
                        label = "mzk-ex300np:blue:rep";
-                       gpios = <&gpio1 4 1>;
+                       gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
 
                wifi1 {
                        label = "mzk-ex300np:blue:wifi1";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
 
                wifi2 {
                        label = "mzk-ex300np:blue:wifi2";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                };
 
                wifi3 {
                        label = "mzk-ex300np:blue:wifi3";
-                       gpios = <&gpio1 0 1>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 3 0>;
+                       gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index 29a11898e8dfe54755513871e6bf6a73524b4a10..21d47ddfa881edd5c719ef777d296f3f68b59a99 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc";
        model = "Planex MZK-EX750NP";
 
        gpio-leds {
 
                power {
                        label = "mzk-ex750np:red:power";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "mzk-ex750np:red:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "mzk-ex750np:green:wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                rep {
                        label = "mzk-ex750np:blue:rep";
-                       gpios = <&gpio2 16 1>;
+                       gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
                };
 
                wifi1 {
                        label = "mzk-ex750np:blue:wifi1";
-                       gpios = <&gpio2 19 1>;
+                       gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
                };
 
                wifi2 {
                        label = "mzk-ex750np:blue:wifi2";
-                       gpios = <&gpio2 18 1>;
+                       gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
                };
 
                wifi3 {
                        label = "mzk-ex750np:blue:wifi3";
-                       gpios = <&gpio2 17 1>;
+                       gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index 4b002b7c20e308af873e17a3470ca3c2cba14f0f..d96ea609407efefd11a7f27ff60dc5a052ce7a8b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "MZK-W300NH2", "ralink,rt3052-soc";
+       compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc";
        model = "Planex MZK-W300NH2";
 
        cfi@1f000000 {
 
                power {
                        label = "mzk-w300nh2:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "mzk-w300nh2:amber:wlan";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "mzk-w300nh2:amber:wps";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                rt {
                        label = "rt";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index ff26b153b6cd65c4812bf1c38ac74f63e7dacf00..ee0d5c04ebe45f8853bb6c885747c0319513e2c3 100644 (file)
@@ -2,8 +2,10 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "MZK-WDPR", "ralink,rt3052-soc";
+       compatible = "planex,mzk-wdpr", "ralink,rt3052-soc";
        model = "Planex MZK-WDPR";
 
        chosen {
@@ -55,7 +57,7 @@
                lcd_ctrl1 {
                        gpio-export,name = "lcd_ctrl1";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 6f8179cc576276f0dcdf324fc4d7c401019368db..5a63e6842a34c520afa4f768f550d2f8c93dba69 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "microwrt", "ralink,mt7620a-soc";
+       compatible = "microduino,microwrt", "ralink,mt7620a-soc";
        model = "Microduino MicroWRT";
 
        chosen {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index a5393e2a9a2203c684bc60b66ff226a97f96a874..be909cf3349a65d5d6197073d6950a50152a5848 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "sercomm,na930", "ralink,mt7620a-soc";
        model = "Sercomm NA930";
 
        chosen {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                zwave {
                        label = "zwave";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                zwave {
                        label = "na930:blue:zwave";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                status {
                        label = "na930:blue:status";
-                       gpios = <&gpio2 26 1>;
+                       gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
                };
 
                service {
                        label = "na930:blue:service";
-                       gpios = <&gpio2 28 1>;
+                       gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "na930:blue:power";
-                       gpios = <&gpio2 29 1>;
+                       gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -97,7 +98,7 @@
                telit {
                        gpio-export,name = "telit";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index e19ce34b5c36d1629974eda5dcbfac2baaf54140..55590de1bebf18ec753015152149c80fb9387e62 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "NBG-419N", "ralink,rt3052-soc";
+       compatible = "zyxel,nbg-419n", "ralink,rt3052-soc";
        model = "ZyXEL NBG-419N";
 
        cfi@1f000000 {
 
                power {
                        label = "nbg-419n:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "nbg-419n:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 73143bd642dd4335cf6c826eb14788d4f2d90531..a6e48039641a672e2fb32741af6e980324433d62 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3352.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "NBG-419N2", "ralink,rt3352-soc";
+       compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
        model = "ZyXEL NBG-419N v2";
 
        palmbus@10000000 {
 
                power {
                        label = "nbg-419n2:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "nbg-419n2:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "nbg-419n2:green:usb";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
                rfkill {
                        label = "rfkill";
                        linux,input-type = <EV_SW>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index 3c5097f5590fb45578b4b6af89f8545a74c84a9c..500fdf97406fb92a29cbc31ba621f1e722828a31 100644 (file)
@@ -3,7 +3,7 @@
 #include "rt5350.dtsi"
 
 / {
-       compatible = "NCS601W", "ralink,rt5350-soc";
+       compatible = "wansview,ncs601w", "ralink,rt5350-soc";
        model = "Wansview NCS601W";
 };
 
index 5d4cdae7f93580e45af8db26bd0806818ebd1e35..9c127cbbaa1f806e8213e391067a82c51608d907 100644 (file)
@@ -3,6 +3,7 @@
 #include "NIXCORE.dtsi"
 
 / {
+       compatible = "nixcore,x1-16m", "nixcore,x1", "ralink,rt5350-soc";
        model = "NixcoreX1 (16M)";
 };
 
index af78808bd722fc0fed4f404692393a98bbc34c36..bdda4d7a61905c39d6d587e0ba6dd9693d301da7 100644 (file)
@@ -3,6 +3,7 @@
 #include "NIXCORE.dtsi"
 
 / {
+       compatible = "nixcore,x1-8m", "nixcore,x1", "ralink,rt5350-soc";
        model = "NixcoreX1 (8M)";
 };
 
index a827b314089f173c00fb8df0bbea4df871103f2f..4d2a82d242ae9d60e2bf51df71004b55b2b22769 100644 (file)
@@ -1,7 +1,9 @@
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "Nixcore", "ralink,rt5350-soc";
+       compatible = "nixcore,x1", "ralink,rt5350-soc";
 
        chosen {
                bootargs = "console=ttyS1,57600";
                gpio0 {
                        gpio-export,name = "gpio0";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 0 0>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
 
                gpio1 {
                        gpio-export,name = "gpio1";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 0 0>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
                };
 
                /* GPIOs 1-6 are I2C,SPI */
                        /* JTAG_TDO */
                        gpio-export,name = "gpio17";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 17 0>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
                };
 
                gpio18 {
                        /* JTAG_TDI */
                        gpio-export,name = "gpio18";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 18 0>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
                };
 
                gpio19 {
                        /* JTAG_TMS */
                        gpio-export,name = "gpio19";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 19 0>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
                };
 
                gpio20 {
                        /* JTAG_TCLK */
                        gpio-export,name = "gpio20";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 20 0>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
                };
 
                gpio21 {
                        /* JTAG_TRST_N */
                        gpio-export,name = "gpio21";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 21 0>;
+                       gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
                };
 
                /* ETH LEDs */
                gpio22 {
                        gpio-export,name = "gpio22";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 0 0>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
                };
 
                gpio23 {
                        gpio-export,name = "gpio23";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 1 0>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
                };
 
                gpio24 {
                        gpio-export,name = "gpio24";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 2 0>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
                };
 
                gpio25 {
                        gpio-export,name = "gpio25";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 3 0>;
+                       gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
                };
 
                */
                        /* ETH4_LED */
                        gpio-export,name = "gpio26";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 4 0>;
+                       gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
                };
 
                gpio27 {
                        /* spi_cs1 */
                        gpio-export,name = "gpio27";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 5 0>;
+                       gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 60922555d678326df3d12677cf25ad73da89d8b0..904739753654a26baf78a6e43da570ed3d8561b2 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "NW718", "ralink,rt3050-soc";
+       compatible = "netcore,nw718", "ralink,rt3050-soc";
        model = "Netcore NW718";
 
        gpio-leds {
 
                cpu {
                        label = "nw718:amber:cpu";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "nw718:amber:usb";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "nw718:amber:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 47cfa2bf4edd6f917d1d607e15c371c18cc2225b..f5c7c913629826f95c615574411147fda8017871 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                status-red {
                        label = "newifi-d1:red:status";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                status-green {
                        label = "newifi-d1:green:status";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                statys-blue {
                        label = "newifi-d1:blue:status";
-                       gpios = <&gpio0 16 1>;
+                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -44,7 +45,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 15 1>;
+                       gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
                usb2power {
                        gpio-export,name = "usb2power";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                usb3power {
                        gpio-export,name = "usb3power";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index ff6fe1e2e22009f417b87cf3ecd9abcd08c5b22c..0fe372dd3a31664d661674a0529abc4bfd59dea5 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc";
        model = "OY-0001";
 
        chosen {
 
                powerled {
                        label = "oy-0001:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wifiled {
                        label = "oy-0001:green:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -34,7 +35,7 @@
 
                s1 {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 739940efbcb244388e1dc1e0d8ddc09e0d23f341..a982eebbeff0ac04b47ce1c14dc37c8b0c77ce4f 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "mediatek,pbr-d1", "mediatek,mt7628an-soc";
+       compatible = "pandorabox,pbr-d1", "mediatek,mt7628an-soc";
        model = "PBR-D1";
 
        chosen {
 
                usb {
                        label = "pbr-d1:orange:usb";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
                power {
                        label = "pbr-d1:orange:power";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
        };
@@ -45,7 +46,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 38 1>;
+                       gpios = <&gpio1 38 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index a05aee84f194079f92e35305ca56efcbc3d7cb38..f5d5f29a752484457e844c348f40217e58dcba63 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                power {
                        label = "pbr-m1:blue:power";
-                       gpios = <&gpio0 31 1>;
+                       gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
                };
 
                sys {
                        label = "pbr-m1:blue:sys";
-                       gpios = <&gpio1 0 1>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "pbr-m1:blue:internet";
-                       gpios = <&gpio0 29 1>;
+                       gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
                        label = "pbr-m1:blue:wlan2g";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
                        label = "pbr-m1:blue:wlan5g";
-                       gpios = <&gpio0 28 1>;
+                       gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -66,7 +67,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
                power_usb2 {
                        gpio-export,name = "power_usb2";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 22 0>;
+                       gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
                };
 
                power_usb3 {
                        gpio-export,name = "power_usb3";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 25 0>;
+                       gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
                };
 
                power_sata {
                        gpio-export,name = "power_sata";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 27 0>;
+                       gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
                };
        };
 
        beeper: beeper {
                compatible = "gpio-beeper";
-               gpios = <&gpio0 26 1>;
+               gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
        };
 };
 
index 6680f5df2ac556e9f58ceaf5a4b67985fe5a3ece..f008ec7ab742c2d4a64b09cb389eb34ac1069807 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "PSG1208", "ralink,mt7620a-soc";
+       compatible = "phicomm,psg1208", "ralink,mt7620a-soc";
        model = "Phicomm PSG1208";
 
        gpio-leds {
 
                wan {
                        label = "psg1208:white:wps";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "psg1208:white:wlan2g";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index b3b58948d2ddfea43fd931734690539aa7db1cea..c24f5ff2bab8b245ddaf07d97c87d456ed0388a9 100644 (file)
@@ -1,8 +1,11 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "phicomm,psg1218", "ralink,mt7620a-soc";
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -11,7 +14,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index e85ef70cbdae3acb999fd1728f4a56ac3ee4f93f..c63af5803489c49dff59ff5bd01bf6d611d39611 100644 (file)
@@ -3,24 +3,24 @@
 #include "PSG1218.dtsi"
 
 / {
-       compatible = "PSG1218A", "ralink,mt7620a-soc";
+       compatible = "phicomm,psg1218a", "phicomm,psg1218", "ralink,mt7620a-soc";
        model = "Phicomm PSG1218 rev.A";
 
        gpio-leds {
                compatible = "gpio-leds";
                blue {
                        label = "psg1218a:blue:status";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                yellow {
                        label = "psg1218a:yellow:status";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                red {
                        label = "psg1218a:red:status";
-                               gpios = <&gpio0 8 0>;
+                               gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 38ceb95856eb95600768b0d85dea75c12b11ae86..2dfa7635d12758032e400d63e2afcb28e0d8d409 100644 (file)
@@ -3,24 +3,24 @@
 #include "PSG1218.dtsi"
 
 / {
-       compatible = "PSG1218B", "ralink,mt7620a-soc";
+       compatible = "phicomm,psg1218b", "phicomm,psg1218", "ralink,mt7620a-soc";
        model = "Phicomm PSG1218 rev.B";
 
        gpio-leds {
                compatible = "gpio-leds";
                blue {
                        label = "psg1218b:blue:status";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                yellow {
                        label = "psg1218b:yellow:status";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                red {
                        label = "psg1218b:red:status";
-                               gpios = <&gpio0 8 0>;
+                               gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index f749a4e5899472b1ae24d06b27da87a10bf868fa..2297c1126c57eecf01b07d1ff9278ea6aac57b83 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "PSR-680W", "ralink,rt3052-soc";
+       compatible = "petatel,psr-680w", "ralink,rt3052-soc";
        model = "Petatel PSR-680W Wireless 3G Router";
 
        chosen {
@@ -49,7 +50,7 @@
 
                wan {
                        label = "psr-680w:red:wan";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -61,7 +62,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 18ee7426f418014dff44032ce098196d290995bd..c086894fd25407965e37fbd5120abf638d6ef343 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "PWH2004", "ralink,rt3052-soc";
+       compatible = "prolink,pwh2004", "ralink,rt3052-soc";
        model = "Prolink PWH2004";
 
        cfi@1f000000 {
 
                wifi {
                        label = "pwh2004:red:wifi";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "pwh2004:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -62,7 +63,7 @@
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index bd3b271925d73314b5261200ad6e33f6e5eb7ee7..f6d366c3eba6eec092782671988079c7d7471523 100644 (file)
@@ -3,6 +3,7 @@
 #include "PX-4885.dtsi"
 
 / {
+       compatible = "7links,px-4885-4m", "7links,px-4885", "ralink,rt5350-soc";
        model = "7Links PX-4885 (4M)";
 };
 
index 605540928e432f2ba68eef46b9daac433d6c588a..39327e9606de3ce0ae2f1d9f991ec479daf38437 100644 (file)
@@ -3,6 +3,7 @@
 #include "PX-4885.dtsi"
 
 / {
+       compatible = "7links,px-4885-8m", "7links,px-4885", "ralink,rt5350-soc";
        model = "7Links PX-4885 (8M)";
 };
 
index cb9586d556d8e5938671a052e439d511aa779424..ac47ed845743cebcb0aea55035e082d922e4b239 100644 (file)
@@ -1,9 +1,10 @@
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "PX-4885", "ralink,rt5350-soc";
+       compatible = "7links,px-4885", "ralink,rt5350-soc";
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
@@ -13,7 +14,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
                orange {
                        label = "px-4885:orange:wifi";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                };
 
                blue {
                        label = "px-4885:blue:storage";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
        };
 };
index f00bf7e5243788079eb546a96076de79e623efd9..b2b5a29238bca252414ee13aab39be2f9af9619d 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                wifi {
                        label = "re6500:orange:wifi";
-                       gpios = <&gpio0 0 0>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
 
                power {
                        label = "re6500:white:power";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 466a072bae3b6dedf71a7f132ad5f9d9fbffa0d9..b921d9ca5dc50a35b6655c3e92382bbcdfbffe3d 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                touch {
                        label = "touch";
-                       gpios = <&gpio1 0 1>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                audio {
                        label = "audio";
-                       gpios = <&gpio1 3 0>;
+                       gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_1>;
                };
        };
 
                backlight {
                        label = "rp-n53:white:back";
-                       gpios = <&gpio1 4 1>;
+                       gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
 
                wifi0 {
                        label = "rp-n53:blue:5g3";
-                       gpios = <&gpio1 5 1>;
+                       gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
 
                wifi1 {
                        label = "rp-n53:blue:5g2";
-                       gpios = <&gpio1 6 1>;
+                       gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
                };
 
                wifi2 {
                        label = "rp-n53:blue:5g1";
-                       gpios = <&gpio1 7 1>;
+                       gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
                };
 
                wifi3 {
                        label = "rp-n53:blue:wifi";
-                       gpios = <&gpio1 8 1>;
+                       gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
                };
 
                wifi4 {
                        label = "rp-n53:blue:2g1";
-                       gpios = <&gpio1 9 1>;
+                       gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
                wifi5 {
                        label = "rp-n53:blue:2g2";
-                       gpios = <&gpio1 10 1>;
+                       gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
                wifi6 {
                        label = "rp-n53:blue:2g3";
-                       gpios = <&gpio1 11 1>;
+                       gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 38d6992f0cd155514fbab81b0945100a4dc3ec08..af923c6e647a9ea9179c6e8d750e81267e357f2e 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "RT-G32-B1", "ralink,rt3050-soc";
+       compatible = "asus,rt-g32-b1", "ralink,rt3050-soc";
        model = "Asus RT-G32 B1";
 
        gpio-keys-polled {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index cb5a13618d52a6a4e3edd9494af17822b7c0a704..a55d06f1b3fdaeb27bbb253bb4f73be28cc3c781 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "RT-N10-PLUS", "ralink,rt3050-soc";
+       compatible = "asus,rt-n10-plus", "ralink,rt3050-soc";
        model = "Asus RT-N10+";
 
        cfi@1f000000 {
@@ -45,7 +46,7 @@
 
                wps {
                        label = "rt-n10-plus:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 9625415b73e9667afa09951caef6b9835e8daad3..35a6c0aa2c067c50d9b65bb3530a577501301711 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "RT-N13U", "ralink,rt3052-soc";
+       compatible = "asus,rt-n13u", "ralink,rt3052-soc";
        model = "Asus RT-N13U";
 
        cfi@1f000000 {
 
                power {
                        label = "rt-n13u:blue:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "rt-n13u:blue:wifi";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 8bb2701040bcfcec3fe66ddfc73bec7d813de5db..8ae4580b9b43c6562728cfc709453fafcf445a5d 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                wan {
                        label = "rt-n14u:blue:wan";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "rt-n14u:blue:lan";
-                       gpios = <&gpio2 1 1>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "rt-n14u:blue:usb";
-                       gpios = <&gpio2 2 1>;
+                       gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "rt-n14u:blue:power";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                air {
                        label = "rt-n14u:blue:air";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 704d3130c8419fd0a9ad66a75417b39c7c1c45ee..ee1c34024ee59e055c5795a7a3c98efc0a1d7a9d 100644 (file)
@@ -2,12 +2,13 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
        #size-cells = <1>;
-       compatible = "RT-N15", "ralink,rt2880-soc";
+       compatible = "asus,rt-n15", "ralink,rt2880-soc";
        model = "Asus RT-N15";
 
        cfi@1f000000 {
@@ -44,8 +45,8 @@
 
        rtl8366s {
                compatible = "realtek,rtl8366s";
-               gpio-sda = <&gpio0 1 0>;
-               gpio-sck = <&gpio0 2 0>;
+               gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
        };
 
        gpio-keys-polled {
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 0>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -72,7 +73,7 @@
 
                power {
                        label = "rt-n15:blue:power";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
index d101ece83c91e14822d6e2be87b700639d742ba7..417411db77d444916a15ec81d3a74432bdec3217 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "RT-N56U", "ralink,rt3883-soc";
+       compatible = "asus,rt-n56u", "ralink,rt3883-soc";
        model = "Asus RT-N56U";
 
        nor-flash@1c000000 {
@@ -41,8 +42,8 @@
 
        rtl8367 {
                compatible = "realtek,rtl8367";
-               gpio-sda = <&gpio0 1 0>;
-               gpio-sck = <&gpio0 2 0>;
+               gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                power {
                        label = "rt-n56u:blue:power";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "rt-n56u:blue:lan";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
 
                wan {
                        label = "rt-n56u:blue:wan";
-                       gpios = <&gpio1 3 1>;
+                       gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "rt-n56u:blue:usb";
-                       gpios = <&gpio1 0 1>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
        };
 };
index dbd2cf6ad4494eb14bc8ff24744c3d09b4f5b0e8..7811ee20d7616b7b1bd12e05ad2e84f9c4e75f99 100644 (file)
@@ -2,8 +2,10 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "RT5350F-OLINUXINO-EVB", "ralink,rt5350-soc";
+       compatible = "olimex,rt5350f-olinuxino-evb", "ralink,rt5350-soc";
        model = "Olimex RT5350F-OLinuXino-EVB";
 
        gpio_export {
                relay1 {
                        gpio-export,name = "relay1";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 14 0>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                };
 
                relay2 {
                        gpio-export,name = "relay2";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
                button {
                        gpio-export,name = "button";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
        };
 };
index a4f1aa74559f922862841b6e155c5fda663385b4..6ee3daeaa111acc1f599dba157119ebc652447f7 100644 (file)
@@ -3,7 +3,7 @@
 #include "rt5350.dtsi"
 
 / {
-       compatible = "RT5350F-OLINUXINO", "ralink,rt5350-soc";
+       compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc";
        model = "Olimex RT5350F-OLinuXino";
 };
 
index 7a09d4312516e412bd26c7f1635a2a2a65b9fc9b..e80b64d4ec996cd5c7a0afa01d0413595595b6de 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "RUT5XX", "ralink,rt3050-soc";
+       compatible = "teltonika,rut5xx", "ralink,rt3050-soc";
        model = "Teltonika RUT5XX";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                status {
                        label = "rut5xx:green:status";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index e83fd15107595517d9bfea9767c2fc655b2667d7..7264e30b5885fee7eadb5021bc14f2a83d31c1b3 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
@@ -22,7 +23,7 @@
 
                usb {
                        label = "sap-g3200u3:green:usb";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 16 1>;
+                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                rfkill {
                        label = "rfkill";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };
index 7b6dc990e227e0f0617872984071309c547223b0..f6f20a8174e3a4929f554f1fcf91628670ddb22e 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "SL-R7205", "ralink,rt3052-soc";
+       compatible = "skyline,sl-r7205", "ralink,rt3052-soc";
        model = "Skyline SL-R7205 Wireless 3G Router";
 
        cfi@1f000000 {
@@ -45,7 +46,7 @@
 
                wifi {
                        label = "sl-r7205:green:wifi";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index af910798f5b0401efba7b8821821b37cb59057a1..0ee5e4ab2c0cfffaa8641c1bdb61611d076ca9ec 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "TEW-691GR", "ralink,rt3883-soc";
+       compatible = "trendnet,tew-691gr", "ralink,rt3883-soc";
        model = "TRENDnet TEW-691GR";
 
        nor-flash@1c000000 {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                rfkill {
                        label = "rfkill";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };
@@ -69,7 +70,7 @@
 
                wps {
                        label = "tew-691gr:green:wps";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 };
index b9c7006406e898f48cd48a15bcf0c6b2c75f8fdb..a2e853a0ae42810b643b909fa260a9f728d3c3b2 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3883.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "TEW-692GR", "ralink,rt3883-soc";
+       compatible = "trendnet,tew-692gr", "ralink,rt3883-soc";
        model = "TRENDnet TEW-692GR";
 
        nor-flash@1c000000 {
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
                wps {
                        label = "tew-692gr:orange:wps";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps2 {
                        label = "tew-692gr:green:wps";
-                       gpios = <&gpio1 4 1>;
+                       gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 27727cb8814e9cb76ac5763c321b17a12d260538..5099e5ce30a68c143efc45433d9955c9cac37e1a 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "TEW-714TRU", "ralink,rt5350-soc";
+       compatible = "trendnet,tew-714tru", "ralink,rt5350-soc";
        model = "TRENDnet TEW714TRU";
 
        gpio-leds {
 
                usb {
                        label = "tew-714tru:red:usb";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "tew-714tru:green:wifi";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                 reset {
                         label = "reset";
-                        gpios = <&gpio0 10 1>;
+                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                         linux,code = <KEY_RESTART>;
                 };
 
                 wps {
                         label = "wps";
-                        gpios = <&gpio0 0 1>;
+                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                         linux,code = <KEY_WPS_BUTTON>;
                 };
        };
 
                repeater {
                        gpio-export,name = "repeater_switch";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                wisp {
                        gpio-export,name = "wisp_switch";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 460227db101e062f19d8a7426d073723dcc413a0..27c443ee241f29de02b61061e90b21a910f0d31b 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "TINY-AC", "ralink,mt7620a-soc";
+       compatible = "dovado,tiny-ac", "ralink,mt7620a-soc";
        model = "Dovado Tiny AC";
 
        chosen {
 
                usb {
                        label = "tiny-ac:green:usb";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "tiny-ac:orange:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
        };
@@ -35,7 +36,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
@@ -48,7 +49,7 @@
                usbpower {
                        gpio-export,name = "usbpower";
                        gpio-export,output = <1>;
-                       gpios = <&gpio2 5 0>;
+                       gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 7cde7ba4f2eab1d14f2a5c772916eccf44882d25..066d16a8f9f5667feae13ef36bffb75729810834 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                statw {
                        label = "timecloud:white:status";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                stato {
                        label = "timecloud:orange:status";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
        };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
-                       gpios = <&gpio0 4 1>;
+                       gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index 4246fa4f3741e6f027e1e8faa9d25d6c8b0839ae..ecb747c766b688cdb4569a5af8ce6b1807c01d47 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "UR-326N4G", "ralink,rt3052-soc";
+       compatible = "upvel,ur-326n4g", "ralink,rt3052-soc";
        model = "UPVEL UR-326N4G";
 
        cfi@1f000000 {
 
                3g {
                        label = "ur-326n4g:green:3g";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                gateway {
                        label = "ur-326n4g:green:gateway";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                ap {
                        label = "ur-326n4g:green:ap";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "ur-326n4g:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                station {
                        label = "ur-326n4g:green:station";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index 09cd28f14a08f3218ba4a32eb00cb1f29b0db6bd..31aa62e72ecbac319348718f4150e730845ede61 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "UR-336UN", "ralink,rt3052-soc";
+       compatible = "upvel,ur-336un", "ralink,rt3052-soc";
        model = "UPVEL UR-336UN";
 
        cfi@1f000000 {
 
                3g {
                        label = "ur-336un:green:3g";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                gateway {
                        label = "ur-336un:green:gateway";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                ap {
                        label = "ur-336un:green:ap";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "ur-336un:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                station {
                        label = "ur-336un:green:station";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index c4867d8f1c3593c893d9933d34211f74054e2678..ae306670cf804b834f27139d2762b1273b5d79ee 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "V11ST-FE", "ralink,rt2880-soc";
+       compatible = "ralink,v11st-fe", "ralink,rt2880-soc";
        model = "Ralink V11ST-FE";
 
        pci@440000 {
@@ -57,7 +58,7 @@
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 0>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
@@ -67,7 +68,7 @@
 
                status {
                        label = "v11st-fe:green:status";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 29d14c2e5feda0a87e2fa4818399d9458508ced0..8b0fba1919ab072854a328363253bb04fa233ccc 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "V22RW-2X2", "ralink,rt3052-soc";
+       compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc";
        model = "Ralink AP-RT3052-V22RW-2X2";
 
        cfi@1f000000 {
 
                security {
                        label = "v22rw-2x2:green:security";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "v22rw-2x2:red:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index d2792c4b8c81d544e40fb6e3b66e5585156908b8..f6422f1625a09598c19f00482f047d62d76891dd 100644 (file)
@@ -3,6 +3,7 @@
 #include "VOCORE.dtsi"
 
 / {
+       compatible = "vocore,vocore-16m", "vocore,vocore", "ralink,rt5350-soc";
        model = "VoCore (16M)";
 };
 
index ea14a420a56fcc88e5c83c5db6c55ce7cb51a29b..e329324fd44347b21b6e95d84e3bd9c4d48825e6 100644 (file)
@@ -3,6 +3,7 @@
 #include "VOCORE.dtsi"
 
 / {
+       compatible = "vocore,vocore-8m", "vocore,vocore", "ralink,rt5350-soc";
        model = "VoCore (8M)";
 };
 
index 36f784a389ff2edbdc4fc7b2bceeab0982b86a7b..4c4522710edf9887c4a42cc20d9e3145f2bbdc2f 100644 (file)
@@ -1,7 +1,9 @@
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "VoCore", "ralink,rt5350-soc";
+       compatible = "vocore,vocore", "ralink,rt5350-soc";
 
        gpio-export {
                compatible = "gpio-export";
@@ -10,7 +12,7 @@
                gpio0 {
                        gpio-export,name = "gpio0";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 0 0>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
 
                /* UARTF */
                        /* UARTF_RTS_N */
                        gpio-export,name = "gpio7";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                gpio8 {
                        /* UARTF_TXD */
                        gpio-export,name = "gpio8";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
 
                gpio9 {
                        /* UARTF_CTS_N */
                        gpio-export,name = "gpio9";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
                gpio12 {
                        /* UARTF_DCD_N */
                        gpio-export,name = "gpio12";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
                gpio13 {
                        /* UARTF_DSR_N */
                        gpio-export,name = "gpio13";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
 
                gpio14 {
                        /* UARTF_RIN */
                        gpio-export,name = "gpio14";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 14 0>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                };
 
                /* JTAG */
                        /* JTAG_TDO */
                        gpio-export,name = "gpio17";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 17 0>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
                };
 
                gpio18 {
                        /* JTAG_TDI */
                        gpio-export,name = "gpio18";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 18 0>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
                };
 
                gpio19 {
                        /* JTAG_TMS */
                        gpio-export,name = "gpio19";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 19 0>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
                };
 
                gpio20 {
                        /* JTAG_TCLK */
                        gpio-export,name = "gpio20";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 20 0>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
                };
 
                gpio21 {
                        /* JTAG_TRST_N */
                        gpio-export,name = "gpio21";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio0 21 0>;
+                       gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
                };
 
                /* ETH LEDs */
                        /* ETH0_LED */
                        gpio-export,name = "gpio22";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 0 0>;
+                       gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
                };
 
                gpio23 {
                        /* ETH1_LED */
                        gpio-export,name = "gpio23";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 1 0>;
+                       gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
                };
 
                gpio24 {
                        /* ETH2_LED */
                        gpio-export,name = "gpio24";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 2 0>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
                };
 
                gpio25 {
                        /* ETH3_LED */
                        gpio-export,name = "gpio25";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 3 0>;
+                       gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
                };
 
                gpio26 {
                        /* ETH4_LED */
                        gpio-export,name = "gpio26";
                        gpio-export,direction_may_change = <1>;
-                       gpios = <&gpio1 4 0>;
+                       gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
                };
        };
 
                status {
                        /* UARTF_RXD */
                        label = "vocore:green:status";
-                       gpios = <&gpio0 10 0>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                };
 
                eth {
                        /* UARTF_DTR_N */
                        label = "vocore:orange:eth";
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 9173951d680d80f3e49232d00f31b9379745b7cd..a2799e80f63b621ccb93082a8d069d35eb146f06 100644 (file)
@@ -6,7 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "vocore,VoCore2", "mediatek,mt7628an-soc";
+       compatible = "vocore,vocore2", "mediatek,mt7628an-soc";
        model = "VoCore2";
 
        chosen {
index c3a6e1c4c79086126f64b6a44c3723668e1ca71d..776cc2ac5cb7915b0bc67fd3bef1d746c7d126ca 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
@@ -22,7 +23,7 @@
 
                power {
                        label = "vr500:green:power";
-                       gpios = <&gpio1 13 1>;
+                       gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -34,7 +35,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 9ac84a0f4b774b0beb1e84e41ff17d6474d5eafd..d2f85740833219801b9e835be83ba7729beb3038 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "W150M", "ralink,rt3050-soc";
+       compatible = "tenda,w150m", "ralink,rt3050-soc";
        model = "Tenda W150M";
 
        cfi@1f000000 {
 
                3grouter {
                        label = "w150m:blue:3grouter";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                ap {
                        label = "w150m:blue:ap";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wisprouter {
                        label = "w150m:blue:wisprouter";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wirelessrouter {
                        label = "w150m:blue:wirelessrouter";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "w150m:blue:3g";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wpsreset {
                        label = "w150m:blue:wpsreset";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index ff5ca59ad6df2a61037863fc00eaf55532c719d3..5aeb91cfb7df1b86c7a9f26efa326ae3a2b03b0c 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "W306R_V20", "ralink,rt3052-soc";
+       compatible = "tenda,w306r-v2", "ralink,rt3052-soc";
        model = "Tenda W306R V2.0";
 
        cfi@1f000000 {
 
                sys {
                        label = "w306r-v20:green:sys";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "w306r-v20:green:wps";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -62,7 +63,7 @@
 
                reset {
                        label = "RESET/WPS";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 1de6ffa337000c17cd8fcb720bd36c058a9a3090..b02c6c125622db4a83976a83b157521f0a4dd0f9 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "W502U", "ralink,rt3052-soc";
+       compatible = "alfanetworks,w502u", "ralink,rt3052-soc";
        model = "ALFA Networks W502U";
 
        chosen {
 
                usb {
                        label = "w502u:blue:usb";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "w502u:blue:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index b47dd8b4afededdd99c933a3a04312b6c6d58e57..9a4c4fc7d1205805f2b718c01c446e98c46a3562 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WCR150GN", "ralink,rt3050-soc";
+       compatible = "sparklan,wcr150gn", "ralink,rt3050-soc";
        model = "Sparklan WCR-150GN";
 
        cfi@1f000000 {
 
                user {
                        label = "wcr-150gn:amber:user";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wcr-150gn:amber:power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index f85e2e169cbe60511487a4aecfcb69ea86fda03f..33f521cb95e2f0d41eededbc9d3301024f3e357f 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                usb {
                        label = "wf-2881:green:usb";
-                       gpios = <&gpio0 6 1>;
+                       gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "wf-2881:green:wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -39,7 +40,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 1f200cd68919d250b1ec1e29a57971b5a90ecd6a..e8324bfc336c9e3cce131428ca46ee15521a48bd 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc";
        model = "Buffalo WHR-1166D";
 
        gpio-leds {
 
                power {
                        label = "whr-1166d:red:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "whr-1166d:green:wifi";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
                        label = "whr-1166d:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wifi2 {
                        label = "whr-1166d:orange:wifi";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "whr-1166d:green:internet";
-                       gpios = <&gpio2 17 1>;
+                       gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
                };
 
                router {
                        label = "whr-1166d:orange:router";
-                       gpios = <&gpio2 18 1>;
+                       gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
                };
 
                router2 {
                        label = "whr-1166d:green:router";
-                       gpios = <&gpio2 19 1>;
+                       gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio2 12 1>;
+                       gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio2 13 1>;
+                       gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
-                       gpios = <&gpio2 14 1>;
+                       gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
-                       gpios = <&gpio2 15 1>;
+                       gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
index 44387541b11871cb53066d940442ccbfdb2c5796..f74a0b84b83d2b4425699229177d6644f6c7f926 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "buffalo,whr-300hp2", "ralink,mt7620a-soc";
        model = "Buffalo WHR-300HP2";
 
        gpio-leds {
 
                power {
                        label = "whr-300hp2:red:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "whr-300hp2:green:wifi";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
                        label = "whr-300hp2:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wifi2 {
                        label = "whr-300hp2:orange:wifi";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "whr-300hp2:green:internet";
-                       gpios = <&gpio2 17 1>;
+                       gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
                };
 
                router {
                        label = "whr-300hp2:green:router";
-                       gpios = <&gpio2 18 1>;
+                       gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
                };
 
                router2 {
                        label = "whr-300hp2:orange:router";
-                       gpios = <&gpio2 19 1>;
+                       gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio2 12 1>;
+                       gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio2 13 1>;
+                       gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
-                       gpios = <&gpio2 14 1>;
+                       gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
-                       gpios = <&gpio2 15 1>;
+                       gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
index 1100261da99c735ca344bf860dd41e5b1ec6f8b4..611a23d9bbbca5b9fcae21a364c9ff489e262da2 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "buffalo,whr-600d", "ralink,mt7620a-soc";
        model = "Buffalo WHR-600D";
 
        gpio-leds {
 
                power {
                        label = "whr-600d:red:power";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "whr-600d:green:wifi";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
                        label = "whr-600d:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wifi2 {
                        label = "whr-600d:orange:wifi";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "whr-600d:green:internet";
-                       gpios = <&gpio2 17 1>;
+                       gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
                };
 
                router {
                        label = "whr-600d:green:router";
-                       gpios = <&gpio2 18 1>;
+                       gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
                };
 
                router2 {
                        label = "whr-600d:orange:router";
-                       gpios = <&gpio2 19 1>;
+                       gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio2 12 1>;
+                       gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio2 13 1>;
+                       gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                ap {
                        label = "ap";
-                       gpios = <&gpio2 14 1>;
+                       gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                bridge {
                        label = "bridge";
-                       gpios = <&gpio2 15 1>;
+                       gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
index e2b19ce03ed71bb4500171d8f4267c64c0e67c2b..da861ce66e4202a6df6cc7a5abf1dfdc7ffd2f87 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WHR-G300N", "ralink,rt3052-soc";
+       compatible = "buffalo,whr-g300n", "ralink,rt3052-soc";
        model = "Buffalo WHR-G300N";
 
        cfi@1f000000 {
 
                diag {
                        label = "whr-g300n:red:diag";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                router {
                        label = "whr-g300n:green:router";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                security {
                        label = "whr-g300n:amber:security";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                router-off {
                        label = "router-off";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_2>;
                };
 
                router-on {
                        label = "router-on";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_3>;
                };
        };
index 0be11e9a8ea556056781674e86fba9a07e09c838..195e80605b5c41f8d3474def3c91ee37f88ff4dd 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "mediatek,widora-neo", "mediatek,mt7628an-soc";
+       compatible = "widora,neo", "mediatek,mt7628an-soc";
        model = "Widora-NEO";
 
        chosen {
@@ -22,7 +23,7 @@
 
                wifi {
                        label = "widora:orange:wifi";
-                       gpios = <&wgpio 0 0>;
+                       gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
        };
@@ -35,7 +36,7 @@
 
                wps {
                        label = "reset";
-                       gpios = <&gpio1 6 1>;
+                       gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index cadce81a35ea6a6cec8122268529d6a58f99c4b1..097c8163ff2df13f15c73c026d1dc021e7b8ba0a 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
@@ -37,7 +38,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 623e351104e373da2b74696825f89f77bbed0ff0..3cd48cdeb4919f1fa2d4933dbb664771f47e4b2a 100644 (file)
@@ -3,7 +3,7 @@
 #include "rt5350.dtsi"
 
 / {
-       compatible = "WIZARD8800", "ralink,rt5350-soc";
+       compatible = "easyacc,wizard8800", "ralink,rt5350-soc";
        model = "EASYACC WI-STOR WIZARD 8800";
 };
 
index 9f1956496912871b4b08373a06fedb6594d1a31b..882086bcc046797fbf054229095f20aa6a425321 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "wizfi630a", "ralink,rt5350-soc";
+       compatible = "wiznet,wizfi630a", "ralink,rt5350-soc";
        model = "WIZnet WizFi630A";
 
        chosen {
 
                run {
                        label = "wizfi630a::run";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "wizfi630a::wps";
-                       gpios = <&gpio0 20 1>;
+                       gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
                uart1 {
                        label = "wizfi630a::uart1";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                };
 
                uart2 {
                        label = "wizfi630a::uart2";
-                       gpios = <&gpio0 21 1>;
+                       gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 17 1>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
                
                scm1 {
                        label = "SCM1";
-                       gpios = <&gpio0 19 1>;
+                       gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                scm2 {
                        label = "SCM2";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index 3095e245107b42849722a73b93e86e5282a2ac5f..0eb7b7ff78c7a1bdd545723cfb9383f8fd8e3975 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WL-330N", "ralink,rt3050-soc";
+       compatible = "asus,wl-330n", "ralink,rt3050-soc";
        model = "Asus WL-330N";
 
        gpio-leds {
 
                link {
                        label = "wl-330n:blue:link";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wl-330n:blue:power";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 948d37dc9898af35367b1c1ef7f718034a53d557..3801a9d9efc6d0463189b7d0a7b739e12ae92f63 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WL-330N3G", "ralink,rt3050-soc";
+       compatible = "asus,wl-330n3g", "ralink,rt3050-soc";
        model = "Asus WL-330N3G";
 
        gpio-leds {
 
                3g {
                        label = "wl-330n3g:blue:3g";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                3g2 {
                        label = "wl-330n3g:red:3g";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wl-330n3g:blue:power";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index e8b6d689de4dec5206c9d811fd9251bda95e090c..02b8e1438541a7f3dba9ad181f5d8e10d3797e83 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WL-341V3", "ralink,rt3052-soc";
+       compatible = "sitecom,wl-341-v3", "ralink,rt3052-soc";
        model = "Sitecom WL-341 v3";
 
        cfi@1f000000 {
 
                first {
                        label = "wl-341v3:amber:first";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                first2 {
                        label = "wl-341v3:blue:first";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                third {
                        label = "wl-341v3:amber:third";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                third2 {
                        label = "wl-341v3:blue:third";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                fourth {
                        label = "wl-341v3:blue:fourth";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                fifth {
                        label = "wl-341v3:amber:fifth";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                fifth2 {
                        label = "wl-341v3:blue:fifth";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 5 1>;
+                       gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 0c65f2f45c1d692cf03221f41030d0879e517ff8..e620f10d84c1caeb480ff2bcad9bb57c54abd38e 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WL-351", "ralink,rt3052-soc";
+       compatible = "sitecom,wl-351", "ralink,rt3052-soc";
        model = "Sitecom WL-351 v1 002";
 
        cfi@1f000000 {
 
                power {
                        label = "wl-351:amber:power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                unpopulated {
                        label = "wl-351:amber:unpopulated";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                unpopulated2 {
                        label = "wl-351:blue:unpopulated";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
        rtl8366rb {
                compatible = "realtek,rtl8366rb";
-               gpio-sda = <&gpio0 1 0>;
-               gpio-sck = <&gpio0 2 0>;
+               gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
        };
 };
 
index 79e5c341d86f1d8df94a0aad317a055f33449c46..3c04d49b6630c7616f5d8cb7e04c38a80c11ff3a 100644 (file)
@@ -2,12 +2,13 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
        #size-cells = <1>;
-       compatible = "WLI-TX4-AG300N", "ralink,rt2880-soc";
+       compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc";
        model = "Buffalo WLI-TX4-AG300N";
 
        cfi@1f000000 {
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                bandwidth {
                        label = "bandwidth";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
                diag {
                        label = "wli-tx4-ag300n:red:diag";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wli-tx4-ag300n:blue:power";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                security {
                        label = "wli-tx4-ag300n:blue:security";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
index ff3096907ed673387e0799a9cf5876515f886d81..4f8ba6fff9cf8179a93081b881108e2fc7104bd5 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
        model = "Sitecom WLR-6000";
 
        gpio-keys-polled {
index a56f71642e7c10199d095f0a1d7d680333c303fb..63354dafbe7cece3f83fbc94eb7b15877e6b64b3 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                aoss1 {
                        label = "wmr-300:red:aoss";
-                       gpios = <&gpio2 1 1>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                aoss2 {
                        label = "wmr-300:green:aoss";
-                       gpios = <&gpio2 2 1>;
+                       gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wmr-300:green:status";
-                       gpios = <&gpio2 4 1>;
+                       gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index 933cf1a25af3b27cb16e7d2eddaa96fe76341048..8fb76c0a49060b9b7fd4bac4ba3067e007c862e2 100644 (file)
@@ -8,7 +8,7 @@
 #include <dt-bindings/gpio/gpio.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "netgear,wn3000rp-v3", "ralink,mt7620a-soc";
        model = "Netgear WN3000RPv3";
 
        chosen {
index fd529660070ff18bb0227c1c7a679fa1e2ac4f46..0421ee660b13a6d7fc2f5472381442bacc5f0b2c 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WNCE2001", "ralink,rt3052-soc";
+       compatible = "netgear,wnce2001", "ralink,rt3052-soc";
        model = "Netgear WNCE2001";
 
        chosen {
 
                power-green {
                        label = "wnce2001:green:power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                power-red {
                        label = "wnce2001:red:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan-green {
                        label = "wnce2001:green:wlan";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
                wlan-red {
                        label = "wnce2001:red:wlan";
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                rt {
                        label = "rt";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
                ap {
                        label = "ap";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
index 61e8b68c2bc0c31c250fd5eecd4cd53037762f87..c7800115d48f9223832edeae73b2acbe50667031 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                wps {
                        label = "wndr3700v5:green:wps";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wndr3700v5:green:power";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wndr3700v5:wps";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                wifi {
                        label = "wndr3700v5:wifi";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RFKILL>;
                };
 
                reset {
                        label = "wndr3700v5:reset";
-                       gpios = <&gpio0 14 0>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -63,7 +64,7 @@
                usbpower {
                        gpio-export,name = "usbpower";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 966faf2fd56a19fd6d0613d83745e2cc9399e99c..86355277f75f87c0cc178021d3152c3d27490938 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WR512-3GN", "ralink,rt3052-soc";
+       compatible = "unbranded,wr512-3gn-4m", "unbranded,wr512-3gn", "ralink,rt3052-soc";
        model = "WR512-3GN (4M)";
 
        cfi@1f000000 {
 
                3g {
                        label = "wr512-3gn:green:3g";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                gateway {
                        label = "wr512-3gn:green:gateway";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                ap {
                        label = "wr512-3gn:green:ap";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "wr512-3gn:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                station {
                        label = "wr512-3gn:green:station";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index b376a67b58d8ed4f97d7c5cb81ad228a662fccb1..aa469082fe4e32cfd2ff5bdfbe4ed8aa32132c27 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WR512-3GN", "ralink,rt3052-soc";
+       compatible = "unbranded,wr512-3gn-8m", "unbranded,wr512-3gn", "ralink,rt3052-soc";
        model = "WR512-3GN (8M)";
 
        cfi@1f000000 {
 
                3g {
                        label = "wr512-3gn:green:3g";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                gateway {
                        label = "wr512-3gn:green:gateway";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                ap {
                        label = "wr512-3gn:green:ap";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "wr512-3gn:green:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                station {
                        label = "wr512-3gn:green:station";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset_wps {
                        label = "reset_wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
        };
index 1740b188fb450f7d846deb8eb48792153a5c7a3d..3cc1b23efbcd8db13484c21b85b0493d75b7b997 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "WR6202", "ralink,rt3052-soc";
+       compatible = "accton,wr6202", "ralink,rt3052-soc";
        model = "AWB WR6202";
 
        chosen {
 
                wps {
                        label = "wr6202:blue:wps";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "wr6202:blue:3g";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
@@ -84,7 +85,7 @@
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index c336ba317a22a5582d0480e3e6547570d8932dd5..2b40f981f21b257fd51a95e9ac8844a3ede23abb 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                wps {
                        label = "wrh-300cr:green:wps";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                ethernet {
                        label = "wrh-300cr:green:ethernet";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "wrh-300cr:green:wlan";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
index df10eefcbfd8ee161683a87503de83902d7ba4ff..888d32ab162b812930431ac3254622e68dbedef7 100644 (file)
@@ -2,8 +2,10 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "wrtnode", "ralink,mt7620n-soc";
+       compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
        model = "WRTNODE";
 
        gpio-leds {
@@ -11,7 +13,7 @@
 
                indicator {
                        label = "wrtnode:blue:indicator";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
        };
 };
index ca7aa3befc12d00759cc8d169c6afd45e99c571c..4253c57a34156b812686f48298cd1850f4c25d89 100644 (file)
@@ -1,8 +1,11 @@
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -15,7 +18,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 5 1>;
+                       gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 94c21a4249eed5e103223e4067e5fe4cd75671fd..53619138b1143631ca9e5c7d0065fbbb2f1620f6 100644 (file)
@@ -3,7 +3,7 @@
 #include "WRTNODE2.dtsi"
 
 / {
-       compatible = "mediatek,wrtnode2p", "mediatek,mt7628an-soc";
+       compatible = "wrtnode,wrtnode2p", "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
        model = "WRTnode2P";
 
        gpio-leds {
@@ -11,7 +11,7 @@
 
                indicator {
                        label = "wrtnode:blue:indicator";
-                       gpios = <&gpio1 9 1>;
+                       gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
        }; 
 };
index 1c25770e76f8caf5e05f87252e0484332c83759d..abcbc7377568caeff5c403bcba034c9f7c48f090 100644 (file)
@@ -3,7 +3,7 @@
 #include "WRTNODE2.dtsi"
 
 / {
-       compatible = "mediatek,wrtnode2r", "mediatek,mt7628an-soc";
+       compatible = "wrtnode,wrtnode2r", "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
        model = "WRTnode2R";
 
        gpio-leds {
@@ -11,7 +11,7 @@
 
                indicator {
                        label = "wrtnode:blue:indicator";
-                       gpios = <&gpio1 12 1>;
+                       gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
        }; 
 };
index 16df2b776d330b6935662aac885f4c45f60afc45..38edbde74584bf408eea9ba8408f0a3e46f56198 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                internet_g {
                        label = "wsr-1166:green:internet";
-                       gpios = <&gpio1 9 1>;
+                       gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
                router_g {
                        label = "wsr-1166:green:router";
-                       gpios = <&gpio1 10 1>;
+                       gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
                router_o {
                        label = "wsr-1166:orange:router";
-                       gpios = <&gpio1 11 1>;
+                       gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
 
                internet_o {
                        label = "wsr-1166:orange:internet";
-                       gpios = <&gpio1 12 1>;
+                       gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
 
                wifi_o {
                        label = "wsr-1166:orange:wifi";
-                       gpios = <&gpio1 13 1>;
+                       gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "wsr-1166:green:power";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                diag {
                        label = "wsr-1166:orange:diag";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wifi_g {
                        label = "wsr-1166:green:wifi";
-                       gpios = <&gpio1 16 1>;
+                       gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                power {
                        label = "power";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 3 1>;
+                       gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio0 6 1>;
+                       gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                auto {
                        label = "mode";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                ap {
                        label = "ap";
-                       gpios = <&gpio0 10 0>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                router {
                        label = "router";
-                       gpios = <&gpio0 12 0>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
        gpio_poweroff {
                compatible = "gpio-poweroff";
-               gpios = <&gpio0 0 1>;
+               gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
        };
 };
 
index 3e48d3efa23dcaf644835f9af57328cbd9d126c8..1db280902730d6d027cbecdd77645b10ad92ba7a 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                power {
                        label = "wsr-600:green:power";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wifi_o {
                        label = "wsr-600:orange:wifi";
-                       gpios = <&gpio1 9 1>;
+                       gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
                diag {
                        label = "wsr-600:orange:diag";
-                       gpios = <&gpio1 10 1>;
+                       gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
                wifi_g {
                        label = "wsr-600:green:wifi";
-                       gpios = <&gpio1 12 1>;
+                       gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
 
                router_o {
                        label = "wsr-600:orange:router";
-                       gpios = <&gpio1 13 1>;
+                       gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
                };
 
                router_g {
                        label = "wsr-600:green:router";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                internet_o {
                        label = "wsr-600:orange:internet";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                internet_g {
                        label = "wsr-600:green:internet";
-                       gpios = <&gpio1 16 1>;
+                       gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                power {
                        label = "power";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                aoss {
                        label = "aoss";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                auto {
                        label = "mode";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                ap {
                        label = "ap";
-                       gpios = <&gpio0 6 0>;
+                       gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
                router {
                        label = "router";
-                       gpios = <&gpio0 10 0>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
 
        gpio_poweroff {
                compatible = "gpio-poweroff";
-               gpios = <&gpio1 11 1>;
+               gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
        };
 };
 
index 7db82428fca2d31ef10d5fda57a45200249980fc..358d839534e50940669ae10449aa057e8f64dd41 100644 (file)
@@ -3,6 +3,7 @@
 #include "WT1520.dtsi"
 
 / {
+       compatible = "nexx,wt1520-4m", "nexx,wt1520", "ralink,rt5350-soc";
        model = "Nexx WT1520 (4M)";
 };
 
index 101f3d7c91911671f3781f023532585edc7670c5..0451998b65b5d4b368fa7e74d1896edc449165ab 100644 (file)
@@ -3,6 +3,7 @@
 #include "WT1520.dtsi"
 
 / {
+       compatible = "nexx,wt1520-8m", "nexx,wt1520", "ralink,rt5350-soc";
        model = "Nexx WT1520 (8M)";
 };
 
index 4c889d1d1d89b4e196a26794c2ff5c4379272907..1031e22749190a6a34fec0e6441fccb030fccd48 100644 (file)
@@ -1,7 +1,7 @@
 #include "rt5350.dtsi"
 
 / {
-       compatible = "NEXXWT1520", "ralink,rt5350-soc";
+       compatible = "nexx,wt1520", "ralink,rt5350-soc";
 
        memory@0 {
                device_type = "memory";
index c2d83f9fabca8bf695af2cfbf9082bbe4fcff445..0d6e57399502e1f18db0e380edbead8a9127d5e5 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "wt3020", "ralink,mt7620n-soc";
+       compatible = "nexx,wt3020-4m", "nexx,wt3020", "ralink,mt7620n-soc";
        model = "Nexx WT3020 (4M)";
 
        gpio-keys-polled {
@@ -16,7 +17,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -26,7 +27,7 @@
 
                power {
                        label = "wt3020:blue:power";
-                       gpios = <&gpio3 0 0>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index 987eed4ee541d1e587a50bc8816e4acfeefe778a..9d78e26965d8fab935e2c9809336c3b30c4cf5eb 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "wt3020", "ralink,mt7620n-soc";
+       compatible = "nexx,wt3020-8m", "nexx,wt3020", "ralink,mt7620n-soc";
        model = "Nexx WT3020 (8M)";
 
        gpio-keys-polled {
@@ -16,7 +17,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -26,7 +27,7 @@
 
                power {
                        label = "wt3020:blue:power";
-                       gpios = <&gpio3 0 0>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index c644df47949ed855329e47576f602346bbbe98ad..ff7a5ecf9416ed6566e0a3d05c6c3809b11579df 100644 (file)
@@ -2,12 +2,13 @@
 
 #include "rt2880.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
        #address-cells = <1>;
        #size-cells = <1>;
-       compatible = "WZR-AGL300NH", "ralink,rt2880-soc";
+       compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
        model = "Buffalo WZR-AGL300NH";
 
        pci@440000 {
@@ -48,8 +49,8 @@
 
        rtl8366s {
                compatible = "realtek,rtl8366s";
-               gpio-sda = <&gpio0 1 0>;
-               gpio-sck = <&gpio0 2 0>;
+               gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+               gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
        };
 
        gpio-keys-polled {
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                router {
                        label = "router_switch";
-                       gpios = <&gpio0 7 0>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                        linux,code = <BTN_0>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
                router {
                        label = "wzr-agl300nh:green:router";
-                       gpios = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                diag {
                        label = "wzr-agl300nh:red:diag";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                security_g {
                        label = "wzr-agl300nh:orange:security_g";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                security_n {
                        label = "wzr-agl300nh:orange:security_n";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 9cae72c8fb7f82ac181aaa02bb424310b3eee049..8911fa80e52bc1b05fa61eb63e4938dd04d23788 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "X5", "ralink,rt5350-soc";
+       compatible = "poray,x5", "ralink,rt5350-soc";
        model = "Poray X5";
 
        gpio-leds {
 
                power {
                        label = "x5:green:power";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                20 {
                        label = "x5:green:20";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                50 {
                        label = "x5:green:50";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                80 {
                        label = "x5:green:80";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                bat {
                        label = "bat";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                        linux,input-type = <EV_SW>;
                };
@@ -65,7 +66,7 @@
                usb-mode {
                        gpio-export,name = "usb-mode";
                        gpio-export,output = <0>;
-                       gpios = <&gpio0 18 0>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
                };
        };
 };
index de5170e2adb541167ec7a637b553b87232a82f94..30041e0b07c1a388c1eb81e2ce6c4858bb88bd45 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "X8", "ralink,rt5350-soc";
+       compatible = "poray,x8", "ralink,rt5350-soc";
        model = "Poray X8";
 
        gpio-leds {
@@ -13,7 +14,7 @@
 
                power {
                        label = "x8:green:power";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -25,7 +26,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 304da9cf6e9b51de43e6403310343addbba8bdfa..cba8f08812a038d63ea5f3820044fc4ddb319177 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "XDXRN502J", "ralink,rt3052-soc";
+       compatible = "unbranded,xdxrn502j", "ralink,rt3052-soc";
        model = "XDX RN502J";
 
        cfi@1f000000 {
 
                wifi {
                        label = "xdxrn502j:green:wifi";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "xdxrn502j:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -62,7 +63,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index ac9b7d56c04e1e59a4d1bf8ec24ba1f7d4e08fbb..15b3b3b81952cb6a88a314e033b516be2982e767 100644 (file)
@@ -3,7 +3,7 @@
 #include "Y1.dtsi"
 
 / {
-       compatible = "lenovo,Y1", "ralink,mt7620a-soc";
+       compatible = "lenovo,y1", "ralink,mt7620a-soc";
        model = "Lenovo Y1";
 
        gpio-leds {
 
                power1 {
                        label = "y1:blue:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan1 {
                        label = "y1:blue:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan2 {
                        label = "y1:blue:wifi5g";
-                       gpios = <&gpio2 10 1>;
+                       gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "y1:blue:usb";
-                       gpios = <&gpio2 12 1>;
+                       gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "y1:blue:lan";
-                       gpios = <&gpio2 15 1>;
+                       gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "y1:blue:internet";
-                       gpios = <&gpio2 11 1>;
+                       gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 0ac04c43c168ea92e2b4e307720ac0d40bf368f3..022b67949dd1c6c74b0a93f89f07ade85424a5ba 100644 (file)
@@ -1,8 +1,11 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "lenovo,y1", "ralink,mt7620a-soc";
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -15,7 +18,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index cfa5e2123aa1d600d2d287f1a76950f0365d1853..07719c25e5bf4d9dcb4678d780fc87e58be3510c 100644 (file)
@@ -3,7 +3,7 @@
 #include "Y1.dtsi"
 
 / {
-       compatible = "lenovo,Y1S", "ralink,mt7620a-soc";
+       compatible = "lenovo,y1s", "lenovo,y1", "ralink,mt7620a-soc";
        model = "Lenovo Y1S";
 
        gpio_export {
                usb0 {
                        gpio-export,name = "usb0";
                        gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
-                       gpios = <&gpio2 14 0>; // GPIO2:40+14=GPIO 54
+                       gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; // GPIO2:40+14=GPIO 54
                };
                usb1 {
                        gpio-export,name = "usb1";
                        gpio-export,output = <1>;
-                       gpios = <&gpio2 15 0>;
+                       gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
                };
                usb2 {
                        gpio-export,name = "usb2";
                        gpio-export,output = <1>;
-                       gpios = <&gpio2 16 0>;
+                       gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
                };
        };
 
 
                power1 {
                        label = "y1s:yellow:power";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
                        label = "y1s:blue:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wlan1 {
                        label = "y1s:yellow:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan2 {
                        label = "y1s:blue:wifi";
-                       gpios = <&gpio2 10 1>;
+                       gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
                };
 
                usb1 {
                        label = "y1s:yellow:usb";
-                       gpios = <&gpio2 13 1>;
+                       gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
                };
 
                usb2 {
                        label = "y1s:blue:usb";
-                       gpios = <&gpio2 12 1>;
+                       gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                };
 
                internet {
                        label = "y1s:blue:internet";
-                       gpios = <&gpio2 11 1>;
+                       gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 260f86ab96ef92939e0a6e505a4319f0aa58f409..d4e3c905b3ae0f706d9d4ecb403014083465bea2 100644 (file)
@@ -2,29 +2,30 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "YOUKU-YK1", "ralink,mt7620a-soc";
+       compatible = "youku,yk1", "ralink,mt7620a-soc";
        model = "YOUKU YK1";
 
        gpio-leds {
                compatible = "gpio-leds";
                wan {
                        label = "youku-yk1:blue:wan";
-                       gpios = <&gpio2 4 1>;
+                       gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
                air {
                        label = "youku-yk1:blue:air";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
                usb {
                        label = "youku-yk1:blue:usb";
-                       gpios = <&gpio1 11 1>;
+                       gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
                power {
                        label = "youku-yk1:blue:power";
-                       gpios = <&gpio1 5 1>;
+                       gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -35,7 +36,7 @@
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 9a8b700a50cc235b41653c3c7741c06793bf8703..45fef667ca4a83eb0717297f3dc8126b0882ca86 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                sys1 {
                        label = "zbt-ape522ii:green:sys1";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                sys2 {
                        label = "zbt-ape522ii:green:sys2";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                sys3 {
                        label = "zbt-ape522ii:green:sys3";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                sys4 {
                        label = "zbt-ape522ii:green:sys4";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g4 {
                        label = "zbt-ape522ii:green:wlan2g4";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -49,7 +50,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 089084077dd44676d51d45bffeea1234534a1efc..42add891c2d74d062879d1f35514950da52a1ebc 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                4g-0 {
                        label = "zbt-cpe102:green:4g-0";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                4g-1 {
                        label = "zbt-cpe102:green:4g-1";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                };
 
                4g-2 {
                        label = "zbt-cpe102:green:4g-2";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -39,7 +40,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index 33538892c3bd60584851dc46b03e162eef4be871..b1586ae82f80c0c98be9db964a3da381ab321dd6 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                power {
                        label = "zbt-wa05:blue:power";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "zbt-wa05:blue:usb";
-                       gpios = <&gpio1 15 0>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                };
 
                air {
                        label = "zbt-wa05:blue:air";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -39,7 +40,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index a27cefd86dc371764d5a7b10de8f65f93b40228f..50c1728f11573511c120d2f8ec184717e76cbe9c 100644 (file)
@@ -7,6 +7,37 @@
        model = "ZBT-WE826 (16M)";
 };
 
-&firmware {
-       reg = <0x50000 0xfb0000>;
+&spi0 {
+       status = "okay";
+
+       en25q128@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+
+               partition@0 {
+                       label = "u-boot";
+                       reg = <0x0 0x30000>;
+                       read-only;
+               };
+
+               partition@30000 {
+                       label = "u-boot-env";
+                       reg = <0x30000 0x10000>;
+                       read-only;
+               };
+
+               factory: partition@40000 {
+                       label = "factory";
+                       reg = <0x40000 0x10000>;
+                       read-only;
+               };
+
+               firmware: partition@50000 {
+                       label = "firmware";
+                       reg = <0x50000 0xfb0000>;
+               };
+       };
 };
index 6fde2183d7f0332afcbdd8ab9bcbe2465a51bd82..0eb2b9700bdb06f08c645ae83c23db56a1354a99 100644 (file)
@@ -7,6 +7,37 @@
        model = "ZBT-WE826 (32M)";
 };
 
-&firmware {
-       reg = <0x50000 0x1fb0000>;
+&spi0 {
+       status = "okay";
+
+       en25q128@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+
+               partition@0 {
+                       label = "u-boot";
+                       reg = <0x0 0x30000>;
+                       read-only;
+               };
+
+               partition@30000 {
+                       label = "u-boot-env";
+                       reg = <0x30000 0x10000>;
+                       read-only;
+               };
+
+               factory: partition@40000 {
+                       label = "factory";
+                       reg = <0x40000 0x10000>;
+                       read-only;
+               };
+
+               firmware: partition@50000 {
+                       label = "firmware";
+                       reg = <0x50000 0x1fb0000>;
+               };
+       };
 };
index 02d546cfc66a4389572c982c4625f2a447b40ea3..dcfcb8500be95d2b98e025504c473ffe17c12d58 100644 (file)
@@ -1,8 +1,11 @@
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
                compatible = "gpio-leds";
                power {
                        label = "zbt-we826:green:power";
-                       gpios = <&gpio1 14 0>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
                };
                usb {
                        label = "zbt-we826:green:usb";
-                       gpios = <&gpio1 15 0>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                };
                air {
                        label = "zbt-we826:green:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +33,7 @@
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
        status = "okay";
 };
 
-&spi0 {
-       status = "okay";
-
-       en25q128@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               compatible = "jedec,spi-nor";
-               reg = <0>;
-               spi-max-frequency = <10000000>;
-
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
-
-               firmware: partition@50000 {
-                       label = "firmware";
-               };
-       };
-};
-
 &sdhci {
        status = "okay";
 };
index 0700f8afadbd4ea78314119ee7b424ff65f506bb..a55fd09e6e6669ec59e44407441f4e4271254f0f 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
@@ -31,7 +32,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -41,7 +42,7 @@
 
                status {
                        label = "zbt-wg2626:green:status";
-                       gpios = <&gpio0 24 1>;
+                       gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
                };
        };
 };
index f1a527546284aa670f61eb468638899c7cf36f95..ccd5ab1e0bc4a52f3d9561de1a4cc0d8104eb6f3 100644 (file)
@@ -39,7 +39,7 @@
 
                status {
                        label = "zbt-wg3526:green:status";
-                       gpios = <&gpio0 24 1>;
+                       gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 81598bd237dd1b6a785e215f8cd6527c38c6997e..11911b9f09fc45917ce8a720ba5795aedd2f9b20 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
 
                sys {
                        label = "zbt-wr8305rt:green:sys";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "zbt-wr8305rt:green:usb";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "zbt-wr8305rt:green:wifi";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -35,7 +36,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index c2db43e3cdf21a387a8a4a3b79b47126e74427c4..db426eea3d451edebedd9b6e73143a1c1d26a63c 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ZTE-Q7", "ralink,mt7620a-soc";
+       compatible = "zte,q7", "ralink,mt7620a-soc";
        model = "ZTE Q7";
 
        gpio-leds {
 
                statred {
                        label = "zte-q7:red:status";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                statblue {
                        label = "zte-q7:blue:status";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -30,7 +31,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 2 1>;
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
index d275902d1b6d74b22e946cdee8ba7df7e5c9145b..533142b4925fde71869f39921da001e4c46d2407 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zyxel,keenetic-omni", "ralink,mt7620n-soc";
        model = "ZyXEL Keenetic Omni";
 
        gpio-leds {
index a65fda14f6d057143d94066ed4dbb66f09f5a922..bccd50035b0b94f16d0043016cbe35c4a5236bac 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zyxel,keenetic-omni-ii", "ralink,mt7620n-soc";
        model = "ZyXEL Keenetic Omni II";
 
        gpio-leds {
index 7cd4de3fb2547c4cea6ed487775b6d6f1f12529b..8d74595b996305be0e8342d66c11154e12ef0905 100644 (file)
@@ -6,6 +6,7 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zyxel,keenetic-viva", "ralink,mt7620a-soc";
        model = "ZyXEL Keenetic Viva";
 
        gpio-leds {