ramips: improve support for STORYLiNK SAP-G3200U3
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_dlink_dwr-922-e2.dts
index d3ca0dd53f181292a8b3a28dac85a889bff4a0a4..1c1c2929cde0d427a2f1b0cdc8457251c3bfe768 100644 (file)
@@ -4,6 +4,8 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
        compatible = "dlink,dwr-922-e2", "ralink,mt7620n-soc";
@@ -40,7 +42,8 @@
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                };
 
                        };
 
                        partition@10000 {
-                               compatible = "amit,jimage";
+                               compatible = "openwrt,uimage", "denx,uimage";
+                               openwrt,ih-magic = <IH_MAGIC_OKLI>;
+                               openwrt,offset = <0x10000>;
                                label = "firmware";
                                reg = <0x10000 0xfe0000>;
                        };
 
-                       config: partition@ff0000 {
+                       partition@ff0000 {
                                label = "config";
                                reg = <0xff0000 0x10000>;
                                read-only;