ramips: mt7621: add compatible strings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / SK-WB8.dts
index b50de555dc7aef3c7bdfac030c148e0cfa608396..0ded039d8efb6da6aa9a0dee6acec06eefbc677b 100644 (file)
@@ -1,11 +1,11 @@
 /dts-v1/;
 
 #include "mt7621.dtsi"
-
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
-       compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
+       compatible = "samknows,whitebox-v8", "mediatek,mt7621-soc";
        model = "SamKnows Whitebox 8";
 
        memory@0 {
 
                wps {
                        label = "sk-wb8:green:wps";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "sk-wb8:green:usb";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
 
                poll-interval = <20>;
                wps {
                        label = "wps";
-                       gpios = <&gpio1 11 1>;
+                       gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
-                       gpios = <&gpio1 9 1>;
+                       gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -57,8 +57,8 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80";
                spi-max-frequency = <10000000>;
+               m25p,chunked-io = <32>;
 
                partition@0 {
                        label = "u-boot";
 
                partition@50000 {
                        label = "firmware";
-                       reg = <0x50000 0x7b0000>;
-               };
-
-               partition@e30000 {
-                       label = "recovery";
-                       reg = <0xe30000 0x1d0000>;
+                       reg = <0x50000 0xfb0000>;
                };
 
        };
@@ -98,7 +93,7 @@
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x0000>;
-                       mediatek,5ghz = <0>;
                };
        };
 };