ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620n_dlink_dwr-921-c1.dts
index c784839c349ae8e29888dae31c19282731089942..d14abad41b184755d006231930d85c98c5101f2d 100644 (file)
@@ -2,6 +2,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-921-c1", "ralink,mt7620n-soc";
@@ -37,7 +39,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>;
                        };
        status = "okay";
 };
 
-&ethernet {
-       port@4 {
-               status = "okay";
-       };
-};
-
 &state_default {
        default {
                groups = "spi refclk", "i2c", "ephy", "wled";