Revert "ramips: Fix WiFi after 5f7396ebef09b224edf08b0bda113613a42f0928"
[openwrt/openwrt.git] / target / linux / ramips / dts / RE6500.dts
index 3fe875db1227d61a6eb12486ed6c091414d11cc4..b2b5a29238bca252414ee13aab39be2f9af9619d 100644 (file)
@@ -2,9 +2,11 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "linksys,re6500", "mediatek,mt7621-soc";
        model = "Linksys RE6500";
 
        memory@0 {
 
                wifi {
                        label = "re6500:orange:wifi";
-                       gpios = <&gpio0 0 0>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
 
                power {
                        label = "re6500:white:power";
-                       gpios = <&gpio0 9 0>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
        };
 
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 11 0>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };
        };
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x0000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,5ghz = <0>;
+                       ieee80211-freq-limit = <2400000 2500000>;
                };
        };
 };