The device tree file of ARV752DPW uses numbers/hex values for gpio states and input event codes.
This cleans it up and uses the available macros from header files. This way the functions are easier to read and comprehend.
Signed-off-by: Andreas Eberlein <foodeas@aeberlein.de>
[sanitize all device tree files]
Signed-off-by: Mathias Kresin <dev@kresin.me>
56 files changed:
/ {
model = "ACMP252 - AudioCodes MediaPack MP-252";
/ {
model = "ACMP252 - AudioCodes MediaPack MP-252";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
/ {
model = "ARV4510PW - Wippies, Elisa";
/ {
model = "ARV4510PW - Wippies, Elisa";
0x7800 0 0 2 &icu0 66
0x7800 0 0 3 &icu0 66
>;
0x7800 0 0 2 &icu0 66
0x7800 0 0 3 &icu0 66
>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 14 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 3 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power: power {
label = "power";
compatible = "gpio-leds";
power: power {
label = "power";
+ gpios = <&gpios 21 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
power2: power2 {
label = "power2";
default-state = "keep";
};
power2: power2 {
label = "power2";
+ gpios = <&gpios 20 GPIO_ACTIVE_HIGH>;
};
lan1 {
label = "lan1";
};
lan1 {
label = "lan1";
+ gpios = <&gpios 19 GPIO_ACTIVE_HIGH>;
};
lan2 {
label = "lan2";
};
lan2 {
label = "lan2";
+ gpios = <&gpios 18 GPIO_ACTIVE_HIGH>;
};
lan3 {
label = "lan3";
};
lan3 {
label = "lan3";
+ gpios = <&gpios 17 GPIO_ACTIVE_HIGH>;
};
lan4 {
label = "lan4";
};
lan4 {
label = "lan4";
+ gpios = <&gpios 16 GPIO_ACTIVE_HIGH>;
};
wifi: wifi {
label = "wifi";
};
wifi: wifi {
label = "wifi";
+ gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
};
adsl: adsl {
label = "adsl";
};
adsl: adsl {
label = "adsl";
+ gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
};
internet: internet {
label = "internet";
};
internet: internet {
label = "internet";
+ gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
};
internet2 {
label = "internet2";
};
internet2 {
label = "internet2";
+ gpios = <&gpios 12 GPIO_ACTIVE_HIGH>;
};
voip {
label = "voip";
};
voip {
label = "voip";
+ gpios = <&gpios 11 GPIO_ACTIVE_HIGH>;
};
phone {
label = "phone";
};
phone {
label = "phone";
+ gpios = <&gpios 10 GPIO_ACTIVE_HIGH>;
};
phone2 {
label = "phone2";
};
phone2 {
label = "phone2";
+ gpios = <&gpios 9 GPIO_ACTIVE_HIGH>;
};
usb: usb {
label = "usb";
};
usb: usb {
label = "usb";
+ gpios = <&gpios 8 GPIO_ACTIVE_HIGH>;
};
usb2: usb2 {
label = "usb2";
};
usb2: usb2 {
label = "usb2";
+ gpios = <&gpios 7 GPIO_ACTIVE_HIGH>;
};
usb3 {
label = "usb3";
};
usb3 {
label = "usb3";
+ gpios = <&gpios 6 GPIO_ACTIVE_HIGH>;
};
unlabeled {
label = "unlabeled";
};
unlabeled {
label = "unlabeled";
+ gpios = <&gpios 5 GPIO_ACTIVE_HIGH>;
-/include/ "ARV4518PWR01.dtsi"
+#include "ARV4518PWR01.dtsi"
/ {
model = "ARV4518PWR01 - SMC7908A-ISP";
/ {
model = "ARV4518PWR01 - SMC7908A-ISP";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
};
pci@E105400 {
status = "okay";
};
pci@E105400 {
status = "okay";
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 28 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power: power {
label = "power";
compatible = "gpio-leds";
power: power {
label = "power";
+ gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
dsl: dsl {
label = "dsl";
default-state = "keep";
};
dsl: dsl {
label = "dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
online: online {
label = "online";
};
online: online {
label = "online";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "wifi";
};
wifi: wifi {
label = "wifi";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
dsl2 {
label = "dsl2";
};
dsl2 {
label = "dsl2";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "usb";
};
usb: usb {
label = "usb";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
voice {
label = "voice";
};
voice {
label = "voice";
+ gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
};
fxs1 {
label = "fxs1";
};
fxs1 {
label = "fxs1";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
};
fxs2 {
label = "fxs2";
};
fxs2 {
label = "fxs2";
+ gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
+ gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
-/include/ "ARV4518PWR01.dtsi"
+#include "ARV4518PWR01.dtsi"
/ {
model = "ARV4518PWR01A - SMC7908A-ISP, Airties WAV-221";
/ {
model = "ARV4518PWR01A - SMC7908A-ISP, Airties WAV-221";
/ {
model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
/ {
model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
};
pci@E105400 {
status = "okay";
lantiq,external-clock;
};
pci@E105400 {
status = "okay";
lantiq,external-clock;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 28 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
power_green: power {
label = "arv4519pw:green:power";
power_green: power {
label = "arv4519pw:green:power";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
label = "arv4519pw:red:power";
default-state = "keep";
};
power_red: power2 {
label = "arv4519pw:red:power";
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv4519pw:green:wlan";
};
wifi: wifi {
label = "arv4519pw:green:wlan";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "arv4519pw:green:dsl";
};
dsl: dsl {
label = "arv4519pw:green:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
internet_green: online {
label = "arv4519pw:green:internet";
};
internet_green: online {
label = "arv4519pw:green:internet";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
online2 {
label = "arv4519pw:red:internet";
};
online2 {
label = "arv4519pw:red:internet";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "arv4519pw:green:usb";
};
usb: usb {
label = "arv4519pw:green:usb";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
voip {
label = "arv4519pw:green:voip";
};
voip {
label = "arv4519pw:green:voip";
+ gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
};
fxs1 {
label = "arv4519pw:green:phone1";
};
fxs1 {
label = "arv4519pw:green:phone1";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
};
fxs2 {
label = "arv4519pw:green:phone2";
};
fxs2 {
label = "arv4519pw:green:phone2";
+ gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
};
fxo {
label = "arv4519pw:green:line";
};
fxo {
label = "arv4519pw:green:line";
+ gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
wps2 {
label = "arv4519pw:green:wps";
};
wps2 {
label = "arv4519pw:green:wps";
+ gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
wps {
label = "arv4519pw:orange:wps";
};
wps {
label = "arv4519pw:orange:wps";
+ gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wps3 {
label = "arv4519pw:red:wps";
};
wps3 {
label = "arv4519pw:red:wps";
+ gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
/ {
model = "ARV4520PW - Easybox 800, WAV-281";
/ {
model = "ARV4520PW - Easybox 800, WAV-281";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
- gpios = <&gpio 31 0
- &gpiomm 7 0>;
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH
+ &gpiomm 7 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
};
pci@E105400 {
status = "okay";
lantiq,external-clock;
};
pci@E105400 {
status = "okay";
lantiq,external-clock;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 29 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
power_blue: power {
label = "arv4520pw:blue:power";
power_blue: power {
label = "arv4520pw:blue:power";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
dsl: dsl {
label = "arv4520pw:blue:dsl";
default-state = "keep";
};
dsl: dsl {
label = "arv4520pw:blue:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
internet_blue: internet {
label = "arv4520pw:blue:internet";
};
internet_blue: internet {
label = "arv4520pw:blue:internet";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power2 {
label = "arv4520pw:red:power";
};
power_red: power2 {
label = "arv4520pw:red:power";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wps {
label = "arv4520pw:yellow:wps";
};
wps {
label = "arv4520pw:yellow:wps";
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wps2 {
label = "arv4520pw:red:wps";
};
wps2 {
label = "arv4520pw:red:wps";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
/*
wps green is missing
*/
fxs1 {
label = "arv4520pw:blue:telefon1";
};
/*
wps green is missing
*/
fxs1 {
label = "arv4520pw:blue:telefon1";
+ gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
};
fxs2 {
label = "arv4520pw:blue:telefon2";
};
fxs2 {
label = "arv4520pw:blue:telefon2";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
};
isdn {
label = "arv4520pw:blue:isdn";
};
isdn {
label = "arv4520pw:blue:isdn";
+ gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
};
fxo {
label = "arv4520pw:blue:line";
};
fxo {
label = "arv4520pw:blue:line";
+ gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
voice {
label = "arv4520pw:blue:sprache";
};
voice {
label = "arv4520pw:blue:sprache";
+ gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "arv4520pw:blue:usb";
};
usb: usb {
label = "arv4520pw:blue:usb";
+ gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv4520pw:blue:wifi";
};
wifi: wifi {
label = "arv4520pw:blue:wifi";
+ gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
};
internet2 {
label = "arv4520pw:red:internet";
};
internet2 {
label = "arv4520pw:red:internet";
+ gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
/ {
model = "ARV4525PW - Speedport W501V Typ A";
/ {
model = "ARV4525PW - Speedport W501V Typ A";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
pci@E105400 {
status = "okay";
pci@E105400 {
status = "okay";
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 29 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
fxo {
label = "arv4525pw:green:festnetz";
compatible = "gpio-leds";
fxo {
label = "arv4525pw:green:festnetz";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
fxs {
label = "arv4525pw:green:internet";
};
fxs {
label = "arv4525pw:green:internet";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "arv4525pw:green:t-dsl";
};
dsl: dsl {
label = "arv4525pw:green:t-dsl";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv4525pw:green:wlan";
};
wifi: wifi {
label = "arv4525pw:green:wlan";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
online: online {
label = "arv4525pw:green:online";
};
online: online {
label = "arv4525pw:green:online";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
/ {
model = "ARV452CQW - Arcor 801";
/ {
model = "ARV452CQW - Arcor 801";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
- gpios = <&gpio 31 0
- &gpiomm 7 0>;
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH
+ &gpiomm 7 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
pci@E105400 {
status = "okay";
lantiq,external-clock;
pci@E105400 {
status = "okay";
lantiq,external-clock;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 11 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
- gpios = <&gpio 29 1>;
- linux,code = <0x101>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_1>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power_blue: power0 {
label = "arv452cqw:blue:power";
compatible = "gpio-leds";
power_blue: power0 {
label = "arv452cqw:blue:power";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
dsl_blue: dsl {
label = "arv452cqw:blue:dsl";
default-state = "keep";
};
dsl_blue: dsl {
label = "arv452cqw:blue:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
isdn {
label = "arv452cqw:blue:isdn";
};
isdn {
label = "arv452cqw:blue:isdn";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power1 {
label = "arv452cqw:red:power";
};
power_red: power1 {
label = "arv452cqw:red:power";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wps {
label = "arv452cqw:blue:wps";
};
wps {
label = "arv452cqw:blue:wps";
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wps1 {
label = "arv452cqw:yellow:wps";
};
wps1 {
label = "arv452cqw:yellow:wps";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
fxs1 {
label = "arv452cqw:blue:telefon1";
};
fxs1 {
label = "arv452cqw:blue:telefon1";
+ gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
};
fxs2 {
label = "arv452cqw:blue:telefon2";
};
fxs2 {
label = "arv452cqw:blue:telefon2";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
};
wps2 {
label = "arv452cqw:red:wps";
};
wps2 {
label = "arv452cqw:red:wps";
+ gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
};
fxo {
label = "arv452cqw:blue:line";
};
fxo {
label = "arv452cqw:blue:line";
+ gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
voice {
label = "arv452cqw:blue:sprache";
};
voice {
label = "arv452cqw:blue:sprache";
};
usb: usb {
label = "arv452cqw:blue:usb";
};
usb: usb {
label = "arv452cqw:blue:usb";
+ gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv452cqw:blue:wlan";
};
wifi: wifi {
label = "arv452cqw:blue:wlan";
+ gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
};
/*
internet blue and internet red are missing
};
/*
internet blue and internet red are missing
*/
dsl2 {
label = "arv452cqw:yellow:dsl";
*/
dsl2 {
label = "arv452cqw:yellow:dsl";
+ gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
};
dsl3 {
label = "arv452cqw:red:dsl";
};
dsl3 {
label = "arv452cqw:red:dsl";
+ gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
/ {
model = "ARV7506PW11 - Alice/O2 IAD 4421";
/ {
model = "ARV7506PW11 - Alice/O2 IAD 4421";
pci@E105400 {
status = "okay";
pci@E105400 {
status = "okay";
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 11 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
wlan: wlan {
label = "arv7506pw11:green:wlan";
compatible = "gpio-leds";
wlan: wlan {
label = "arv7506pw11:green:wlan";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
power: power {
label = "arv7506pw11:green:power";
};
power: power {
label = "arv7506pw11:green:power";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
dsl: dsl {
label = "arv7506pw11:green:dsl";
default-state = "keep";
};
dsl: dsl {
label = "arv7506pw11:green:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
internet: internet {
label = "arv7506pw11:green:internet";
};
internet: internet {
label = "arv7506pw11:green:internet";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power_red {
label = "arv7506pw11:red:power";
};
power_red: power_red {
label = "arv7506pw11:red:power";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
internet_red {
label = "arv7506pw11:red:internet";
};
internet_red {
label = "arv7506pw11:red:internet";
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
info {
label = "arv7506pw11:green:info";
};
info {
label = "arv7506pw11:green:info";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
telefon {
label = "arv7506pw11:green:telefon";
};
telefon {
label = "arv7506pw11:green:telefon";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
info_red {
label = "arv7506pw11:red:info";
};
info_red {
label = "arv7506pw11:red:info";
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
/ {
model = "ARV7510PW22 - Astoria Networks";
/ {
model = "ARV7510PW22 - Astoria Networks";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
0x7800 0 0 2 &icu0 135
0x7800 0 0 3 &icu0 135
>;
0x7800 0 0 2 &icu0 135
0x7800 0 0 3 &icu0 135
>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 11 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
restart {
label = "restart";
};
restart {
label = "restart";
- gpios = <&gpio 12 1>;
- linux,code = <0x100>;
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_0>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 28 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power: power {
label = "power";
compatible = "gpio-leds";
power: power {
label = "power";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
internet: internet {
label = "internet";
default-state = "keep";
};
internet: internet {
label = "internet";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
wlan: wlan {
label = "wlan";
};
wlan: wlan {
label = "wlan";
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
umts: 3g {
label = "3g";
};
umts: 3g {
label = "3g";
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
message {
label = "message";
};
message {
label = "message";
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
/ {
model = "ARV7518PW - Astoria Networks";
/ {
model = "ARV7518PW - Astoria Networks";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
};
pci@E105400 {
status = "okay";
lantiq,external-clock;
};
pci@E105400 {
status = "okay";
lantiq,external-clock;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 28 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power_green: power {
label = "arv7518pw:green:power";
compatible = "gpio-leds";
power_green: power {
label = "arv7518pw:green:power";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
dsl: dsl {
label = "arv7518pw:green:dsl";
default-state = "keep";
};
dsl: dsl {
label = "arv7518pw:green:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
online_green: online {
label = "arv7518pw:green:internet";
};
online_green: online {
label = "arv7518pw:green:internet";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv7518pw:green:wlan";
};
wifi: wifi {
label = "arv7518pw:green:wlan";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
power_red: power2 {
label = "arv7518pw:red:power";
};
power_red: power2 {
label = "arv7518pw:red:power";
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
online2 {
label = "arv7518pw:red:internet";
};
online2 {
label = "arv7518pw:red:internet";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "arv7518pw:green:usb";
};
usb: usb {
label = "arv7518pw:green:usb";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
voice {
label = "arv7518pw:green:voip";
};
voice {
label = "arv7518pw:green:voip";
+ gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
};
fxs1 {
label = "arv7518pw:green:phone1";
};
fxs1 {
label = "arv7518pw:green:phone1";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
};
fxs2 {
label = "arv7518pw:green:phone2";
};
fxs2 {
label = "arv7518pw:green:phone2";
+ gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
};
unlabeled {
label = "arv7518pw:amber:unlabeled";
};
unlabeled {
label = "arv7518pw:amber:unlabeled";
+ gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
wps {
label = "arv7518pw:amber:wps";
};
wps {
label = "arv7518pw:amber:wps";
+ gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
wps2 {
label = "arv7518pw:green:wps";
};
wps2 {
label = "arv7518pw:green:wps";
+ gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wps3 {
label = "arv7518pw:red:wps";
};
wps3 {
label = "arv7518pw:red:wps";
+ gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
/ {
model = "ARV7519PW - Astoria Networks";
/ {
model = "ARV7519PW - Astoria Networks";
pci@E105400 {
status = "okay";
lantiq,external-clock;
pci@E105400 {
status = "okay";
lantiq,external-clock;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 11 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 28 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power: power {
label = "power";
compatible = "gpio-leds";
power: power {
label = "power";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power2: power2 {
label = "power2";
default-state = "keep";
};
power2: power2 {
label = "power2";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
online: online {
label = "online";
};
online: online {
label = "online";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
online2 {
label = "online2";
};
online2 {
label = "online2";
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "wifi";
};
wifi: wifi {
label = "wifi";
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
wifi2 {
label = "wifi2";
};
wifi2 {
label = "wifi2";
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
wifi3 {
label = "wifi3";
};
wifi3 {
label = "wifi3";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
voice {
label = "voice";
};
voice {
label = "voice";
+ gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
wps2 {
label = "wps2";
};
wps2 {
label = "wps2";
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wps3 {
label = "wps3";
};
wps3 {
label = "wps3";
+ gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "dsl";
};
dsl: dsl {
label = "dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
upgrade {
label = "upgrade";
};
upgrade {
label = "upgrade";
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
+ gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
/ {
model = "ARV7519RW22 - Orange Livebox 2.1";
/ {
model = "ARV7519RW22 - Orange Livebox 2.1";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
};
ifxhcd@E106000 {
status = "okay";
};
ifxhcd@E106000 {
status = "okay";
+ gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 6 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "rfkill";
};
rfkill {
label = "rfkill";
- gpios = <&gpio 33 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
- gpios = <&gpio 37 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
lan_green {
label = "arv7519rw22:green:lan";
lan_green {
label = "arv7519rw22:green:lan";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
internet_red {
label = "arv7519rw22:red:internet";
};
internet_red {
label = "arv7519rw22:red:internet";
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
power_green: power_green {
label = "arv7519rw22:green:power";
};
power_green: power_green {
label = "arv7519rw22:green:power";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
alarm_blue {
label = "arv7519rw22:blue:alarm";
default-state = "keep";
};
alarm_blue {
label = "arv7519rw22:blue:alarm";
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
internet_orange {
label = "arv7519rw22:orange:internet";
};
internet_orange {
label = "arv7519rw22:orange:internet";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
internet_green: internet_green {
label = "arv7519rw22:green:internet";
};
internet_green: internet_green {
label = "arv7519rw22:green:internet";
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
voice_green {
label = "arv7519rw22:green:voice";
};
voice_green {
label = "arv7519rw22:green:voice";
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
/ {
model = "ARV7525PW - Speedport W303V Typ A";
/ {
model = "ARV7525PW - Speedport W303V Typ A";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 29 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power_green: power {
label = "arv7525pw:green:power";
compatible = "gpio-leds";
power_green: power {
label = "arv7525pw:green:power";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power1 {
label = "arv7525pw:red:power";
default-state = "keep";
};
power_red: power1 {
label = "arv7525pw:red:power";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
online: online {
label = "arv7525pw:green:online";
};
online: online {
label = "arv7525pw:green:online";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
voice {
label = "arv7525pw:green:telefonie";
};
voice {
label = "arv7525pw:green:telefonie";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
voice2 {
label = "arv7525pw:red:telefonie";
};
voice2 {
label = "arv7525pw:red:telefonie";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv7525pw:green:wlan";
};
wifi: wifi {
label = "arv7525pw:green:wlan";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
/ {
model = "ARV752DPW - Arcor 802";
/ {
model = "ARV752DPW - Arcor 802";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
pci@E105400 {
status = "okay";
lantiq,external-clock;
pci@E105400 {
status = "okay";
lantiq,external-clock;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
interrupt-map = <0x7000 0 0 1 &icu0 135>;
req-mask = <0x3>;
};
interrupt-map = <0x7000 0 0 1 &icu0 135>;
req-mask = <0x3>;
};
- gpios = <&gpio 11 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
restart {
label = "restart";
};
restart {
label = "restart";
- gpios = <&gpio 12 1>;
- linux,code = <0x100>;
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_0>;
- gpios = <&gpio 13 1>;
- linux,code = <0x101>;
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_1>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power_blue: power1 {
label = "arv752dpw:blue:power";
compatible = "gpio-leds";
power_blue: power1 {
label = "arv752dpw:blue:power";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
internet_red: internet {
label = "arv752dpw:red:internet";
};
internet_red: internet {
label = "arv752dpw:red:internet";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
message {
label = "arv752dpw:red:message";
};
message {
label = "arv752dpw:red:message";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power {
label = "arv752dpw:red:power";
};
power_red: power {
label = "arv752dpw:red:power";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
voice1 {
label = "arv752dpw:red:voice";
default-state = "keep";
};
voice1 {
label = "arv752dpw:red:voice";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
umts: umts {
label = "arv752dpw:red:umts";
};
umts: umts {
label = "arv752dpw:red:umts";
+ gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv752dpw:red:wifi";
};
wifi: wifi {
label = "arv752dpw:red:wifi";
+ gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
fxs1 {
label = "arv752dpw:green:tae-n";
};
fxs1 {
label = "arv752dpw:green:tae-n";
+ gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
fxs2 {
label = "arv752dpw:green:tae-u";
};
fxs2 {
label = "arv752dpw:green:tae-u";
+ gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
};
fxo {
label = "arv752dpw:green:isdn";
};
fxo {
label = "arv752dpw:green:isdn";
+ gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
};
internet2 {
label = "arv752dpw:blue:internet";
};
internet2 {
label = "arv752dpw:blue:internet";
+ gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
};
voice2 {
label = "arv752dpw:blue:voice";
};
voice2 {
label = "arv752dpw:blue:voice";
+ gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
/ {
model = "ARV752DPW22 - Arcor 803";
/ {
model = "ARV752DPW22 - Arcor 803";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
0x7800 0 0 2 &icu0 135
0x7800 0 0 3 &icu0 135
>;
0x7800 0 0 2 &icu0 135
0x7800 0 0 3 &icu0 135
>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 11 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
restart {
label = "restart";
};
restart {
label = "restart";
- gpios = <&gpio 12 1>;
- linux,code = <0x110>;
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_LEFT>;
- gpios = <&gpio 13 1>;
- linux,code = <0x111>;
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_RIGHT>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 28 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
power_blue: power1 {
label = "arv752dpw22:blue:power";
compatible = "gpio-leds";
power_blue: power1 {
label = "arv752dpw22:blue:power";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
internet_red: internet {
label = "arv752dpw22:red:internet";
};
internet_red: internet {
label = "arv752dpw22:red:internet";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
message {
label = "arv752dpw22:red:message";
};
message {
label = "arv752dpw22:red:message";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power {
label = "arv752dpw22:red:power";
};
power_red: power {
label = "arv752dpw22:red:power";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
voice1 {
label = "arv752dpw22:red:voice";
default-state = "keep";
};
voice1 {
label = "arv752dpw22:red:voice";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
umts: umts {
label = "arv752dpw22:red:umts";
};
umts: umts {
label = "arv752dpw22:red:umts";
+ gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "arv752dpw22:red:wifi";
};
wifi: wifi {
label = "arv752dpw22:red:wifi";
+ gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
fxs1 {
label = "arv752dpw22:green:tae-n";
};
fxs1 {
label = "arv752dpw22:green:tae-n";
+ gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
fxs2 {
label = "arv752dpw22:green:tae-u";
};
fxs2 {
label = "arv752dpw22:green:tae-u";
+ gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
};
fxo {
label = "arv752dpw22:green:isdn";
};
fxo {
label = "arv752dpw22:green:isdn";
+ gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
};
internet2 {
label = "arv752dpw22:blue:internet";
};
internet2 {
label = "arv752dpw22:blue:internet";
+ gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
};
voice2 {
label = "arv752dpw22:blue:voice";
};
voice2 {
label = "arv752dpw22:blue:voice";
+ gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
};
eth1 {
label = "arv752dpw22:green:lan1";
};
eth1 {
label = "arv752dpw22:green:lan1";
- gpios = <&gpiomm 11 1>;
+ gpios = <&gpiomm 11 GPIO_ACTIVE_LOW>;
};
eth2 {
label = "arv752dpw22:green:lan2";
};
eth2 {
label = "arv752dpw22:green:lan2";
- gpios = <&gpiomm 12 1>;
+ gpios = <&gpiomm 12 GPIO_ACTIVE_LOW>;
};
eth3 {
label = "arv752dpw22:green:lan3";
};
eth3 {
label = "arv752dpw22:green:lan3";
- gpios = <&gpiomm 13 1>;
+ gpios = <&gpiomm 13 GPIO_ACTIVE_LOW>;
};
eth4 {
label = "arv752dpw22:green:lan4";
};
eth4 {
label = "arv752dpw22:green:lan4";
- gpios = <&gpiomm 14 1>;
+ gpios = <&gpiomm 14 GPIO_ACTIVE_LOW>;
/ {
model = "ARV8539PW22 - Speedport W 504V Typ A";
/ {
model = "ARV8539PW22 - Speedport W 504V Typ A";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
pci@E105400 {
status = "okay";
pci@E105400 {
status = "okay";
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
};
ifxhcd@E101000 {
status = "okay";
};
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
lantiq,portmask = <0x3>;
};
- gpios = <&gpio 29 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 30 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
power_green: power-green {
label = "arv8539pw22:green:power";
power_green: power-green {
label = "arv8539pw22:green:power";
+ gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power-red {
label = "arv8539pw22:red:power";
default-state = "keep";
};
power_red: power-red {
label = "arv8539pw22:red:power";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
dsl_green: dsl-green {
label = "arv8539pw22:green:dsl";
};
dsl_green: dsl-green {
label = "arv8539pw22:green:dsl";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
online_green: online-green {
label = "arv8539pw22:green:online";
};
online_green: online-green {
label = "arv8539pw22:green:online";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wireless_green: wireless-green {
label = "arv8539pw22:green:wlan";
};
wireless_green: wireless-green {
label = "arv8539pw22:green:wlan";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
/*
telefonie green is missing
};
/*
telefonie green is missing
/ {
model = "BTHOMEHUBV2B - BT Home Hub 2B"; /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */
/ {
model = "BTHOMEHUBV2B - BT Home Hub 2B"; /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
req-mask = <0x1>; /* GNT1 */
};
- gpios = <&gpio 2 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
findhandset {
label = "findhandset";
};
findhandset {
label = "findhandset";
- gpios = <&gpio 15 1>;
- linux,code = <0x101>;
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_1>;
- gpios = <&gpio 22 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
upgrading-orange {
label = "bthomehubv2b:orange:upgrading";
upgrading-orange {
label = "bthomehubv2b:orange:upgrading";
+ gpios = <&stp0 5 GPIO_ACTIVE_HIGH>;
};
phone-orange {
label = "bthomehubv2b:orange:phone";
};
phone-orange {
label = "bthomehubv2b:orange:phone";
+ gpios = <&stp0 6 GPIO_ACTIVE_HIGH>;
};
phone-blue {
label = "bthomehubv2b:blue:phone";
};
phone-blue {
label = "bthomehubv2b:blue:phone";
+ gpios = <&stp0 7 GPIO_ACTIVE_HIGH>;
};
wireless-orange {
label = "bthomehubv2b:orange:wireless";
};
wireless-orange {
label = "bthomehubv2b:orange:wireless";
+ gpios = <&stp0 8 GPIO_ACTIVE_HIGH>;
};
wireless_blue: wireless-blue {
label = "bthomehubv2b:blue:wireless";
};
wireless_blue: wireless-blue {
label = "bthomehubv2b:blue:wireless";
+ gpios = <&stp0 9 GPIO_ACTIVE_HIGH>;
};
broadband-red {
label = "bthomehubv2b:red:broadband";
};
broadband-red {
label = "bthomehubv2b:red:broadband";
+ gpios = <&stp0 10 GPIO_ACTIVE_HIGH>;
};
broadband-orange {
label = "bthomehubv2b:orange:broadband";
};
broadband-orange {
label = "bthomehubv2b:orange:broadband";
+ gpios = <&stp0 11 GPIO_ACTIVE_HIGH>;
};
broadband_blue: broadband-blue {
label = "bthomehubv2b:blue:broadband";
};
broadband_blue: broadband-blue {
label = "bthomehubv2b:blue:broadband";
+ gpios = <&stp0 12 GPIO_ACTIVE_HIGH>;
};
power_red: power-red {
label = "bthomehubv2b:red:power";
};
power_red: power-red {
label = "bthomehubv2b:red:power";
+ gpios = <&stp0 13 GPIO_ACTIVE_HIGH>;
};
power_orange: power-orange {
label = "bthomehubv2b:orange:power";
};
power_orange: power-orange {
label = "bthomehubv2b:orange:power";
+ gpios = <&stp0 14 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
power_blue: power-blue {
label = "bthomehubv2b:blue:power";
default-state = "keep";
};
power_blue: power-blue {
label = "bthomehubv2b:blue:power";
+ gpios = <&stp0 15 GPIO_ACTIVE_HIGH>;
/ {
model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */
/ {
model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
};
pci@E105400 {
status = "okay";
};
pci@E105400 {
status = "okay";
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
poll-interval = <100>;
reset {
label = "reset";
poll-interval = <100>;
reset {
label = "reset";
- gpios = <&gpio 54 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
restart {
label = "restart";
};
restart {
label = "restart";
- gpios = <&gpio 52 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
- gpios = <&gpio 53 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
wireless-red {
label = "bthomehubv3a:red:wireless";
wireless-red {
label = "bthomehubv3a:red:wireless";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
wireless-orange {
label = "bthomehubv3a:orange:wireless";
};
wireless-orange {
label = "bthomehubv3a:orange:wireless";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wireless_blue: wireless-blue {
label = "bthomehubv3a:blue:wireless";
};
wireless_blue: wireless-blue {
label = "bthomehubv3a:blue:wireless";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
broadband-red {
label = "bthomehubv3a:red:broadband";
};
broadband-red {
label = "bthomehubv3a:red:broadband";
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
broadband-orange {
label = "bthomehubv3a:orange:broadband";
};
broadband-orange {
label = "bthomehubv3a:orange:broadband";
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
broadband_blue: broadband-blue {
label = "bthomehubv3a:blue:broadband";
};
broadband_blue: broadband-blue {
label = "bthomehubv3a:blue:broadband";
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
power_red: power-red {
label = "bthomehubv3a:red:power";
};
power_red: power-red {
label = "bthomehubv3a:red:power";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
power_orange: power-orange {
label = "bthomehubv3a:orange:power";
};
power_orange: power-orange {
label = "bthomehubv3a:orange:power";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_blue: power-blue {
label = "bthomehubv3a:blue:power";
default-state = "keep";
};
power_blue: power-blue {
label = "bthomehubv3a:blue:power";
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
/ {
model = "BTHOMEHUBV5A - BT Home Hub 5A";
/ {
model = "BTHOMEHUBV5A - BT Home Hub 5A";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 2 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
- gpios = <&gpio 25 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
restart {
label = "restart";
};
restart {
label = "restart";
- gpios = <&gpio 39 1>;
- linux,code = <0x74>;
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_POWER>;
/* broadband-* is a single RGB led */
broadband-red {
label = "bthomehubv5a:red:broadband";
/* broadband-* is a single RGB led */
broadband-red {
label = "bthomehubv5a:red:broadband";
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
broadband-green {
label = "bthomehubv5a:green:broadband";
};
broadband-green {
label = "bthomehubv5a:green:broadband";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
broadband_blue: broadband-blue {
label = "bthomehubv5a:blue:broadband";
};
broadband_blue: broadband-blue {
label = "bthomehubv5a:blue:broadband";
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
/* wireless-* is a single RGB led */
wireless-red {
label = "bthomehubv5a:red:wireless";
};
/* wireless-* is a single RGB led */
wireless-red {
label = "bthomehubv5a:red:wireless";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
wireless-green {
label = "bthomehubv5a:green:wireless";
};
wireless-green {
label = "bthomehubv5a:green:wireless";
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
wireless_blue: wireless-blue {
label = "bthomehubv5a:blue:wireless";
};
wireless_blue: wireless-blue {
label = "bthomehubv5a:blue:wireless";
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
/* power-* is a single RGB led */
power_red: power-red {
label = "bthomehubv5a:red:power";
};
/* power-* is a single RGB led */
power_red: power-red {
label = "bthomehubv5a:red:power";
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
power_green: power-green {
label = "bthomehubv5a:green:power";
};
power_green: power-green {
label = "bthomehubv5a:green:power";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_blue: power-blue {
label = "bthomehubv5a:blue:power";
default-state = "keep";
};
power_blue: power-blue {
label = "bthomehubv5a:blue:power";
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
dimmed {
label = "dimmed";
};
dimmed {
label = "dimmed";
+ gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
-/include/ "amazonse.dtsi"
+#include "amazonse.dtsi"
/ {
model = "DGN1000B - Netgear DGN1000B";
/ {
model = "DGN1000B - Netgear DGN1000B";
- gpios = <&gpio 0 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "rfkill";
};
rfkill {
label = "rfkill";
- gpios = <&gpio 25 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
- gpios = <&gpio 29 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
compatible = "gpio-leds";
dsl: dsl {
label = "dgn1000b:green:dsl";
compatible = "gpio-leds";
dsl: dsl {
label = "dgn1000b:green:dsl";
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "on";
};
online_green: online {
label = "dgn1000b:green:online";
default-state = "on";
};
online_green: online {
label = "dgn1000b:green:online";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "on";
};
online2 {
label = "dgn1000b:red:online";
default-state = "on";
};
online2 {
label = "dgn1000b:red:online";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wps {
label = "dgn1000b:green:wps";
default-state = "on";
};
wps {
label = "dgn1000b:green:wps";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
default-state = "on";
};
power: power {
label = "dgn1000b:green:power";
default-state = "on";
};
power: power {
label = "dgn1000b:green:power";
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
/*
default-state = "keep";
};
/*
-/include/ "DGN3500.dtsi"
/ {
model = "DGN3500 - Netgear DGN3500";
/ {
model = "DGN3500 - Netgear DGN3500";
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
};
req-mask = <0x1>; /* GNT1 */
};
};
rtl8366rb {
compatible = "rtl8366rb";
rtl8366rb {
compatible = "rtl8366rb";
- gpio-sda = <&gpio 35 0>;
- gpio-sck = <&gpio 37 0>;
+ gpio-sda = <&gpio 35 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio 37 GPIO_ACTIVE_HIGH>;
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 36 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
- gpios = <&gpio 54 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 53 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
compatible = "gpio-leds";
internet: internet {
label = "dgn3500:green:internet";
compatible = "gpio-leds";
internet: internet {
label = "dgn3500:green:internet";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
/*
internet red is missing
*/
dsl: dsl {
label = "dgn3500:green:dsl";
};
/*
internet red is missing
*/
dsl: dsl {
label = "dgn3500:green:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "dgn3500:green:usb";
};
usb: usb {
label = "dgn3500:green:usb";
+ gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
power_green: power {
label = "dgn3500:green:power";
};
power_green: power {
label = "dgn3500:green:power";
+ gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
label = "dgn3500:red:power";
default-state = "keep";
};
power_red: power2 {
label = "dgn3500:red:power";
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
/*
power amber is missing
*/
wifi: wifi {
label = "dgn3500:blue:wireless";
};
/*
power amber is missing
*/
wifi: wifi {
label = "dgn3500:blue:wireless";
+ gpios = <&gpio 51 GPIO_ACTIVE_LOW>;
};
wps {
label = "dgn3500:green:wps";
};
wps {
label = "dgn3500:green:wps";
+ gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
-/include/ "DGN3500.dtsi"
/ {
model = "DGN3500B - Netgear DGN3500B";
/ {
model = "DGN3500B - Netgear DGN3500B";
interrupt-map = <
0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
>;
interrupt-map = <
0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
>;
- gpios-reset = <&gpio 21 0>;
+ gpios-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
req-mask = <0x1>; /* GNT1 */
};
interrupt-map = <
0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
>;
interrupt-map = <
0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
>;
- gpios-reset = <&gpio 21 0>;
+ gpios-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
req-mask = <0x1>; /* GNT1 */
};
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
lantiq,portmask = <0x3>;
};
interrupt-map = <
0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
>;
interrupt-map = <
0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
>;
- gpios-reset = <&gpio 21 0>;
+ gpios-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
};
req-mask = <0x1>; /* GNT1 */
};
};
poll-interval = <100>;
/* reset {
label = "reset";
poll-interval = <100>;
/* reset {
label = "reset";
- gpios = <&gpio 7 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};*/
paging {
label = "paging";
};*/
paging {
label = "paging";
- gpios = <&gpio 11 1>;
- linux,code = <0x100>;
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_0>;
power: power {
label = "easy80920:green:power";
power: power {
label = "easy80920:green:power";
+ gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
warning {
label = "easy80920:green:warning";
default-state = "keep";
};
warning {
label = "easy80920:green:warning";
+ gpios = <&stp 22 GPIO_ACTIVE_HIGH>;
};
fxs1 {
label = "easy80920:green:fxs1";
};
fxs1 {
label = "easy80920:green:fxs1";
+ gpios = <&stp 21 GPIO_ACTIVE_HIGH>;
};
fxs2 {
label = "easy80920:green:fxs2";
};
fxs2 {
label = "easy80920:green:fxs2";
+ gpios = <&stp 20 GPIO_ACTIVE_HIGH>;
};
fxo {
label = "easy80920:green:fxo";
};
fxo {
label = "easy80920:green:fxo";
+ gpios = <&stp 19 GPIO_ACTIVE_HIGH>;
};
usb1: usb1 {
label = "easy80920:green:usb1";
};
usb1: usb1 {
label = "easy80920:green:usb1";
+ gpios = <&stp 18 GPIO_ACTIVE_HIGH>;
};
usb2: usb2 {
label = "easy80920:green:usb2";
};
usb2: usb2 {
label = "easy80920:green:usb2";
+ gpios = <&stp 15 GPIO_ACTIVE_HIGH>;
};
sd {
label = "easy80920:green:sd";
};
sd {
label = "easy80920:green:sd";
+ gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
};
wps {
label = "easy80920:green:wps";
};
wps {
label = "easy80920:green:wps";
+ gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
-/include/ "EASY80920.dtsi"
+#include "EASY80920.dtsi"
/ {
model = "EASY80920NAND - Intel EASY80920 Nand";
/ {
model = "EASY80920NAND - Intel EASY80920 Nand";
-/include/ "EASY80920.dtsi"
+#include "EASY80920.dtsi"
/ {
model = "EASY80920NOR - Intel EASY80920 Nor";
/ {
model = "EASY80920NOR - Intel EASY80920 Nor";
/ {
model = "FRITZ3370 - Fritz!Box WLAN 3370";
/ {
model = "FRITZ3370 - Fritz!Box WLAN 3370";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
- gpios = <&gpio 5 0
- &gpio 14 0>;
+ gpios = <&gpio 5 GPIO_ACTIVE_HIGH
+ &gpio 14 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
};
lantiq,portmask = <0x3>;
};
};
poll-interval = <100>;
power {
label = "power";
poll-interval = <100>;
power {
label = "power";
- gpios = <&gpio 1 0>;
- linux,code = <0x100>;
+ gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_0>;
};
/* wifi {
label = "wifi";
};
/* wifi {
label = "wifi";
- gpios = <&gpio 29 0>;
- linux,code = <0x101>;
+ gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_1>;
power_green: power {
label = "fritz3370:green:power";
power_green: power {
label = "fritz3370:green:power";
+ gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
label = "fritz3370:red:power";
default-state = "keep";
};
power_red: power2 {
label = "fritz3370:red:power";
+ gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
};
info_red {
label = "fritz3370:red:info";
};
info_red {
label = "fritz3370:red:info";
+ gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "fritz3370:green:wlan";
};
wifi: wifi {
label = "fritz3370:green:wlan";
+ gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "fritz3370:green:dsl";
};
dsl: dsl {
label = "fritz3370:green:dsl";
+ gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
};
lan {
label = "fritz3370:green:lan";
};
lan {
label = "fritz3370:green:lan";
+ gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
};
info_green: info_green {
label = "fritz3370:green:info";
};
info_green: info_green {
label = "fritz3370:green:info";
+ gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
reg = <0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
reg = <0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
+ gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
};
ethernet@1 {
compatible = "lantiq,xrx200-pdi-port";
reg = <1>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
ethernet@1 {
compatible = "lantiq,xrx200-pdi-port";
reg = <1>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
+ gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
};
ethernet@2 {
compatible = "lantiq,xrx200-pdi-port";
};
ethernet@2 {
compatible = "lantiq,xrx200-pdi-port";
/ {
model = "FRITZ7320 - 1&1 HomeServer";
/ {
model = "FRITZ7320 - 1&1 HomeServer";
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0xf>; /* GNT1 */
};
};
req-mask = <0xf>; /* GNT1 */
};
};
rfkill {
label = "rfkill";
rfkill {
label = "rfkill";
- gpios = <&gpio 1 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
dect {
label = "dect";
};
dect {
label = "dect";
- gpios = <&gpio 2 1>;
- linux,code = <0x102>;
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_2>;
compatible = "gpio-leds";
power: power {
label = "fritz7320:green:power";
compatible = "gpio-leds";
power: power {
label = "fritz7320:green:power";
+ gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
voice {
label = "fritz7320:green:fon";
default-state = "keep";
};
voice {
label = "fritz7320:green:fon";
+ gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
};
dect {
label = "fritz7320:green:dect";
};
dect {
label = "fritz7320:green:dect";
+ gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
};
wlan: wlan {
label = "fritz7320:green:wlan";
};
wlan: wlan {
label = "fritz7320:green:wlan";
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
info_green: info_green {
label = "fritz7320:green:info";
};
info_green: info_green {
label = "fritz7320:green:info";
+ gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
};
info_red {
label = "fritz7320:red:info";
};
info_red {
label = "fritz7320:red:info";
+ gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
/ {
model = "FRITZ7360SL - 1&1 HomeServer";
/ {
model = "FRITZ7360SL - 1&1 HomeServer";
poll-interval = <100>;
dect {
label = "power";
poll-interval = <100>;
dect {
label = "power";
- gpios = <&gpio 1 0>;
- linux,code = <0x102>;
+ gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_2>;
};
wifi {
label = "wifi";
};
wifi {
label = "wifi";
- gpios = <&gpio 29 0>;
- linux,code = <0x101>;
+ gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_1>;
power_green: power {
label = "fritz7360sl:green:power";
power_green: power {
label = "fritz7360sl:green:power";
+ gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
label = "fritz7360sl:red:power";
default-state = "keep";
};
power_red: power2 {
label = "fritz7360sl:red:power";
+ gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
};
info_red {
label = "fritz7360sl:red:info";
};
info_red {
label = "fritz7360sl:red:info";
+ gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
};
info_green: info_green {
label = "fritz7360sl:green:info";
};
info_green: info_green {
label = "fritz7360sl:green:info";
+ gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "fritz7360sl:green:wlan";
};
wifi: wifi {
label = "fritz7360sl:green:wlan";
+ gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
};
dect {
label = "fritz7360sl:green:dect";
};
dect {
label = "fritz7360sl:green:dect";
+ gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
reg = <0>;
phy-mode = "rmii";
phy-handle = <&phy0>;
reg = <0>;
phy-mode = "rmii";
phy-handle = <&phy0>;
- // gpios = <&gpio 37 1>;
+ // gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
ethernet@1 {
compatible = "lantiq,xrx200-pdi-port";
reg = <1>;
phy-mode = "rmii";
phy-handle = <&phy1>;
};
ethernet@1 {
compatible = "lantiq,xrx200-pdi-port";
reg = <1>;
phy-mode = "rmii";
phy-handle = <&phy1>;
- // gpios = <&gpio 44 1>;
+ // gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
ethernet@2 {
compatible = "lantiq,xrx200-pdi-port";
};
ethernet@2 {
compatible = "lantiq,xrx200-pdi-port";
/ {
model = "GIGASX76X - Gigaset SX761,SX762,SX763";
/ {
model = "GIGASX76X - Gigaset SX761,SX762,SX763";
sram@1F000000 {
vmmc@107000 {
status = "okay";
sram@1F000000 {
vmmc@107000 {
status = "okay";
+ gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
};
pci@E105400 {
status = "okay";
lantiq,internal-clock;
};
pci@E105400 {
status = "okay";
lantiq,internal-clock;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 14 0>;
- linux,code = <0x198>;
+ gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RESTART>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
+ gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
/ {
model = "H201L - ZTE H210L";
/ {
model = "H201L - ZTE H210L";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 53 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
- gpios = <&gpio 54 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
rfkill {
label = "rfkill";
};
rfkill {
label = "rfkill";
- gpios = <&gpio 55 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
power_green: power {
label = "h201l:green:power";
power_green: power {
label = "h201l:green:power";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
online: online {
label = "h201l:green:internet";
default-state = "keep";
};
online: online {
label = "h201l:green:internet";
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "h201l:green:dsl";
};
dsl: dsl {
label = "h201l:green:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
phone {
label = "h201l:green:phone";
};
phone {
label = "h201l:green:phone";
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
wps {
label = "h201l:green:wps";
};
wps {
label = "h201l:green:wps";
+ gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "h201l:green:wlan";
};
wifi: wifi {
label = "h201l:green:wlan";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "h201l:green:usb";
};
usb: usb {
label = "h201l:green:usb";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
+ gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
};
usb {
gpio-export,name = "usb";
gpio-export,output = <1>;
};
usb {
gpio-export,name = "usb";
gpio-export,output = <1>;
+ gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
};
wifi {
gpio-export,name = "wifi";
gpio-export,output = <1>;
};
wifi {
gpio-export,name = "wifi";
gpio-export,output = <1>;
+ gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
/ {
model = "P2601HNFX - ZyXEL P-2601HN-Fx";
/ {
model = "P2601HNFX - ZyXEL P-2601HN-Fx";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 29 1>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 29 1>;
- gpios-reset = <&gpio 21 0>;
+ gpios-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 53 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "rfkill";
};
rfkill {
label = "rfkill";
- gpios = <&gpio 54 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
power_green: power {
label = "p2601hnfx:green:power";
power_green: power {
label = "p2601hnfx:green:power";
+ gpios = <&stp 11 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
label = "p2601hnfx:red:power";
default-state = "keep";
};
power_red: power2 {
label = "p2601hnfx:red:power";
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
};
online: online {
label = "p2601hnfx:green:internet";
};
online: online {
label = "p2601hnfx:green:internet";
+ gpios = <&stp 13 GPIO_ACTIVE_LOW>;
};
online2 {
label = "p2601hnfx:red:internet";
};
online2 {
label = "p2601hnfx:red:internet";
+ gpios = <&stp 12 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "p2601hnfx:green:dsl";
};
dsl: dsl {
label = "p2601hnfx:green:dsl";
+ gpios = <&stp 14 GPIO_ACTIVE_LOW>;
};
phone {
label = "p2601hnfx:green:phone";
};
phone {
label = "p2601hnfx:green:phone";
+ gpios = <&stp 9 GPIO_ACTIVE_LOW>;
};
phone2 {
label = "p2601hnfx:orange:phone";
};
phone2 {
label = "p2601hnfx:orange:phone";
+ gpios = <&stp 8 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "p2601hnfx:green:wireless";
};
wifi: wifi {
label = "p2601hnfx:green:wireless";
+ gpios = <&stp 15 GPIO_ACTIVE_LOW>;
};
wifi2 {
label = "p2601hnfx:orange:wireless";
};
wifi2 {
label = "p2601hnfx:orange:wireless";
+ gpios = <&stp 10 GPIO_ACTIVE_LOW>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
switch {
gpio-export,name = "switch";
gpio-export,output = <1>;
+ gpios = <&gpio 50 GPIO_ACTIVE_HIGH>;
};
usb {
gpio-export,name = "wifi";
gpio-export,output = <1>;
};
usb {
gpio-export,name = "wifi";
gpio-export,output = <1>;
+ gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
-/include/ "P2812HNUFX.dtsi"
+#include "P2812HNUFX.dtsi"
/ {
model = "P2812HNUF1 - ZyXEL P-2812HNU-F1";
/ {
model = "P2812HNUF1 - ZyXEL P-2812HNU-F1";
gpio-leds {
usb1: usb1 {
label = "p2812hnuf1:green:usb1";
gpio-leds {
usb1: usb1 {
label = "p2812hnuf1:green:usb1";
+ gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
};
usb2: usb2 {
label = "p2812hnuf1:green:usb2";
};
usb2: usb2 {
label = "p2812hnuf1:green:usb2";
+ gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
-/include/ "P2812HNUFX.dtsi"
+#include "P2812HNUFX.dtsi"
/ {
model = "P2812HNUF3 - ZyXEL P-2812HNU-F3";
/ {
model = "P2812HNUF3 - ZyXEL P-2812HNU-F3";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
interrupt-map = <
0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
>;
interrupt-map = <
0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
};
req-mask = <0x1>; /* GNT1 */
};
};
- gpios = <&gpio 39 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
rfkill {
label = "rfkill";
};
rfkill {
label = "rfkill";
- gpios = <&gpio 1 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
internet_red {
label = "p2812hnufx:red:internet";
internet_red {
label = "p2812hnufx:red:internet";
+ gpios = <&stp 16 GPIO_ACTIVE_LOW>;
};
internet_green: internet_green {
label = "p2812hnufx:green:internet";
};
internet_green: internet_green {
label = "p2812hnufx:green:internet";
+ gpios = <&stp 17 GPIO_ACTIVE_LOW>;
};
dsl_green: dsl_green {
label = "p2812hnufx:green:dsl";
};
dsl_green: dsl_green {
label = "p2812hnufx:green:dsl";
+ gpios = <&stp 18 GPIO_ACTIVE_LOW>;
};
dsl_orange {
label = "p2812hnufx:orange:dsl";
};
dsl_orange {
label = "p2812hnufx:orange:dsl";
+ gpios = <&stp 19 GPIO_ACTIVE_LOW>;
};
wireless_orange {
label = "p2812hnufx:orange:wlan";
};
wireless_orange {
label = "p2812hnufx:orange:wlan";
+ gpios = <&stp 20 GPIO_ACTIVE_LOW>;
};
wireless_green: wireless_green {
label = "p2812hnufx:green:wlan";
};
wireless_green: wireless_green {
label = "p2812hnufx:green:wlan";
+ gpios = <&stp 21 GPIO_ACTIVE_LOW>;
};
power_red: power {
label = "p2812hnufx:red:power";
};
power_red: power {
label = "p2812hnufx:red:power";
+ gpios = <&stp 22 GPIO_ACTIVE_LOW>;
};
power_green: power2 {
label = "p2812hnufx:green:power";
};
power_green: power2 {
label = "p2812hnufx:green:power";
+ gpios = <&stp 23 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
phone1 {
label = "p2812hnufx:green:phone";
default-state = "keep";
};
phone1 {
label = "p2812hnufx:green:phone";
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
phone1warn {
label = "p2812hnufx:orange:phone";
};
phone1warn {
label = "p2812hnufx:orange:phone";
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
phone2warn {
label = "p2812hnufx:orange:phone2";
};
phone2warn {
label = "p2812hnufx:orange:phone2";
+ gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
};
phone2 {
label = "p2812hnufx:green:phone2";
};
phone2 {
label = "p2812hnufx:green:phone2";
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
-/include/ "TDW89X0.dtsi"
/ {
model = "TDW8970 - TP-LINK TD-W8970";
/ {
model = "TDW8970 - TP-LINK TD-W8970";
-/include/ "TDW89X0.dtsi"
/ {
model = "TDW8980 - TP-LINK TD-W8980";
/ {
model = "TDW8980 - TP-LINK TD-W8980";
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
lantiq,bus-clock = <33333333>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
gpio-leds {
wifi2 {
label = "tdw8980:green:wlan5ghz";
gpio-leds {
wifi2 {
label = "tdw8980:green:wlan5ghz";
+ gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
poll-interval = <100>;
reset {
label = "reset";
poll-interval = <100>;
reset {
label = "reset";
- gpios = <&gpio 0 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
wifi {
label = "wifi";
};
wifi {
label = "wifi";
- gpios = <&gpio 9 0>;
- linux,code = <0xf7>;
- linux,input-type = <5>; /* EV_SW */
+ gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RFKILL>;
+ linux,input-type = <EV_SW>;
- gpios = <&gpio 39 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
*/
dsl: dsl {
label = "tdw89x0:green:dsl";
*/
dsl: dsl {
label = "tdw89x0:green:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
internet: internet {
label = "tdw89x0:green:internet";
};
internet: internet {
label = "tdw89x0:green:internet";
+ gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
usb0: usb0 {
label = "tdw89x0:green:usb";
};
usb0: usb0 {
label = "tdw89x0:green:usb";
+ gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
};
usb2: usb2 {
label = "tdw89x0:green:usb2";
};
usb2: usb2 {
label = "tdw89x0:green:usb2";
+ gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
};
wps: wps {
label = "tdw89x0:green:wps";
};
wps: wps {
label = "tdw89x0:green:wps";
+ gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
reg = <0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
reg = <0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
- // gpios = <&gpio 42 1>;
+ // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
ethernet@5 {
compatible = "lantiq,xrx200-pdi-port";
};
ethernet@5 {
compatible = "lantiq,xrx200-pdi-port";
/ {
model = "VG3503J - BT OpenReach VDSL Modem";
/ {
model = "VG3503J - BT OpenReach VDSL Modem";
poll-interval = <100>;
reset {
label = "reset";
poll-interval = <100>;
reset {
label = "reset";
- gpios = <&gpio 6 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
power_red: power2 {
label = "vg3503j:red:power";
power_red: power2 {
label = "vg3503j:red:power";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "vg3503j:green:dsl";
};
dsl: dsl {
label = "vg3503j:green:dsl";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
power_green: power {
label = "vg3503j:green:power";
};
power_green: power {
label = "vg3503j:green:power";
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
};
default-state = "keep";
};
};
/ {
model = "VGV7510KW22 - o2 Box 6431";
/ {
model = "VGV7510KW22 - o2 Box 6431";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
interrupt-map = <
0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
>;
interrupt-map = <
0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
req-mask = <0x1>; /* GNT1 */
};
- gpios = <&gpio 6 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
- gpios = <&gpio 9 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
dsl: dsl {
label = "vgv7510kw22:green:dsl";
dsl: dsl {
label = "vgv7510kw22:green:dsl";
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
internet_red {
label = "vgv7510kw22:red:internet";
};
internet_red {
label = "vgv7510kw22:red:internet";
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
info_red {
label = "vgv7510kw22:red:info";
};
info_red {
label = "vgv7510kw22:red:info";
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
power_green: power {
label = "vgv7510kw22:green:power";
};
power_green: power {
label = "vgv7510kw22:green:power";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
info_green {
label = "vgv7510kw22:green:info";
default-state = "keep";
};
info_green {
label = "vgv7510kw22:green:info";
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
internet_green: internet_green {
label = "vgv7510kw22:green:internet";
};
internet_green: internet_green {
label = "vgv7510kw22:green:internet";
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "vgv7510kw22:green:wlan";
};
wifi: wifi {
label = "vgv7510kw22:green:wlan";
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
power_red: power2 {
label = "vgv7510kw22:red:power";
};
power_red: power2 {
label = "vgv7510kw22:red:power";
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
phone {
label = "vgv7510kw22:green:telefon";
};
phone {
label = "vgv7510kw22:green:telefon";
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
-/include/ "VGV7510KW22.dtsi"
+#include "VGV7510KW22.dtsi"
-/include/ "VGV7510KW22.dtsi"
+#include "VGV7510KW22.dtsi"
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
+ gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
interrupt-map = <
0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
>;
interrupt-map = <
0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
>;
- gpio-reset = <&gpio 21 0>;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
req-mask = <0x1>; /* GNT1 */
};
req-mask = <0x1>; /* GNT1 */
};
poll-interval = <100>;
reset {
label = "reset";
poll-interval = <100>;
reset {
label = "reset";
- gpios = <&gpio 9 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
- gpios = <&gpio 41 1>;
- linux,code = <247>;
+ gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
rfkill {
label = "rfkill";
};
rfkill {
label = "rfkill";
- gpios = <&gpio 45 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
- gpios = <&gpio 10 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
eco {
label = "vgv7519:blue:eco";
eco {
label = "vgv7519:blue:eco";
+ gpios = <&stp 2 GPIO_ACTIVE_LOW>;
};
wps_red {
label = "vgv7519:red:wps";
};
wps_red {
label = "vgv7519:red:wps";
+ gpios = <&stp 3 GPIO_ACTIVE_LOW>;
};
wps_green {
label = "vgv7519:green:wps";
};
wps_green {
label = "vgv7519:green:wps";
+ gpios = <&stp 4 GPIO_ACTIVE_LOW>;
};
upgrade {
label = "vgv7519:blue:upgrade";
};
upgrade {
label = "vgv7519:blue:upgrade";
+ gpios = <&stp 5 GPIO_ACTIVE_LOW>;
};
tv {
label = "vgv7519:green:tv";
};
tv {
label = "vgv7519:green:tv";
+ gpios = <&stp 6 GPIO_ACTIVE_LOW>;
};
internet_green: internet_green {
label = "vgv7519:green:internet";
};
internet_green: internet_green {
label = "vgv7519:green:internet";
+ gpios = <&stp 7 GPIO_ACTIVE_LOW>;
};
internet_red {
label = "vgv7519:red:internet";
};
internet_red {
label = "vgv7519:red:internet";
+ gpios = <&stp 8 GPIO_ACTIVE_LOW>;
};
broadband_red {
label = "vgv7519:red:broadband";
};
broadband_red {
label = "vgv7519:red:broadband";
+ gpios = <&stp 9 GPIO_ACTIVE_LOW>;
};
broadband_green: broadband_green {
label = "vgv7519:green:broadband";
};
broadband_green: broadband_green {
label = "vgv7519:green:broadband";
+ gpios = <&stp 10 GPIO_ACTIVE_LOW>;
};
voice {
label = "vgv7519:green:voice";
};
voice {
label = "vgv7519:green:voice";
+ gpios = <&stp 11 GPIO_ACTIVE_LOW>;
};
wireless_red {
label = "vgv7519:red:wireless";
};
wireless_red {
label = "vgv7519:red:wireless";
+ gpios = <&stp 12 GPIO_ACTIVE_LOW>;
};
wireless_green: wireless_green {
label = "vgv7519:green:wireless";
};
wireless_green: wireless_green {
label = "vgv7519:green:wireless";
+ gpios = <&stp 13 GPIO_ACTIVE_LOW>;
};
power_green: power2 {
label = "vgv7519:green:power";
};
power_green: power2 {
label = "vgv7519:green:power";
+ gpios = <&stp 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power {
label = "vgv7519:red:power";
default-state = "keep";
};
power_red: power {
label = "vgv7519:red:power";
+ gpios = <&stp 15 GPIO_ACTIVE_LOW>;
-/include/ "VGV7519.dtsi"
-/include/ "VGV7519.dtsi"
/ {
model = "VR200v - TP-LINK Archer VR200v";
/ {
model = "VR200v - TP-LINK Archer VR200v";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
poll-interval = <100>;
reset {
label = "reset";
poll-interval = <100>;
reset {
label = "reset";
- gpios = <&gpio 22 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
wifi {
label = "wifi";
};
wifi {
label = "wifi";
- gpios = <&gpio 0 0>;
- linux,code = <0xf7>;
- linux,input-type = <5>; /* EV_SW */
+ gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RFKILL>;
+ linux,input-type = <EV_SW>;
- gpios = <&gpio 2 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
dect_paging {
label = "dect_paging";
};
dect_paging {
label = "dect_paging";
- gpios = <&gpio 39 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
compatible = "gpio-leds";
power: power {
label = "vr200v:blue:power";
compatible = "gpio-leds";
power: power {
label = "vr200v:blue:power";
+ gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "vr200v:blue:dsl";
};
dsl: dsl {
label = "vr200v:blue:dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
internet: internet {
label = "vr200v:blue:internet";
};
internet: internet {
label = "vr200v:blue:internet";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "vr200v:blue:usb";
};
usb: usb {
label = "vr200v:blue:usb";
+ gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
};
eth {
label = "vr200v:blue:lan";
};
eth {
label = "vr200v:blue:lan";
+ gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wlan {
label = "vr200v:blue:wlan";
};
wlan {
label = "vr200v:blue:wlan";
+ gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
wlan5g {
label = "vr200v:blue:wlan5g";
};
wlan5g {
label = "vr200v:blue:wlan5g";
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
phone {
label = "vr200v:blue:phone";
};
phone {
label = "vr200v:blue:phone";
+ gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
reg = <0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
reg = <0>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
- // gpios = <&gpio 42 1>;
+ // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
ethernet@5 {
compatible = "lantiq,xrx200-pdi-port";
};
ethernet@5 {
compatible = "lantiq,xrx200-pdi-port";
/ {
model = "WBMR - Buffalo WBMR-HP-G300H";
/ {
model = "WBMR - Buffalo WBMR-HP-G300H";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
- gpios = <&gpio 0 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 37 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
eject {
label = "eject";
};
eject {
label = "eject";
- gpios = <&gpio 34 1>;
- linux,code = <0xf7>;
+ gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
};
movie {
label = "movie";
};
movie {
label = "movie";
- gpios = <&gpio 22 1>;
- linux,code = <0x109>;
+ gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_9>;
power_green: power {
label = "wbmr:green:power";
power_green: power {
label = "wbmr:green:power";
+ gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
label = "wbmr:red:power";
default-state = "keep";
};
power_red: power2 {
label = "wbmr:red:power";
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
security {
label = "wbmr:yellow:security";
};
security {
label = "wbmr:yellow:security";
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
label = "wbmr:green:wireless";
};
wifi: wifi {
label = "wbmr:green:wireless";
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
label = "wbmr:green:dsl";
};
dsl: dsl {
label = "wbmr:green:dsl";
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
online_green: online {
label = "wbmr:green:internet";
};
online_green: online {
label = "wbmr:green:internet";
+ gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
online2 {
label = "wbmr:red:internet";
};
online2 {
label = "wbmr:red:internet";
+ gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
movie {
label = "wbmr:blue:movie";
};
movie {
label = "wbmr:blue:movie";
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
usb: usb {
label = "wbmr:green:usb";
};
usb: usb {
label = "wbmr:green:usb";
+ gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
default-state = "on";
};
};
default-state = "on";
};
};
/ {
model = "WBMR300 - Buffalo WBMR-300HPD";
/ {
model = "WBMR300 - Buffalo WBMR-300HPD";
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
lantiq,portmask = <0x3>;
};
ifxhcd@E106000 {
status = "okay";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
gpio_poweroff {
compatible = "gpio-poweroff";
gpio_poweroff {
compatible = "gpio-poweroff";
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
- gpios = <&gpio 5 1>;
- linux,code = <0x74>;
+ gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_POWER>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 7 1>;
- linux,code = <0x198>;
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
- gpios = <&gpio 31 1>;
- linux,code = <0x211>;
+ gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
};
auto {
label = "auto";
};
auto {
label = "auto";
- gpios = <&gpio 48 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ gpios = <&gpio 48 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
};
router {
label = "router";
};
router {
label = "router";
- gpios = <&gpio 2 0>;
- linux,code = <0x100>;
- linux,input-type = <5>; /* EV_SW */
+ gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
diag_r: diag_r {
label = "wbmr300:red:diag";
diag_r: diag_r {
label = "wbmr300:red:diag";
+ gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default_state = "off";
};
wifi_g: wifi_g {
label = "wbmr300:green:wifi";
default_state = "off";
};
wifi_g: wifi_g {
label = "wbmr300:green:wifi";
+ gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
dsl: dsl {
label = "dsl";
};
dsl: dsl {
label = "dsl";
+ gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
router_y: router_y {
label = "wbmr300:yellow:router";
};
router_y: router_y {
label = "wbmr300:yellow:router";
+ gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
};
wifi_y: wifi_y {
label = "wbmr300:yellow:wifi";
};
wifi_y: wifi_y {
label = "wbmr300:yellow:wifi";
+ gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
};
lan1: lan1 {
label = "wbmr300:green:lan1";
};
lan1: lan1 {
label = "wbmr300:green:lan1";
+ gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
wan: wan {
label = "wbmr300:green:wan";
};
wan: wan {
label = "wbmr300:green:wan";
+ gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
lan3: lan3 {
label = "wbmr300:green:lan3";
};
lan3: lan3 {
label = "wbmr300:green:lan3";
+ gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
lan2: lan2 {
label = "wbmr300:green:lan2";
};
lan2: lan2 {
label = "wbmr300:green:lan2";
+ gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
};
internet_g: internet_g {
label = "wbmr300:green:internet";
};
internet_g: internet_g {
label = "wbmr300:green:internet";
+ gpios = <&gpio 34 GPIO_ACTIVE_HIGH>;
};
internet_y: internet_y {
label = "wbmr300:yellow:internet";
};
internet_y: internet_y {
label = "wbmr300:yellow:internet";
+ gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
};
router_g: router_g {
label = "wbmr300:green:router";
};
router_g: router_g {
label = "wbmr300:green:router";
+ gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
};
power_g: power_g {
label = "wbmr300:green:power";
};
power_g: power_g {
label = "wbmr300:green:power";
+ gpios = <&gpio 49 GPIO_ACTIVE_HIGH>;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
/ {
#address-cells = <1>;
#size-cells = <1>;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
/ {
#address-cells = <1>;
#size-cells = <1>;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
/ {
#address-cells = <1>;
#size-cells = <1>;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
#address-cells = <1>;
#size-cells = <1>;
/ {
#address-cells = <1>;
#size-cells = <1>;
interrupt-parent = <&icu0>;
interrupts = <161 144>;
compatible = "lantiq,pcie-xrx200";
interrupt-parent = <&icu0>;
interrupts = <161 144>;
compatible = "lantiq,pcie-xrx200";
- gpio-reset = <&gpio 38 0>;
+ gpio-reset = <&gpio 38 GPIO_ACTIVE_HIGH>;