ramips: update device tree source files

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>
This commit is contained in:
L. D. Pinney 2017-07-29 10:14:07 +08:00 committed by Mathias Kresin
parent b70a96285c
commit 70b192f573
212 changed files with 1343 additions and 1103 deletions

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "3G-6200N", "ralink,rt3050-soc"; compatible = "edimax,3g-6200n", "ralink,rt3050-soc";
model = "Edimax 3g-6200n"; model = "Edimax 3g-6200n";
cfi@1f000000 { cfi@1f000000 {
@ -51,17 +52,17 @@
power { power {
label = "3g-6200n:green:power"; label = "3g-6200n:green:power";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "3g-6200n:amber:wlan"; label = "3g-6200n:amber:wlan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
3g { 3g {
label = "3g-6200n:blue:3g"; label = "3g-6200n:blue:3g";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -73,13 +74,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
rfkill { rfkill {
label = "wlanswitch"; label = "wlanswitch";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "3G-6200NL", "ralink,rt3050-soc"; compatible = "edimax,3g-6200nl", "ralink,rt3050-soc";
model = "Edimax 3g-6200nl"; model = "Edimax 3g-6200nl";
cfi@1f000000 { cfi@1f000000 {
@ -51,12 +52,12 @@
internet { internet {
label = "3g-6200nl:green:internet"; label = "3g-6200nl:green:internet";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "3g-6200nl:green:wlan"; label = "3g-6200nl:green:wlan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -68,7 +69,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "3G150B", "ralink,rt5350-soc"; compatible = "tenda,3g150b", "ralink,rt5350-soc";
model = "Tenda 3G150B"; model = "Tenda 3G150B";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
ap { ap {
label = "3g150b:blue:ap"; label = "3g150b:blue:ap";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
3g { 3g {
label = "3g150b:blue:3g"; label = "3g150b:blue:3g";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
@ -42,7 +43,7 @@
usb { usb {
gpio-export,name = "usb"; gpio-export,name = "usb";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "3G300M", "ralink,rt3052-soc"; compatible = "tenda,3g300m", "ralink,rt3052-soc";
model = "Tenda 3G300M"; model = "Tenda 3G300M";
gpio-leds { gpio-leds {
@ -13,32 +14,32 @@
3grouter { 3grouter {
label = "3g300m:blue:3grouter"; label = "3g300m:blue:3grouter";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
ap { ap {
label = "3g300m:blue:ap"; label = "3g300m:blue:ap";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wisprouter { wisprouter {
label = "3g300m:blue:wisprouter"; label = "3g300m:blue:wisprouter";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wirelessrouter { wirelessrouter {
label = "3g300m:blue:wirelessrouter"; label = "3g300m:blue:wirelessrouter";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
3g { 3g {
label = "3g300m:blue:3g"; label = "3g300m:blue:3g";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
wpsreset { wpsreset {
label = "3g300m:blue:wpsreset"; label = "3g300m:blue:wpsreset";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -50,13 +51,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "A5-V11", "ralink,rt5350-soc"; compatible = "unbranded,a5-v11", "ralink,rt5350-soc";
model = "A5-V11"; model = "A5-V11";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
system { system {
label = "a5-v11:blue:system"; label = "a5-v11:blue:system";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "a5-v11:red:power"; label = "a5-v11:red:power";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
@ -42,13 +43,13 @@
usb { usb {
gpio-export,name = "usb"; gpio-export,name = "usb";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
root_hub { root_hub {
gpio-export,name = "root_hub"; gpio-export,name = "root_hub";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "AI-BR100", "ralink,mt7620a-soc"; compatible = "aigale,ai-br100", "ralink,mt7620a-soc";
model = "Aigale Ai-BR100"; model = "Aigale Ai-BR100";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
wan { wan {
label = "ai-br100:blue:wan"; label = "ai-br100:blue:wan";
gpios = <&gpio2 4 1>; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "ai-br100:blue:wlan"; label = "ai-br100:blue:wlan";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "AIR3GII", "ralink,rt5350-soc"; compatible = "airlive,air3gii", "ralink,rt5350-soc";
model = "AirLive Air3GII"; model = "AirLive Air3GII";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
wlan { wlan {
label = "air3gii:green:wlan"; label = "air3gii:green:wlan";
gpios = <&gpio0 8 0>; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
}; };
mobile { mobile {
label = "air3gii:green:mobile"; label = "air3gii:green:mobile";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "ALL0239-3G", "ralink,rt3052-soc"; compatible = "allnet,all0239-3g", "ralink,rt3052-soc";
model = "Allnet ALL0239-3G"; model = "Allnet ALL0239-3G";
@ -46,22 +47,22 @@
usb { usb {
label = "all0239-3g:green:usb"; label = "all0239-3g:green:usb";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
3g { 3g {
label = "all0239-3g:green:3g"; label = "all0239-3g:green:3g";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
status { status {
label = "all0239-3g:green:status"; label = "all0239-3g:green:status";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "all0239-3g:green:wps"; label = "all0239-3g:green:wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -73,19 +74,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
connect { connect {
label = "connect"; label = "connect";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_CONNECT>; linux,code = <KEY_CONNECT>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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)"; model = "Allnet ALL0256N (4M)";
gpio-leds { gpio-leds {
@ -13,17 +14,17 @@
rssilow { rssilow {
label = "all0256n:green:rssilow"; label = "all0256n:green:rssilow";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
rssimed { rssimed {
label = "all0256n:green:rssimed"; label = "all0256n:green:rssimed";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
rssihigh { rssihigh {
label = "all0256n:green:rssihigh"; label = "all0256n:green:rssihigh";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -35,7 +36,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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)"; model = "Allnet ALL0256N (8M)";
gpio-leds { gpio-leds {
@ -13,17 +14,17 @@
rssilow { rssilow {
label = "all0256n:green:rssilow"; label = "all0256n:green:rssilow";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
rssimed { rssimed {
label = "all0256n:green:rssimed"; label = "all0256n:green:rssimed";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
rssihigh { rssihigh {
label = "all0256n:green:rssihigh"; label = "all0256n:green:rssihigh";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -35,7 +36,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,8 +2,11 @@
#include "rt3352.dtsi" #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"; model = "Allnet ALL5002";
i2c-gpio { i2c-gpio {
@ -11,7 +14,7 @@
#size-cells = <0>; #size-cells = <0>;
compatible = "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>; i2c-gpio,delay-us = <10>;
pcf0: iexp@38 { pcf0: iexp@38 {
@ -32,12 +35,12 @@
ld1 { ld1 {
label = "all5002:green:ld1"; label = "all5002:green:ld1";
gpios = <&pcf0 0 1>; gpios = <&pcf0 0 GPIO_ACTIVE_LOW>;
}; };
ld2 { ld2 {
label = "all5002:green:ld2"; label = "all5002:green:ld2";
gpios = <&pcf0 1 1>; gpios = <&pcf0 1 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,8 +2,11 @@
#include "rt5350.dtsi" #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"; model = "Allnet ALL5003";
i2c-gpio { i2c-gpio {
@ -11,7 +14,7 @@
#size-cells = <0>; #size-cells = <0>;
compatible = "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>; i2c-gpio,delay-us = <10>;
pcf0: iexp@38 { pcf0: iexp@38 {
@ -32,12 +35,12 @@
ld1 { ld1 {
label = "all5003:green:ld1"; label = "all5003:green:ld1";
gpios = <&pcf0 0 1>; gpios = <&pcf0 0 GPIO_ACTIVE_LOW>;
}; };
ld2 { ld2 {
label = "all5003:green:ld2"; label = "all5003:green:ld2";
gpios = <&pcf0 1 1>; gpios = <&pcf0 1 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt2880.dtsi" #include "rt2880.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "AR670W", "ralink,rt2880-soc"; compatible = "airlink101,ar670w", "ralink,rt2880-soc";
model = "Airlink101 AR670W"; model = "Airlink101 AR670W";
cfi@bdc00000 { cfi@bdc00000 {
@ -38,12 +39,12 @@
status { status {
label = "ar670w:green:power"; label = "ar670w:green:power";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
wpsblue { wpsblue {
label = "ar670w:blue:wps"; label = "ar670w:blue:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -55,13 +56,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt2880.dtsi" #include "rt2880.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "AR725W", "ralink,rt2880-soc"; compatible = "airlink101,ar725w", "ralink,rt2880-soc";
model = "Airlink101 AR725W"; model = "Airlink101 AR725W";
cfi@bdc00000 { cfi@bdc00000 {
@ -43,17 +44,17 @@
status { status {
label = "ar725w:green:power"; label = "ar725w:green:power";
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
wpsred { wpsred {
label = "ar725w:red:wps"; label = "ar725w:red:wps";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
wpsblue { wpsblue {
label = "ar725w:blue:wps"; label = "ar725w:blue:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -65,13 +66,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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)"; model = "Alpha ASL26555 (16M)";
gpio-keys-polled { gpio-keys-polled {
@ -16,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 0>; gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -32,42 +33,42 @@
eth { eth {
label = "asl26555:green:eth"; label = "asl26555:green:eth";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
}; };
wan-red { wan-red {
label = "asl26555:red:wan"; label = "asl26555:red:wan";
gpios = <&gpio0 1 0>; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
}; };
wan-green { wan-green {
label = "asl26555:green:wan"; label = "asl26555:green:wan";
gpios = <&gpio0 2 0>; gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
}; };
wlan { wlan {
label = "asl26555:green:wlan"; label = "asl26555:green:wlan";
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
power-green { power-green {
label = "asl26555:green:power"; label = "asl26555:green:power";
gpios = <&gpio0 8 0>; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
}; };
power-red { power-red {
label = "asl26555:red:power"; label = "asl26555:red:power";
gpios = <&gpio0 9 0>; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
}; };
3g-green { 3g-green {
label = "asl26555:green:3g"; label = "asl26555:green:3g";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
3g-red { 3g-red {
label = "asl26555:red:3g"; label = "asl26555:red:3g";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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)"; model = "Alpha ASL26555 (8M)";
gpio-keys-polled { gpio-keys-polled {
@ -16,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 0>; gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -32,42 +33,42 @@
eth { eth {
label = "asl26555:green:eth"; label = "asl26555:green:eth";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
}; };
wan-red { wan-red {
label = "asl26555:red:wan"; label = "asl26555:red:wan";
gpios = <&gpio0 1 0>; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
}; };
wan-green { wan-green {
label = "asl26555:green:wan"; label = "asl26555:green:wan";
gpios = <&gpio0 2 0>; gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
}; };
wlan { wlan {
label = "asl26555:green:wlan"; label = "asl26555:green:wlan";
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
power-green { power-green {
label = "asl26555:green:power"; label = "asl26555:green:power";
gpios = <&gpio0 8 0>; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
}; };
power-red { power-red {
label = "asl26555:red:power"; label = "asl26555:red:power";
gpios = <&gpio0 9 0>; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
}; };
3g-green { 3g-green {
label = "asl26555:green:3g"; label = "asl26555:green:3g";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
3g-red { 3g-red {
label = "asl26555:red:3g"; label = "asl26555:red:3g";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "ATP-52B", "ralink,rt3052-soc"; compatible = "argus,atp-52b", "ralink,rt3052-soc";
model = "Argus ATP-52B"; model = "Argus ATP-52B";
cfi@1f000000 { cfi@1f000000 {
@ -43,12 +44,12 @@
run { run {
label = "atp-52b:green:run"; label = "atp-52b:green:run";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
net { net {
label = "atp-52b:amber:net"; label = "atp-52b:amber:net";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -60,13 +61,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "AWAPN2403", "ralink,rt3052-soc"; compatible = "asiarf,awapn2403", "ralink,rt3052-soc";
model = "AsiaRF AWAPN2403"; model = "AsiaRF AWAPN2403";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
link { link {
label = "awapn2403:green:wps"; label = "awapn2403:green:wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,7 +26,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -1,5 +1,6 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -10,17 +11,17 @@
tx { tx {
label = "awm002-evb:green:tx"; label = "awm002-evb:green:tx";
gpios = <&gpio0 15 1>; gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
}; };
rx { rx {
label = "awm002-evb:green:rx"; label = "awm002-evb:green:rx";
gpios = <&gpio0 16 1>; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "awm002-evb:green:wps"; label = "awm002-evb:green:wps";
gpios = <&gpio0 21 1>; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -32,13 +33,13 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "tplink,c20i", "ralink,mt7620a-soc";
model = "TP-Link Archer C20i"; model = "TP-Link Archer C20i";
chosen { chosen {
@ -16,23 +17,23 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
lan { lan {
label = "c20i:blue:lan"; label = "c20i:blue:lan";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "c20i:blue:usb"; label = "c20i:blue:usb";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "c20i:blue:wps"; label = "c20i:blue:wps";
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
wan { wan {
label = "c20i:blue:wan"; label = "c20i:blue:wan";
gpios = <&gpio2 0 1>; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "c20i:blue:wlan"; label = "c20i:blue:wlan";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -42,12 +43,12 @@
#size-cells = <0>; #size-cells = <0>;
rfkill { rfkill {
label = "rfkill"; label = "rfkill";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -1,11 +1,12 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include "mt7620a.dtsi" #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"; model = "TP-Link Archer C50";
chosen { chosen {

View File

@ -1,11 +1,12 @@
/dts-v1/; /dts-v1/;
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.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"; model = "TP-Link Archer MR200";
chosen { chosen {

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "BC2", "ralink,rt3052-soc"; compatible = "nexaira,bc2", "ralink,rt3052-soc";
model = "NexAira BC2"; model = "NexAira BC2";
cfi@1f000000 { cfi@1f000000 {
@ -45,7 +46,7 @@
usb { usb {
label = "bc2:blue:usb"; label = "bc2:blue:usb";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -57,7 +58,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3883.dtsi" #include "rt3883.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "BR-6475ND", "ralink,rt3883-soc"; compatible = "edimax,br-6475nd", "ralink,rt3883-soc";
model = "Edimax BR-6475nD"; model = "Edimax BR-6475nD";
gpio-keys-polled { gpio-keys-polled {
@ -16,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
rfkill { rfkill {
label = "rfkill"; label = "rfkill";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_SW>; linux,input-type = <EV_SW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
@ -33,17 +34,17 @@
power { power {
label = "br-6475nd:green:power"; label = "br-6475nd:green:power";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "br-6475nd:amber:wlan"; label = "br-6475nd:amber:wlan";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
wlan_5ghz { wlan_5ghz {
label = "br-6475nd:amber:wlan_5ghz"; label = "br-6475nd:amber:wlan_5ghz";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -86,8 +87,8 @@
rtl8367 { rtl8367 {
compatible = "realtek,rtl8367"; compatible = "realtek,rtl8367";
gpio-sda = <&gpio0 5 0>; gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
gpio-sck = <&gpio0 4 0>; gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
realtek,extif0 = <1 0 1 1 1 1 1 1 2>; realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
}; };
@ -102,7 +103,7 @@
usb { usb {
gpio-export,name="usb"; gpio-export,name="usb";
gpio-export,output=<0>; gpio-export,output=<0>;
gpios = <&gpio0 19 0>; gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
}; };
}; };
*/ */

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "BROADWAY", "ralink,rt3052-soc"; compatible = "hauppauge,broadway", "ralink,rt3052-soc";
model = "Hauppauge Broadway"; model = "Hauppauge Broadway";
cfi@1f000000 { cfi@1f000000 {
@ -45,12 +46,12 @@
diskmounted { diskmounted {
label = "broadway:red:diskmounted"; label = "broadway:red:diskmounted";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wps_active { wps_active {
label = "broadway:red:wps_active"; label = "broadway:red:wps_active";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -62,7 +63,7 @@
factory { factory {
label = "Factory Reset button"; label = "Factory Reset button";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,8 +2,11 @@
#include "rt3050.dtsi" #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"; model = "8devices Carambola";
chosen { chosen {
@ -44,7 +47,7 @@
i2c-gpio { i2c-gpio {
compatible = "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>; i2c-gpio,delay-us = <10>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620n.dtsi" #include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "cf-wr800n", "ralink,mt7620n-soc"; compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
model = "Comfast CF-WR800N"; model = "Comfast CF-WR800N";
chosen { chosen {
@ -17,17 +18,17 @@
ethernet { ethernet {
label = "cf-wr800n:white:ethernet"; label = "cf-wr800n:white:ethernet";
gpios = <&gpio2 4 1>; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "cf-wr800n:white:wifi"; label = "cf-wr800n:white:wifi";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "cf-wr800n:white:wps"; label = "cf-wr800n:white:wps";
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -39,7 +40,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "planex,cs-qr10", "ralink,mt7620a-soc";
model = "Planex CS-QR10"; model = "Planex CS-QR10";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
power { power {
label = "cs-qr10:red:power"; label = "cs-qr10:red:power";
gpios = <&gpio1 4 1>; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,13 +26,13 @@
s1 { s1 {
label = "reset"; label = "reset";
gpios = <&gpio1 1 1>; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
s2 { s2 {
label = "wps"; label = "wps";
gpios = <&gpio1 3 1>; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3883.dtsi" #include "rt3883.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "CY-SWR1100", "ralink,rt3883-soc"; compatible = "samsung,cy-swr1100", "ralink,rt3883-soc";
model = "Samsung CY-SWR1100"; model = "Samsung CY-SWR1100";
nor-flash@1c000000 { nor-flash@1c000000 {
@ -52,8 +53,8 @@
rtl8367 { rtl8367 {
compatible = "realtek,rtl8367"; compatible = "realtek,rtl8367";
gpio-sda = <&gpio0 1 0>; gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
gpio-sck = <&gpio0 2 0>; gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
realtek,extif0 = <1 0 1 1 1 1 1 1 2>; realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
}; };
@ -65,13 +66,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 6 1>; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 3 1>; gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -81,12 +82,12 @@
wps { wps {
label = "cy-swr1100:blue:wps"; label = "cy-swr1100:blue:wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "cy-swr1100:blue:usb"; label = "cy-swr1100:blue:usb";
gpios = <&gpio1 1 1>; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "D105", "ralink,rt3050-soc"; compatible = "huawei,d105", "ralink,rt3050-soc";
model = "Huawei D105"; model = "Huawei D105";
cfi@1f000000 { cfi@1f000000 {
@ -45,12 +46,12 @@
power { power {
label = "d105:red:power"; label = "d105:red:power";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "d105:green:usb"; label = "d105:green:usb";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -62,7 +63,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -39,7 +39,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "d240", "ralink,mt7620a-soc"; compatible = "sanlinking,d240", "ralink,mt7620a-soc";
model = "Sanlinking Technologies D240"; model = "Sanlinking Technologies D240";
chosen { chosen {

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DAP-1350";
chosen { chosen {
@ -55,17 +56,17 @@
power { power {
label = "dap-1350:blue:power"; label = "dap-1350:blue:power";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
power2 { power2 {
label = "dap-1350:red:power"; label = "dap-1350:red:power";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dap-1350:blue:wps"; label = "dap-1350:blue:wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -77,25 +78,25 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
rt { rt {
label = "rt"; label = "rt";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
ap { ap {
label = "ap"; label = "ap";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "planex,db-wrt01", "ralink,mt7620a-soc";
model = "Planex DB-WRT01"; model = "Planex DB-WRT01";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
power { power {
label = "db-wrt01:orange:power"; label = "db-wrt01:orange:power";
gpios = <&gpio1 1 1>; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,7 +26,7 @@
s1 { s1 {
label = "wps"; label = "wps";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -16,13 +17,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio1 2 1>; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
@ -32,12 +33,12 @@
power { power {
label = "dch-m225:green:power"; label = "dch-m225:green:power";
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
status { status {
label = "dch-m225:red: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_L",
"Headphones", "HP_R"; "Headphones", "HP_R";
simple-audio-card,mclk-fs = <256>; 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 { simple-audio-card,cpu {
sound-dai = <&i2s>; sound-dai = <&i2s>;

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DCS-930";
cfi@1f000000 { cfi@1f000000 {
@ -55,17 +56,17 @@
wifi { wifi {
label = "dcs-930:red:alert"; label = "dcs-930:red:alert";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "dcs-930:green:status"; label = "dcs-930:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dcs-930:blue:wps"; label = "dcs-930:blue:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -77,13 +78,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DCS-930L B1";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
power { power {
label = "dcs-930l-b1:red:power"; label = "dcs-930l-b1:red:power";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dcs-930l-b1:blue:wps"; label = "dcs-930l-b1:blue:wps";
gpios = <&gpio0 19 1>; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-300 B1";
cfi@1f000000 { cfi@1f000000 {
@ -48,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -64,27 +65,27 @@
status { status {
label = "dir-300-b1:amber:status"; label = "dir-300-b1:amber:status";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
status2 { status2 {
label = "dir-300-b1:green:status"; label = "dir-300-b1:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wan { wan {
label = "dir-300-b1:amber:wan"; label = "dir-300-b1:amber:wan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
wan2 { wan2 {
label = "dir-300-b1:green:wan"; label = "dir-300-b1:green:wan";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-300-b1:blue:wps"; label = "dir-300-b1:blue:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-300 B7";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
status { status {
label = "dir-300-b7:green:status"; label = "dir-300-b7:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-300-b7:blue:wps"; label = "dir-300-b7:blue:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-320 B1";
gpio-leds { gpio-leds {
@ -13,17 +14,17 @@
status { status {
label = "dir-320-b1:green:status"; label = "dir-320-b1:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "dir-320-b1:green:usb"; label = "dir-320-b1:green:usb";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-320-b1:green:wps"; label = "dir-320-b1:green:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -35,13 +36,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -53,13 +54,13 @@
usb { usb {
gpio-export,name = "usb"; gpio-export,name = "usb";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
root_hub { root_hub {
gpio-export,name = "root_hub"; gpio-export,name = "root_hub";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-600 B1";
cfi@1f000000 { cfi@1f000000 {
@ -48,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -64,27 +65,27 @@
status { status {
label = "dir-600-b1:amber:status"; label = "dir-600-b1:amber:status";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
status2 { status2 {
label = "dir-600-b1:green:status"; label = "dir-600-b1:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wan { wan {
label = "dir-600-b1:amber:wan"; label = "dir-600-b1:amber:wan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
wan2 { wan2 {
label = "dir-600-b1:green:wan"; label = "dir-600-b1:green:wan";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-600-b1:blue:wps"; label = "dir-600-b1:blue:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-610 A1";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
status { status {
label = "dir-610-a1:green:status"; label = "dir-610-a1:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-610-a1:green:wps"; label = "dir-610-a1:green:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-615 D";
cfi@1f000000 { cfi@1f000000 {
@ -48,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -64,27 +65,27 @@
status { status {
label = "dir-615-d:amber:status"; label = "dir-615-d:amber:status";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
status2 { status2 {
label = "dir-615-d:green:status"; label = "dir-615-d:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wan { wan {
label = "dir-615-d:amber:wan"; label = "dir-615-d:amber:wan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
wan2 { wan2 {
label = "dir-615-d:green:wan"; label = "dir-615-d:green:wan";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-615-d:blue:wps"; label = "dir-615-d:blue:wps";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3352.dtsi" #include "rt3352.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-615 H1";
gpio-leds { gpio-leds {
@ -13,27 +14,27 @@
status { status {
label = "dir-615-h1:amber:status"; label = "dir-615-h1:amber:status";
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
status2 { status2 {
label = "dir-615-h1:green:status"; label = "dir-615-h1:green:status";
gpios = <&gpio0 9 0>; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
}; };
wan { wan {
label = "dir-615-h1:amber:wan"; label = "dir-615-h1:amber:wan";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wan2 { wan2 {
label = "dir-615-h1:green:wan"; label = "dir-615-h1:green:wan";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-615-h1:blue:wps"; label = "dir-615-h1:blue:wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -45,13 +46,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-620 A1";
cfi@1f000000 { cfi@1f000000 {
@ -48,13 +49,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -64,32 +65,32 @@
status { status {
label = "dir-620-a1:amber:status"; label = "dir-620-a1:amber:status";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
status2 { status2 {
label = "dir-620-a1:green:status"; label = "dir-620-a1:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wan { wan {
label = "dir-620-a1:amber:wan"; label = "dir-620-a1:amber:wan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
wan2 { wan2 {
label = "dir-620-a1:green:wan"; label = "dir-620-a1:green:wan";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-620-a1:blue:wps"; label = "dir-620-a1:blue:wps";
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
wps2 { wps2 {
label = "dir-620-a1:amber:wps"; label = "dir-620-a1:amber:wps";
gpios = <&gpio0 11 0>; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3352.dtsi" #include "rt3352.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-620 D1";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
status { status {
label = "dir-620-d1:green:status"; label = "dir-620-d1:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "dir-620-d1:green:wifi"; label = "dir-620-d1:green:wifi";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,16 +2,17 @@
#include "rt3883.dtsi" #include "rt3883.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "D-Link DIR-645";
rtl8367b { rtl8367b {
compatible = "realtek,rtl8367b"; compatible = "realtek,rtl8367b";
gpio-sda = <&gpio0 1 0>; gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
gpio-sck = <&gpio0 2 0>; gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
realtek,extif1 = <1 0 1 1 1 1 1 1 2>; realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
}; };
@ -23,13 +24,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 9 0>; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 14 0>; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -39,12 +40,12 @@
inet { inet {
label = "dir-645:green:inet"; label = "dir-645:green:inet";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "dir-645:green:wps"; label = "dir-645:green:wps";
gpios = <&gpio1 2 0>; gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
}; };
}; };
@ -55,7 +56,7 @@
usb { usb {
gpio-export,name = "usb"; gpio-export,name = "usb";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -16,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
}; };
@ -32,17 +33,17 @@
power { power {
label = "dir-810l:green:power"; label = "dir-810l:green:power";
gpios = <&gpio0 9 0>; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
}; };
wan { wan {
label = "dir-810l:orange:wan"; label = "dir-810l:orange:wan";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
status { status {
label = "dir-810l:orange:power"; label = "dir-810l:orange:power";
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7621.dtsi" #include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -22,22 +23,22 @@
power { power {
label = "dir-860l-b1:orange:power"; label = "dir-860l-b1:orange:power";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
power2 { power2 {
label = "dir-860l-b1:green:power"; label = "dir-860l-b1:green:power";
gpios = <&gpio0 15 1>; gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
}; };
net { net {
label = "dir-860l-b1:orange:net"; label = "dir-860l-b1:orange:net";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
net2 { net2 {
label = "dir-860l-b1:green:net"; label = "dir-860l-b1:green:net";
gpios = <&gpio0 16 1>; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -49,13 +50,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

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

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,rt5350-soc"; compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
model = "D-Link DWR-512 B"; model = "D-Link DWR-512 B";
gpio-keys-polled { gpio-keys-polled {

View File

@ -12,6 +12,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -26,13 +27,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 0>; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 2 0>; gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -42,12 +43,12 @@
power { power {
label = "e1700:green:power"; label = "e1700:green:power";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
}; };
wan { wan {
label = "e1700:green:wps"; label = "e1700:green:wps";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "Senao / EnGenius ESR-9753";
cfi@1f000000 { cfi@1f000000 {
@ -45,12 +46,12 @@
power { power {
label = "esr-9753:orange:power"; label = "esr-9753:orange:power";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "esr-9753:orange:wps"; label = "esr-9753:orange:wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -62,13 +63,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -32,7 +32,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -12,11 +12,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.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"; model = "Netgear EX2700";
chosen { chosen {

View File

@ -8,7 +8,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "netgear,ex3700", "ralink,mt7620a-soc";
model = "Netgear EX3700/EX3800"; model = "Netgear EX3700/EX3800";
chosen { chosen {

View File

@ -8,7 +8,7 @@
/ { / {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
compatible = "F5D8235_V1", "ralink,rt2880-soc"; compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc";
model = "Belkin F5D8235 v1"; model = "Belkin F5D8235 v1";
pci@440000 { pci@440000 {

View File

@ -2,8 +2,11 @@
#include "rt3050.dtsi" #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"; model = "Belkin F5D8235 v2";
cfi@1f000000 { cfi@1f000000 {
@ -38,8 +41,8 @@
rtl8366rb { rtl8366rb {
compatible = "realtek,rtl8366rb"; compatible = "realtek,rtl8366rb";
gpio-sda = <&gpio0 1 0>; gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
gpio-sck = <&gpio0 2 0>; gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
}; };
gpio-leds { gpio-leds {
@ -47,47 +50,47 @@
internet { internet {
label = "f5d8235-v2:blue:internet"; label = "f5d8235-v2:blue:internet";
gpios = <&gpio0 5 1>; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
}; };
internet2 { internet2 {
label = "f5d8235-v2:amber:internet"; label = "f5d8235-v2:amber:internet";
gpios = <&gpio0 6 1>; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
}; };
modem { modem {
label = "f5d8235-v2:blue:modem"; label = "f5d8235-v2:blue:modem";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
modem2 { modem2 {
label = "f5d8235-v2:amber:modem"; label = "f5d8235-v2:amber:modem";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
router { router {
label = "f5d8235-v2:blue:router"; label = "f5d8235-v2:blue:router";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
storage { storage {
label = "f5d8235-v2:blue:storage"; label = "f5d8235-v2:blue:storage";
gpios = <&gpio0 23 1>; gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
}; };
storage2 { storage2 {
label = "f5d8235-v2:amber:storage"; label = "f5d8235-v2:amber:storage";
gpios = <&gpio0 22 1>; gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
}; };
security { security {
label = "f5d8235-v2:blue:security"; label = "f5d8235-v2:blue:security";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
security2 { security2 {
label = "f5d8235-v2:amber:security"; label = "f5d8235-v2:amber:security";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "F7C027", "ralink,rt5350-soc"; compatible = "belkin,f7c027", "ralink,rt5350-soc";
model = "Belkin F7C027"; model = "Belkin F7C027";
gpio-leds { gpio-leds {
@ -13,22 +14,22 @@
status { status {
label = "f7c027:blue:status"; label = "f7c027:blue:status";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "f7c027:blue:power"; label = "f7c027:blue:power";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
orange { orange {
label = "f7c027:orange:status"; label = "f7c027:orange:status";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
relay { relay {
label = "f7c027:device:relay"; label = "f7c027:device:relay";
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
}; };
@ -40,19 +41,19 @@
top { top {
label = "restore"; label = "restore";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
power { power {
label = "power"; label = "power";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
sensor { sensor {
label = "sensor"; label = "sensor";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7621.dtsi" #include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -22,7 +23,7 @@
power { power {
label = "firewrt:green:power"; label = "firewrt:green:power";
gpios = <&gpio0 22 1>; gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -34,13 +35,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
power { power {
label = "power"; label = "power";
gpios = <&gpio0 23 1>; gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "FONERA20N", "ralink,rt3052-soc"; compatible = "fon,fonera20n", "ralink,rt3052-soc";
model = "La Fonera 2.0N"; model = "La Fonera 2.0N";
cfi@1f000000 { cfi@1f000000 {
@ -45,17 +46,17 @@
wifi { wifi {
label = "fonera20n:orange:wifi"; label = "fonera20n:orange:wifi";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "fonera20n:green:power"; label = "fonera20n:green:power";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "fonera20n:orange:usb"; label = "fonera20n:orange:usb";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -67,13 +68,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
switch { switch {
label = "switch"; label = "switch";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
linux,input-type = <EV_SW>; linux,input-type = <EV_SW>;
}; };

View File

@ -2,8 +2,11 @@
#include "rt3050.dtsi" #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"; model = "ARC FreeStation5";
chosen { chosen {
@ -50,7 +53,7 @@
poe { poe {
gpio-export,name = "poe-passthrough"; gpio-export,name = "poe-passthrough";
gpio-export,output = <1>; // OUT_INIT_HIGH 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
}; };
}; };
@ -61,17 +64,17 @@
// not present in the Freestation5 device. // not present in the Freestation5 device.
wifi { wifi {
label = "freestation5:unknown:wifi"; label = "freestation5:unknown:wifi";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
powerg { powerg {
label = "freestation5:unknown:powerg"; label = "freestation5:unknown:powerg";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "freestation5:unknown:usb"; label = "freestation5:unknown:usb";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "GL-MT300A", "ralink,mt7620a-soc"; compatible = "glinet,gl-mt300a", "ralink,mt7620a-soc";
model = "GL-MT300A"; model = "GL-MT300A";
chosen { chosen {
@ -17,22 +18,22 @@
wan { wan {
label = "gl-mt300a:wan"; label = "gl-mt300a:wan";
gpios = <&gpio2 0 1>; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
}; };
lan { lan {
label = "gl-mt300a:lan"; label = "gl-mt300a:lan";
gpios = <&gpio2 1 1>; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "gl-mt300a:wlan"; label = "gl-mt300a:wlan";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "gl-mt300a:usb"; label = "gl-mt300a:usb";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -44,19 +45,19 @@
poll-interval = <20>; poll-interval = <20>;
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
BTN_0 { BTN_0 {
label = "BTN_0"; label = "BTN_0";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
}; };
}; };

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #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"; model = "GL-MT300N-V2";
chosen { chosen {

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "GL-MT300N", "ralink,mt7620a-soc"; compatible = "glinet,gl-mt300n", "ralink,mt7620a-soc";
model = "GL-MT300N"; model = "GL-MT300N";
chosen { chosen {
@ -17,17 +18,17 @@
wan { wan {
label = "gl-mt300n:wan"; label = "gl-mt300n:wan";
gpios = <&gpio2 0 1>; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
}; };
lan { lan {
label = "gl-mt300n:lan"; label = "gl-mt300n:lan";
gpios = <&gpio2 1 1>; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "gl-mt300n:wlan"; label = "gl-mt300n:wlan";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -39,19 +40,19 @@
poll-interval = <20>; poll-interval = <20>;
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
BTN_0 { BTN_0 {
label = "BTN_0"; label = "BTN_0";
gpios = <&gpio2 2 1>; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio2 3 1>; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "GL-MT750", "ralink,mt7620a-soc"; compatible = "glinet,gl-mt750", "ralink,mt7620a-soc";
model = "GL-MT750"; model = "GL-MT750";
chosen { chosen {
@ -17,17 +18,17 @@
wan { wan {
label = "gl-mt750:wan"; label = "gl-mt750:wan";
gpios = <&gpio2 0 1>; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
}; };
lan { lan {
label = "gl-mt750:lan"; label = "gl-mt750:lan";
gpios = <&gpio2 1 1>; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "gl-mt750:wlan"; label = "gl-mt750:wlan";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -39,19 +40,19 @@
poll-interval = <20>; poll-interval = <20>;
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
BTN_0 { BTN_0 {
label = "BTN_0"; label = "BTN_0";
gpios = <&gpio2 2 1>; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
BTN_1 { BTN_1 {
label = "BTN_1"; label = "BTN_1";
gpios = <&gpio2 3 1>; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
}; };
}; };

View File

@ -1,9 +1,9 @@
/dts-v1/; /dts-v1/;
#include "HC5XXX.dtsi" #include "HC5X61.dtsi"
/ { / {
compatible = "HC5661", "ralink,mt7620a-soc"; compatible = "hiwifi,hc5661", "hiwifi,hc5x61", "ralink,mt7620a-soc";
model = "HiWiFi HC5661"; model = "HiWiFi HC5661";
gpio-leds { gpio-leds {
@ -11,22 +11,22 @@
system { system {
label = "hc5661:blue:system"; label = "hc5661:blue:system";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
internet { internet {
label = "hc5661:blue:internet"; label = "hc5661:blue:internet";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
wlan2g { wlan2g {
label = "hc5661:blue:wlan2g"; label = "hc5661:blue:wlan2g";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
wlan5g { wlan5g {
label = "hc5661:blue:wlan5g"; label = "hc5661:blue:wlan5g";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "HC5661A", "mediatek,mt7628an-soc"; compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc";
model = "HiWiFi HC5661A"; model = "HiWiFi HC5661A";
chosen { chosen {

View File

@ -1,9 +1,9 @@
/dts-v1/; /dts-v1/;
#include "HC5XXX.dtsi" #include "HC5X61.dtsi"
/ { / {
compatible = "HC5761", "ralink,mt7620a-soc"; compatible = "hiwifi,hc5761", "hiwifi,hc5x61", "ralink,mt7620a-soc";
model = "HiWiFi HC5761"; model = "HiWiFi HC5761";
gpio-leds { gpio-leds {
@ -11,22 +11,22 @@
system { system {
label = "hc5761:blue:system"; label = "hc5761:blue:system";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
internet { internet {
label = "hc5761:blue:internet"; label = "hc5761:blue:internet";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
wlan2g { wlan2g {
label = "hc5761:blue:wlan2g"; label = "hc5761:blue:wlan2g";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
wlan5g { wlan5g {
label = "hc5761:blue:wlan5g"; label = "hc5761:blue:wlan5g";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -1,9 +1,9 @@
/dts-v1/; /dts-v1/;
#include "HC5XXX.dtsi" #include "HC5X61.dtsi"
/ { / {
compatible = "HC5861", "ralink,mt7620a-soc"; compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc";
model = "HiWiFi HC5861"; model = "HiWiFi HC5861";
gpio-leds { gpio-leds {
@ -11,27 +11,27 @@
system { system {
label = "hc5861:blue:system"; label = "hc5861:blue:system";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wlan2g { wlan2g {
label = "hc5861:blue:wlan2g"; label = "hc5861:blue:wlan2g";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
internet { internet {
label = "hc5861:blue:internet"; label = "hc5861:blue:internet";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
wlan5g { wlan5g {
label = "hc5861:blue:wlan5g"; label = "hc5861:blue:wlan5g";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
turbo { turbo {
label = "hc5861:blue:turbo"; label = "hc5861:blue:turbo";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -42,13 +42,13 @@
usbpower { usbpower {
gpio-export,name = "usbpower"; gpio-export,name = "usbpower";
gpio-export,output = <0>; gpio-export,output = <0>;
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
sdpower { sdpower {
gpio-export,name = "sdpower"; gpio-export,name = "sdpower";
gpio-export,output = <0>; gpio-export,output = <0>;
gpios = <&gpio0 8 0>; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -1,8 +1,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "hiwifi,hc5x61", "ralink,mt7620a-soc";
chosen { chosen {
bootargs = "console=ttyS0,115200"; bootargs = "console=ttyS0,115200";
}; };
@ -15,7 +18,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
@ -27,7 +30,7 @@
usbpower { usbpower {
gpio-export,name = "usbpower"; gpio-export,name = "usbpower";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "HG255D", "ralink,rt3052-soc"; compatible = "huawei,hg255d", "ralink,rt3052-soc";
model = "HuaWei HG255D"; model = "HuaWei HG255D";
cfi@1f000000 { cfi@1f000000 {
@ -51,32 +52,32 @@
power { power {
label = "hg255d:green:power"; label = "hg255d:green:power";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
internet { internet {
label = "hg255d:green:internet"; label = "hg255d:green:internet";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "hg255d:green:wlan"; label = "hg255d:green:wlan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
usb { usb {
label = "hg255d:green:usb"; label = "hg255d:green:usb";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "hg255d:green:wps"; label = "hg255d:green:wps";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
voice { voice {
label = "hg255d:green:voice"; label = "hg255d:green:voice";
gpios = <&gpio0 5 1>; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -88,19 +89,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 4 1>; gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
rfkill { rfkill {
label = "rfkill"; label = "rfkill";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "HLKRM04", "ralink,rt5350-soc"; compatible = "hilink,hlk-rm04", "ralink,rt5350-soc";
model = "HILINK HLK-RM04"; model = "HILINK HLK-RM04";
memory@0 { memory@0 {
@ -26,13 +27,13 @@
/* I2C_I2C_SD */ /* I2C_I2C_SD */
gpio-export,name = "hlk-rm04:gpio0"; gpio-export,name = "hlk-rm04:gpio0";
gpio-export,direction_may_change = <1>; gpio-export,direction_may_change = <1>;
gpios = <&gpio0 1 0>; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
}; };
gpio2 { gpio2 {
/* I2C_I2C_SCLK */ /* I2C_I2C_SCLK */
gpio-export,name = "hlk-rm04:gpio1"; gpio-export,name = "hlk-rm04:gpio1";
gpio-export,direction_may_change = <1>; gpio-export,direction_may_change = <1>;
gpios = <&gpio0 2 0>; gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
}; };
}; };
@ -43,12 +44,12 @@
poll-interval = <20>; poll-interval = <20>;
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3883.dtsi" #include "rt3883.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "HPM", "ralink,rt3883-soc"; compatible = "omnima,hpm", "ralink,rt3883-soc";
model = "Omnima HPM"; model = "Omnima HPM";
chosen { chosen {
@ -20,7 +21,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 14 0>; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
@ -30,32 +31,32 @@
power { power {
label = "hpm:orange:power"; label = "hpm:orange:power";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
status { status {
label = "hpm:green:status"; label = "hpm:green:status";
gpios = <&gpio0 21 1>; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
}; };
eth { eth {
label = "hpm:green:eth"; label = "hpm:green:eth";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
}; };
eth2 { eth2 {
label = "hpm:red:eth"; label = "hpm:red:eth";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "hpm:green:wifi"; label = "hpm:green:wifi";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
wifi2 { wifi2 {
label = "hpm:red:wifi"; label = "hpm:red:wifi";
gpios = <&gpio0 19 1>; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -67,13 +68,13 @@
usb0 { usb0 {
gpio-export,name = "usb0"; gpio-export,name = "usb0";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 2 0>; gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
}; };
usb1 { usb1 {
gpio-export,name = "usb1"; gpio-export,name = "usb1";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 1 0>; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "HT-TM02", "ralink,rt5350-soc"; compatible = "hootoo,ht-tm02", "ralink,rt5350-soc";
model = "HooToo HT-TM02"; model = "HooToo HT-TM02";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
wlan { wlan {
label = "ht-tm02:blue:wlan"; label = "ht-tm02:blue:wlan";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
lan { lan {
label = "ht-tm02:green:lan"; label = "ht-tm02:green:lan";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
modeswitch { modeswitch {
label = "modeswitch"; label = "modeswitch";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
linux,input-type = <EV_SW>; linux,input-type = <EV_SW>;
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "HW550-3G", "ralink,rt3052-soc"; compatible = "aztech,hw550-3g", "ralink,rt3052-soc";
model = "Aztech HW550-3G"; model = "Aztech HW550-3G";
cfi@1f000000 { cfi@1f000000 {
@ -45,22 +46,22 @@
usb { usb {
label = "hw550-3g:green:usb"; label = "hw550-3g:green:usb";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
3g { 3g {
label = "hw550-3g:green:3g"; label = "hw550-3g:green:3g";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
status { status {
label = "hw550-3g:green:status"; label = "hw550-3g:green:status";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "hw550-3g:green:wps"; label = "hw550-3g:green:wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -72,19 +73,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
connect { connect {
label = "connect"; label = "connect";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_CONNECT>; linux,code = <KEY_CONNECT>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "IP2202", "ralink,rt3052-soc"; compatible = "poray,ip2202", "ralink,rt3052-soc";
model = "Poray IP2202"; model = "Poray IP2202";
cfi@1f000000 { cfi@1f000000 {
@ -45,12 +46,12 @@
run { run {
label = "ip2202:green:run"; label = "ip2202:green:run";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
net { net {
label = "ip2202:amber:net"; label = "ip2202:amber:net";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -62,7 +63,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "JHR-N805R", "ralink,rt3050-soc"; compatible = "jcg,jhr-n805r", "ralink,rt3050-soc";
model = "JCG JHR-N805R"; model = "JCG JHR-N805R";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
system { system {
label = "jhr-n805r:blue:system"; label = "jhr-n805r:blue:system";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,7 +26,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "JHR-N825R", "ralink,rt3052-soc"; compatible = "jcg,jhr-n825r", "ralink,rt3052-soc";
model = "JCG JHR-N825R"; model = "JCG JHR-N825R";
cfi@1f000000 { cfi@1f000000 {
@ -44,7 +45,7 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
system { system {
label = "jhr-n825r:red:power"; label = "jhr-n825r:red:power";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -55,7 +56,7 @@
poll-interval = <20>; poll-interval = <20>;
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "JHR-N926R", "ralink,rt3052-soc"; compatible = "jcg,jhr-n926r", "ralink,rt3052-soc";
model = "JCG JHR-N926R"; model = "JCG JHR-N926R";
cfi@1f000000 { cfi@1f000000 {
@ -45,22 +46,22 @@
wlan1 { wlan1 {
label = "jhr-n926r:red:wlan"; label = "jhr-n926r:red:wlan";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
}; };
wlan2 { wlan2 {
label = "jhr-n926r:yellow:wlan"; label = "jhr-n926r:yellow:wlan";
gpios = <&gpio0 19 1>; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
}; };
wlan3 { wlan3 {
label = "jhr-n926r:green:wlan"; label = "jhr-n926r:green:wlan";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
system { system {
label = "jhr-n926r:blue:system"; label = "jhr-n926r:blue:system";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -71,19 +72,19 @@
display_data { display_data {
gpio-export,name = "display_data"; gpio-export,name = "display_data";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
display_clock { display_clock {
gpio-export,name = "display_clock"; gpio-export,name = "display_clock";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 8 0>; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
}; };
display_blank { display_blank {
gpio-export,name = "display_blank"; gpio-export,name = "display_blank";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 11 0>; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
}; };
}; };
@ -95,13 +96,13 @@
reset_wps { reset_wps {
label = "reset_wps"; label = "reset_wps";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wlan { wlan {
label = "wlan"; label = "wlan";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7628an.dtsi" #include "mt7628an.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -32,7 +33,7 @@
wifi { wifi {
label = "mediatek:orange:wifi"; label = "mediatek:orange:wifi";
gpios = <&wgpio 0 0>; gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
@ -45,7 +46,7 @@
wps { wps {
label = "reset"; label = "reset";
gpios = <&gpio1 6 1>; gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "M2M", "ralink,rt5350-soc"; compatible = "intenso,memory2move", "ralink,rt5350-soc";
model = "Intenso Memory 2 Move"; model = "Intenso Memory 2 Move";
chosen { chosen {
@ -17,12 +18,12 @@
wifi { wifi {
label = "m2m:blue:wifi"; label = "m2m:blue:wifi";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
wan { wan {
label = "m2m:green:wan"; label = "m2m:green:wan";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -34,13 +35,13 @@
power { power {
label = "power"; label = "power";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "M3", "ralink,rt5350-soc"; compatible = "poray,m3", "ralink,rt5350-soc";
model = "Poray M3"; model = "Poray M3";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
status { status {
label = "m3:blue:status"; label = "m3:blue:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,13 +26,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
mode { mode {
label = "mode"; label = "mode";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
linux,input-type = <EV_SW>; linux,input-type = <EV_SW>;
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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)"; model = "Poray M4 (4M)";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
status { status {
label = "m4:blue:status"; label = "m4:blue:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,7 +26,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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)"; model = "Poray M4 (8M)";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
status { status {
label = "m4:blue:status"; label = "m4:blue:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,7 +26,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,8 +2,11 @@
#include "mt7628an.dtsi" #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"; model = "Mercury MAC1200R v2";
chosen { chosen {
@ -19,7 +22,7 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
status { status {
label = "mac1200rv2:green:status"; label = "mac1200rv2:green:status";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "MINIEMBPLUG", "ralink,rt5350-soc"; compatible = "omnima,miniembplug", "ralink,rt5350-soc";
model = "Omnima MiniEMBPlug"; model = "Omnima MiniEMBPlug";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
wlan { wlan {
label = "miniembplug:red:wlan"; label = "miniembplug:red:wlan";
gpios = <&gpio0 9 0>; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
}; };
mobile { mobile {
label = "miniembplug:green:mobile"; label = "miniembplug:green:mobile";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,25 +31,25 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
mode-one { mode-one {
label = "mode1"; label = "mode1";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
mode-two { mode-two {
label = "mode2"; label = "mode2";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "MINIEMBWIFI", "ralink,rt3052-soc"; compatible = "omnima,miniembwifi", "ralink,rt3052-soc";
model = "Omnima MiniEMBWiFi"; model = "Omnima MiniEMBWiFi";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
status { status {
label = "miniembwifi:green:status"; label = "miniembwifi:green:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "miniembwifi:green:wlan"; label = "miniembwifi:green:wlan";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -17,17 +18,17 @@
blue { blue {
label = "miwifi-mini:blue:status"; label = "miwifi-mini:blue:status";
gpios = <&gpio1 0 1>; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
}; };
yellow { yellow {
label = "miwifi-mini:yellow:status"; label = "miwifi-mini:yellow:status";
gpios = <&gpio1 2 1>; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
}; };
red { red {
label = "miwifi-mini:red:status"; label = "miwifi-mini:red:status";
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -39,7 +40,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "xiaomi,MiWifi Nano", "mediatek,mt7628an-soc"; compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
model = "MiWiFi Nano"; model = "MiWiFi Nano";
chosen { chosen {

View File

@ -2,10 +2,11 @@
#include "mt7620n.dtsi" #include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "mlw221", "ralink,mt7620n-soc"; compatible = "kingston,mlw221", "ralink,mt7620n-soc";
model = "Kingston MLW221"; model = "Kingston MLW221";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
system { system {
label = "mlw221:blue:system"; label = "mlw221:blue:system";
gpios = <&gpio2 3 1>; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "mlw221:blue:wifi"; label = "mlw221:blue:wifi";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
system { system {
label = "system"; label = "system";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620n.dtsi" #include "mt7620n.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "mlwg2", "ralink,mt7620n-soc"; compatible = "kingston,mlwg2", "ralink,mt7620n-soc";
model = "Kingston MLWG2"; model = "Kingston MLWG2";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
system { system {
label = "mlwg2:blue:system"; label = "mlwg2:blue:system";
gpios = <&gpio2 3 1>; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "mlwg2:blue:wifi"; label = "mlwg2:blue:wifi";
gpios = <&gpio3 0 1>; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,13 +31,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
system { system {
label = "system"; label = "system";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.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"; model = "MoFi Network MOFI3500-3GN";
cfi@1f000000 { cfi@1f000000 {
@ -45,22 +46,22 @@
usb { usb {
label = "mofi3500-3gn:green:usb"; label = "mofi3500-3gn:green:usb";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
3g { 3g {
label = "mofi3500-3gn:green:3g"; label = "mofi3500-3gn:green:3g";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
status { status {
label = "mofi3500-3gn:green:status"; label = "mofi3500-3gn:green:status";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "mofi3500-3gn:green:wps"; label = "mofi3500-3gn:green:wps";
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -72,19 +73,19 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
connect { connect {
label = "connect"; label = "connect";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_CONNECT>; linux,code = <KEY_CONNECT>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "MPRA1", "ralink,rt5350-soc"; compatible = "hame,mpr-a1", "ralink,rt5350-soc";
model = "HAME MPR-A1"; model = "HAME MPR-A1";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
system { system {
label = "mpr-a1:blue:system"; label = "mpr-a1:blue:system";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "mpr-a1:red:power"; label = "mpr-a1:red:power";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
wps { wps {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
@ -42,13 +43,13 @@
usb { usb {
gpio-export,name = "usb"; gpio-export,name = "usb";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
root_hub { root_hub {
gpio-export,name = "root_hub"; gpio-export,name = "root_hub";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "MPRA2", "ralink,rt5350-soc"; compatible = "hame,mpr-a2", "ralink,rt5350-soc";
model = "HAME MPR-A2"; model = "HAME MPR-A2";
gpio-leds { gpio-leds {
@ -13,12 +14,12 @@
system { system {
label = "mpr-a2:blue:system"; label = "mpr-a2:blue:system";
gpios = <&gpio0 20 1>; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "mpr-a2:red:power"; label = "mpr-a2:red:power";
gpios = <&gpio0 17 1>; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -30,7 +31,7 @@
wps { wps {
label = "reset"; label = "reset";
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
@ -42,13 +43,13 @@
usb { usb {
gpio-export,name = "usb"; gpio-export,name = "usb";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 7 0>; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
}; };
root_hub { root_hub {
gpio-export,name = "root_hub"; gpio-export,name = "root_hub";
gpio-export,output = <1>; gpio-export,output = <1>;
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt3050.dtsi" #include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "MR-102N", "ralink,rt3052-soc"; compatible = "aximcom,mr-102n", "ralink,rt3052-soc";
model = "AXIMCom MR-102N"; model = "AXIMCom MR-102N";
cfi@1f000000 { cfi@1f000000 {
@ -55,17 +56,17 @@
usb { usb {
label = "mr-102n:green:usb"; label = "mr-102n:green:usb";
gpios = <&gpio0 8 1>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
}; };
status { status {
label = "mr-102n:amber:status"; label = "mr-102n:amber:status";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "mr-102n:green:wlan"; label = "mr-102n:green:wlan";
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -77,13 +78,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -16,13 +17,13 @@
s2 { s2 {
label = "S2"; label = "S2";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
s3 { s3 {
label = "S3"; label = "S3";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -16,13 +17,13 @@
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 13 1>; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
}; };
}; };

View File

@ -2,6 +2,7 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
@ -16,13 +17,13 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
aoss { aoss {
label = "aoss"; label = "aoss";
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "mt7620a.dtsi" #include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "ralink,mt7620a-soc"; compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc";
model = "Planex MZK-750DHP"; model = "Planex MZK-750DHP";
gpio-leds { gpio-leds {
@ -13,17 +14,17 @@
wps { wps {
label = "mzk-750dhp:green:wps"; label = "mzk-750dhp:green:wps";
gpios = <&gpio2 15 1>; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
}; };
power { power {
label = "mzk-750dhp:green:power"; label = "mzk-750dhp:green:power";
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
wlan5g { wlan5g {
label = "mzk-750dhp:green:wlan5g"; label = "mzk-750dhp:green:wlan5g";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -35,13 +36,13 @@
s1 { s1 {
label = "reset"; label = "reset";
gpios = <&gpio0 1 1>; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
s2 { s2 {
label = "wps"; label = "wps";
gpios = <&gpio2 19 1>; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };

View File

@ -2,10 +2,11 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "MZK-DP150N", "ralink,rt5350-soc"; compatible = "planex,mzk-dp150n", "ralink,rt5350-soc";
model = "Planex MZK-DP150N"; model = "Planex MZK-DP150N";
gpio-leds { gpio-leds {
@ -13,7 +14,7 @@
power { power {
label = "mzk-dp150n:green:power"; label = "mzk-dp150n:green:power";
gpios = <&gpio0 9 1>; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
}; };
}; };
@ -25,7 +26,7 @@
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio0 10 1>; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };

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