ramips: Fix WiFi after 5f7396ebef09b224edf08b0bda113613a42f0928
[openwrt/openwrt.git] / target / linux / ramips / dts / FIREWRT.dts
index d38ee39bd906edd464d21d9e9ea2d762a0810b35..bfa05d530472ae80da64abb1a5f7786e82ec87ef 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
@@ -22,7 +23,7 @@
 
                power {
                        label = "firewrt:green:power";
-                       gpios = <&gpio0 22 1>;
+                       gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                power {
                        label = "power";
-                       gpios = <&gpio0 23 1>;
+                       gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                };
        };
@@ -91,8 +92,6 @@
 
        pcie0 {
                mt76@0,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
                        ieee80211-freq-limit = <5000000 6000000>;
                };
 
        pcie1 {
                mt76@1,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x0000>;
                        ieee80211-freq-limit = <2400000 2500000>;
                };