lantiq: Sanitize device tree files
authorAndreas Eberlein <foodeas@aeberlein.de>
Thu, 29 Sep 2016 16:22:55 +0000 (18:22 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 19 Oct 2016 17:55:04 +0000 (19:55 +0200)
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:
target/linux/lantiq/dts/ACMP252.dts
target/linux/lantiq/dts/ARV4510PW.dts
target/linux/lantiq/dts/ARV4518PWR01.dts
target/linux/lantiq/dts/ARV4518PWR01.dtsi
target/linux/lantiq/dts/ARV4518PWR01A.dts
target/linux/lantiq/dts/ARV4519PW.dts
target/linux/lantiq/dts/ARV4520PW.dts
target/linux/lantiq/dts/ARV4525PW.dts
target/linux/lantiq/dts/ARV452CQW.dts
target/linux/lantiq/dts/ARV7506PW11.dts
target/linux/lantiq/dts/ARV7510PW22.dts
target/linux/lantiq/dts/ARV7518PW.dts
target/linux/lantiq/dts/ARV7519PW.dts
target/linux/lantiq/dts/ARV7519RW22.dts
target/linux/lantiq/dts/ARV7525PW.dts
target/linux/lantiq/dts/ARV752DPW.dts
target/linux/lantiq/dts/ARV752DPW22.dts
target/linux/lantiq/dts/ARV8539PW22.dts
target/linux/lantiq/dts/BTHOMEHUBV2B.dts
target/linux/lantiq/dts/BTHOMEHUBV3A.dts
target/linux/lantiq/dts/BTHOMEHUBV5A.dts
target/linux/lantiq/dts/DGN1000B.dts
target/linux/lantiq/dts/DGN3500.dts
target/linux/lantiq/dts/DGN3500.dtsi
target/linux/lantiq/dts/DGN3500B.dts
target/linux/lantiq/dts/EASY50712.dts
target/linux/lantiq/dts/EASY50810.dts
target/linux/lantiq/dts/EASY80920.dtsi
target/linux/lantiq/dts/EASY80920NAND.dts
target/linux/lantiq/dts/EASY80920NOR.dts
target/linux/lantiq/dts/FRITZ3370.dts
target/linux/lantiq/dts/FRITZ7320.dts
target/linux/lantiq/dts/FRITZ7360SL.dts
target/linux/lantiq/dts/GIGASX76X.dts
target/linux/lantiq/dts/H201L.dts
target/linux/lantiq/dts/P2601HNFX.dts
target/linux/lantiq/dts/P2812HNUF1.dts
target/linux/lantiq/dts/P2812HNUF3.dts
target/linux/lantiq/dts/P2812HNUFX.dtsi
target/linux/lantiq/dts/TDW8970.dts
target/linux/lantiq/dts/TDW8980.dts
target/linux/lantiq/dts/TDW89X0.dtsi
target/linux/lantiq/dts/VG3503J.dts
target/linux/lantiq/dts/VGV7510KW22.dtsi
target/linux/lantiq/dts/VGV7510KW22BRN.dts
target/linux/lantiq/dts/VGV7510KW22NOR.dts
target/linux/lantiq/dts/VGV7519.dtsi
target/linux/lantiq/dts/VGV7519BRN.dts
target/linux/lantiq/dts/VGV7519NOR.dts
target/linux/lantiq/dts/VR200v.dts
target/linux/lantiq/dts/WBMR.dts
target/linux/lantiq/dts/WBMR300.dts
target/linux/lantiq/dts/amazonse.dtsi
target/linux/lantiq/dts/ar9.dtsi
target/linux/lantiq/dts/danube.dtsi
target/linux/lantiq/dts/vr9.dtsi

index 06b21b61b0f29a5c037e537aad6d22c52f356203..3961bf4dcc9c27884d19eb29b2f6e31cfab5e320 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ACMP252 - AudioCodes MediaPack MP-252";
@@ -16,7 +16,7 @@
        sram@1F000000 {
                vmmc@107000 {
                        status = "okay";
-                       gpios = <&gpio 31 0>;
+                       gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
                };
        };
 
@@ -87,7 +87,7 @@
 
                ifxhcd@E101000 {
                        status = "okay";
-                       gpios = <&gpio 3 0>;
+                       gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
                };
 
                etop@E180000 {
index dca7a35794b481bc10243c3d9fd05325a7da940c..68aae2b246309efa29fa83b7e59e114e17a5dfe4 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index 7dfdb6fa503f9b1f99b25d13514d1c9d2871d411..3642cbe44bb6b585047be2e2aff8088bcb65cd65 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "ARV4518PWR01.dtsi"
+#include "ARV4518PWR01.dtsi"
 
 / {
        model = "ARV4518PWR01 - SMC7908A-ISP";
index 3b29481a5409acc412e4d6fa206b646b8f2710a4..31731444d9fc70f2fa2d55c8ddac98feb9a7191e 100644 (file)
@@ -1,4 +1,4 @@
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        chosen {
@@ -23,7 +23,7 @@
        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>;
                };
        };
 };
index 39ef71b9dda49f8fecf48679621df619a8ef7c8a..6c5047ceb44b7d6935d4790d6077b3ba1293987c 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "ARV4518PWR01.dtsi"
+#include "ARV4518PWR01.dtsi"
 
 / {
        model = "ARV4518PWR01A - SMC7908A-ISP, Airties WAV-221";
index 932bc4a0acbf0d9bfe8ba00f3641869d52320b9c..43334f18d7b4536b9001b342a62b6340283aa045 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
@@ -27,7 +27,7 @@
        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>;
                };
        };
 };
index 8edca24705816e1ba2c1df65c192e781a5d229c8..231ae156f598fc964585f836d60d1964cef5570b 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV4520PW - Easybox 800, WAV-281";
@@ -27,8 +27,8 @@
        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
index 0f264ffbf702991ae8beeb3d561bce40af7ddf1d..3813b07539dbb67597378e1cf5b9c5498e720fa7 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV4525PW - Speedport W501V Typ A";
@@ -22,7 +22,7 @@
        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>;
                };
        };
 };
index ecfd6fd743183232b9bbaadb0237aeb45ec22054..eb9b45a626cfc8d51478d04b171627c4d6476ebf 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV452CQW - Arcor 801";
@@ -26,8 +26,8 @@
        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>;
                };
        };
 };
index 215d4428d530acbce94580268b4cf2b482a630af..352972b19c23f7cc75093d9fad16ba091bf4b4a1 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV7506PW11 - Alice/O2 IAD 4421";
@@ -83,7 +83,7 @@
 
                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>;
                };
        };
 };
index 90a55fe448fbbb6302b2308c75fb4c9bd3b6d63b..f288511c7ceed4f5e87738abf2dce9e95360e192 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV7510PW22 - Astoria Networks";
@@ -26,7 +26,7 @@
        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>;
                };
        };
 };
index 8a880fe36c6a8b03e9a014e5cdf7a030b532176e..e5e5e703965644a564cf34480ee1baba95ad1bfb 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index 57c1bde5ff87a8f6788707468d9f6fe74c7d6074..4639ce7967f6fd75e4d7427f3a122cfcb1ef534c 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index f1d5f6325666537939a481a5269724fe75809de1..5d78448eb6b4ac2c3ca3c21dbac2821434b81b67 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index e8893626abd9f6c911d8fc08d6c6b77a00378105..8e3673346de04a86676ef809b2a64a1f2acdb264 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV7525PW - Speedport W303V Typ A";
@@ -26,7 +26,7 @@
        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>;
                };
        };
 };
index a350daf257dd6f80bac64e12ec4e25180262c903..b80005582ed286b8ce2cf9a8f51d87c2281e92cd 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV752DPW - Arcor 802";
@@ -26,7 +26,7 @@
        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>;
                };
        };
 };
index db6656b9eee529b40f7bc2709e1c5d41419b481e..9977ec1ddb1bb06ca09b582b98edab264c339a02 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV752DPW22 - Arcor 803";
@@ -26,7 +26,7 @@
        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>;
                };
        };
 };
index 9199fadb6e72ec30be4ce3288dcb1a3ac424a97d..a03b745a07463d6ff2d91b20fc69afca22787298 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "ARV8539PW22 - Speedport W 504V Typ A";
@@ -22,7 +22,7 @@
        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
index 22875808c9b4e26f37b77f0daeef54c8952d0e45..7a0edaeecf0031c197edd1217f83ca5b2ec0039f 100644 (file)
@@ -1,6 +1,6 @@
 /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 */
@@ -25,7 +25,7 @@
        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>;
                };
        };
 };
index 78799977272129416d606c8354f02dff99ed6e53..996d5b2abff792ecbde79f637996646a9624ef54 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "ar9.dtsi"
+#include "ar9.dtsi"
 
 / {
        model = "BTHOMEHUBV3A - BT Home Hub 3A";  /* SoC: Lantiq ar9 @ 333MHz */
@@ -25,7 +25,7 @@
        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>;
                };
        };
 };
index fa00f7037a8614906d0f31cd9689a9c3aa7c8801..97d08295484ca0ad3b5db31b613955c2882ac0ef 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index b84eab02861d987a86b81c263cfc10926676ab0d..fdcce1bb34d0dd5163431b3ba8576349328cf130 100644 (file)
@@ -1,6 +1,6 @@
 /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";
                };
                /*
index d2568719135b02dca6ca41d2b10c105ac5aca22d..9017a427cc912c4d2e15e1507bcd7f0326d24e5f 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "DGN3500.dtsi"
+#include "DGN3500.dtsi"
 
 / {
        model = "DGN3500 - Netgear DGN3500";
index f86ccc5d23c275b843cdb59815636aaf023f2ec1..983d8545044103dd6e21145316f92dd7fb957c78 100644 (file)
@@ -1,4 +1,4 @@
-/include/ "ar9.dtsi"
+#include "ar9.dtsi"
 
 / {
        chosen {
@@ -75,7 +75,7 @@
                        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 */
                };
        };
@@ -90,8 +90,8 @@
 
        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>;
                };
        };
 };
index 71a4e58c13269230bcff6aaf4fa997c92665ccfc..d0ed5ebd53e525f2cdcf4a497b8be98795d2129a 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "DGN3500.dtsi"
+#include "DGN3500.dtsi"
 
 / {
        model = "DGN3500B - Netgear DGN3500B";
index 39ba1f7a11d63ec2b08959a45bbd489f3905682c..a751375c2a74a0e7549c61c1a7d682a9d9de9a7e 100644 (file)
@@ -1,6 +1,6 @@
 /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 */
                };
 
index 70d2ff5ff0b9ae96f600838f6a3e182bd03f6d05..f04796c73a177c8aa0609bb3fbfb5d2e88c77af0 100644 (file)
@@ -1,6 +1,6 @@
 /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 */
                };
 
index 57dc4574eccbefb2fd493858a484e4cea28d8b0f..c643bf1c23b5a8f444158d9d72d35625b9958816 100644 (file)
@@ -1,4 +1,4 @@
-/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>;
                };
        };
 };
index 96d5f64de09de9b0fc85836e05c375e4d5f4ec82..332f2fb35c6573c46cbab56853b30abf4bf9435f 100644 (file)
@@ -1,7 +1,7 @@
 /dts-v1/;
 
 
-/include/ "EASY80920.dtsi"
+#include "EASY80920.dtsi"
 
 / {
        model = "EASY80920NAND - Intel EASY80920 Nand";
index 39367f7bb2163bbedfac9a27d32be5b5f4cd1653..6ad17d6fcc0d79b3faf22f9b86849d836b4e4129 100644 (file)
@@ -1,7 +1,7 @@
 /dts-v1/;
 
 
-/include/ "EASY80920.dtsi"
+#include "EASY80920.dtsi"
 
 / {
        model = "EASY80920NOR - Intel EASY80920 Nor";
index 35880f5e20d014f1a152e6e61ad5f7f4a9351061..775fa5d43825b4e3a524b181f43ae493c705ca9a 100644 (file)
@@ -1,6 +1,6 @@
 /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";
index 643546c4b3aef084f475d542cf51ad8c97663368..9884038867bbc5bd3f5fa366ef0c2bbff7d3aaaa 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index 02e97810f6ad03bbcfc8ce59efa9212cfc39b74a..f41ea41f3b87f600799138deb3e8ffb21c6ebedc 100644 (file)
@@ -1,6 +1,6 @@
 /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";
index a43e4d4f2950c7c18345eb08ad5db6662962d4d4..003083ca9f4a8265d99b4c1a88edab2d4be96893 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "danube.dtsi"
+#include "danube.dtsi"
 
 / {
        model = "GIGASX76X - Gigaset SX761,SX762,SX763";
@@ -16,7 +16,7 @@
        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>;
                };
        };
 };
index c4208e3c1f21d34e93da207084eb0ac7d3413e4c..85723592b59b781fce1f7aa8c67502efe9a1f5cb 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "ar9.dtsi"
+#include "ar9.dtsi"
 
 / {
        model = "H201L - ZTE H210L";
@@ -72,7 +72,7 @@
 
                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>;
                };
        };
 };
index 5ab5ae7a1068b5bc6295e4438ba31ae45fd95724..3994c18cb7517ab154d9005a656701003b8d5037 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index 87b2f8a6a61537ab84450e703adf89a77dda978b..5829ee5262c8dd0f454a2f6938478bc892e48d97 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 };
index dabf5ed4729d98ff04b67e2dabc544941eda4dc7..54795a334ddc45e15ea919063b269a27018aef77 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "P2812HNUFX.dtsi"
+#include "P2812HNUFX.dtsi"
 
 / {
        model = "P2812HNUF3 - ZyXEL P-2812HNU-F3";
index 30eee502d0ba51e7067bbaad7f4ef2ec24a44a66..e6f69bb2a2db42d3bcddb6fe196f1fe06558212c 100644 (file)
@@ -1,4 +1,4 @@
-/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>;
                };
        };
 };
index 172c46c12cbcac450985fad4bff8c43e3825785c..6a376a05c516bdec2f59f085463ca70c0094c7ec 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "TDW89X0.dtsi"
+#include "TDW89X0.dtsi"
 
 / {
        model = "TDW8970 - TP-LINK TD-W8970";
index 8a07a5c59294e2439bdb5de80cd778e46f483768..95eec58508d28b3aa2aa085843ed618cb922ffe0 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "TDW89X0.dtsi"
+#include "TDW89X0.dtsi"
 
 / {
        model = "TDW8980 - TP-LINK TD-W8980";
@@ -21,7 +21,7 @@
                        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>;
                };
        };
 
@@ -32,7 +32,7 @@
        gpio-leds {
                wifi2 {
                        label = "tdw8980:green:wlan5ghz";
-                       gpios = <&gpio 24 1>;
+                       gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
                };
        };
 };
index d6a89fe0f7e2a3362c44e6418f9ed04145ebe5b9..1471bd7d69fe53e85a7ca51957d012f22faf2c98 100644 (file)
@@ -1,4 +1,4 @@
-/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";
index 5b4f84668c8cb3e94d5edaf20c0d9fbc369cf806..46b047a09d76011c33d80c9df15e674c274890b9 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "vr9.dtsi"
+#include "vr9.dtsi"
 
 / {
        model = "VG3503J - BT OpenReach VDSL Modem";
@@ -90,8 +90,8 @@
                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";
                };
        };
index 4f2ae47193094105f1428b457ae6dd54e85f3fa0..b8c5d883836be2bae2bf7faa940b819f1e90cb14 100644 (file)
@@ -1,4 +1,4 @@
-/include/ "vr9.dtsi"
+#include "vr9.dtsi"
 
 / {
        model = "VGV7510KW22 - o2 Box 6431";
@@ -76,7 +76,7 @@
 
                ifxhcd@E101000 {
                        status = "okay";
-                       gpios = <&gpio 47 0>;
+                       gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
                };
 
                pci@E105400 {
@@ -86,7 +86,7 @@
                        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>;
                };
        };
 };
index f93249bc8d132bffc9506f0d0f341e6d0e56e13c..719e7f3ff891733e0181cc93d2191c8b97a05f88 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "VGV7510KW22.dtsi"
+#include "VGV7510KW22.dtsi"
 
 / {
        sram@1F000000 {
index f68cf5ba5b7468b10b5064b2b301598df966ba27..399d0cf6246016dd966fbae8e92f8630d9b8d8f3 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "VGV7510KW22.dtsi"
+#include "VGV7510KW22.dtsi"
 
 / {
        fpi@10000000 {
index 103a9f5a56499ed9f98c8d56f283e64aa0ea0d62..03f2938fc5222ea0d030f44f06e6afbaf6a33e6a 100644 (file)
@@ -1,4 +1,4 @@
-/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>;
                };
        };
 };
index b225acf57df17ab330f66c21b3ac97008241247b..b6b0393411e19112e332e19946ffe2c66548e06f 100644 (file)
@@ -1,7 +1,7 @@
 /dts-v1/;
 
 
-/include/ "VGV7519.dtsi"
+#include "VGV7519.dtsi"
 
 / {
        fpi@10000000 {
index 69b0a1f450ff0d18eca3c2b8bbd901f4eb80474a..72bbd1acd7e7bb6f29ab9d1070644b859f613154 100644 (file)
@@ -1,7 +1,7 @@
 /dts-v1/;
 
 
-/include/ "VGV7519.dtsi"
+#include "VGV7519.dtsi"
 
 / {
        fpi@10000000 {
index 8715b89852a078d52a59d929c6125ba1be19aeba..777bef9372067c6484842a13a86c92c5fbc865a7 100644 (file)
@@ -1,6 +1,6 @@
 /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";
index 067ca87d46bb15a8dd566575c70093d0888ddcdf..07671d60536e44f89dd7dcdf6ae2361c30671737 100644 (file)
@@ -1,6 +1,6 @@
 /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";
                };
        };
index 02ec172d92d66b1b71dc272623ab7caf44d6808e..dc0b2862a9ec4a98ccc2382c9d6e75812b43668f 100644 (file)
@@ -1,6 +1,6 @@
 /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>;
                };
        };
 
@@ -79,7 +79,7 @@
 
        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>;
                };
        };
 };
index c586106359316341410ce859bc86a86f32f0856b..84a3a9a5970b35e027031cb6c8a02e7d8344cc43 100644 (file)
@@ -1,3 +1,6 @@
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index e67bcc2a1038b8efffd2374f35bea7ba4d383128..32bed972b1cdeeecd956ae812e85452a77d85397 100644 (file)
@@ -1,3 +1,6 @@
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index a785af42660ffe9918101d81f9fbf558589ff5dd..c32ffbec0956dc431b885a6e5d5587231e1e6f09 100644 (file)
@@ -1,3 +1,6 @@
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index a1c05d01f1302676df1b45f8d2d93de12b195d77..6754afd2017443e5a171bd732e432ac9ff5f068c 100644 (file)
@@ -1,3 +1,6 @@
+#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 {