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