ramips: update device tree source files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ArcherC50.dts
index 3924cc41fa5c14b3eaf2f3977bdc1866dcf0840e..444c2bc1af965dbc58f2ca8ad8af1d9075b31b6d 100644 (file)
@@ -1,11 +1,12 @@
 /dts-v1/;
-#include <dt-bindings/input/input.h>
-#include <dt-bindings/gpio/gpio.h>
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
+
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "tplink,c50", "ralink,mt7620a-soc";
        model = "TP-Link Archer C50";
 
        chosen {
@@ -22,7 +23,8 @@
 
                power {
                        label = "c50:green:power";
-                       gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
                };
 
                usb {
@@ -32,7 +34,7 @@
 
                wan {
                        label = "c50:green:wan";
-                       gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
                wan_orange {
@@ -95,7 +97,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "mx25l6405d";
                spi-max-frequency = <10000000>;
 
                partition@0 {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&radio 32768>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                        mtd-mac-address = <&rom 0xf100>;
                        mtd-mac-address-increment = <(-1)>;
                };