ramips: fix EEPROM size for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_dlink_dwr-116-a1.dts
index cac849c91983eeffdc9d21c7ad2de88f95602d96..1c1a700630db4e0237ce8002ea015f6cff101acd 100644 (file)
@@ -1,9 +1,8 @@
-/dts-v1/;
-
 #include "mt7620n.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
        compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc";
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "dwr-116-a1:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
 
                wifi {
-                       label = "dwr-116-a1:green:wifi";
+                       label = "green:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
-&gpio1 {
-       status = "okay";
-};
-
 &gpio3 {
        status = "okay";
 };
@@ -75,7 +70,9 @@
                        };
 
                        partition@10000 {
-                               compatible = "amit,jimage";
+                               compatible = "openwrt,uimage", "denx,uimage";
+                               openwrt,ih-magic = <IH_MAGIC_OKLI>;
+                               openwrt,offset = <0x10000>;
                                label = "firmware";
                                reg = <0x10000 0x7e0000>;
                        };
 
 &state_default {
        default {
-               ralink,group = "i2c", "wled";
-               ralink,function = "gpio";
+               groups = "i2c", "wled";
+               function = "gpio";
        };
 };
 
 &ethernet {
-       mediatek,portmap = "llllw";
        pinctrl-names = "default";
        pinctrl-0 = <&ephy_pins>;
+
+       mediatek,portmap = "llllw";
 };