ramips: mt7620: use OKLI loader with Jboot devices
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_dlink_dir-510l.dts
index 0c0d9c9f33c938187f1e31564a0c1b23ddc8d74c..1d29bed6f0650cb4eb7de10b0db1479891aa5a18 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
        compatible = "dlink,dir-510l", "ralink,mt7620a-soc";
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "dir-510l:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                };
 
                status-red {
-                       label = "dir-510l:red:status";
+                       label = "red:status";
                        gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
        status = "okay";
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &spi0 {
        status = "okay";
 
@@ -89,7 +86,9 @@
                        };
 
                        partition@210000 {
-                               compatible = "amit,jimage";
+                               compatible = "openwrt,uimage", "denx,uimage";
+                               openwrt,ih-magic = <IH_MAGIC_OKLI>;
+                               openwrt,offset = <0x10000>;
                                label = "firmware";
                                reg = <0x210000 0xde0000>;
                        };
 &pcie0 {
        mt76x0e@0,0 {
                reg = <0x0000 0 0 0 0>;
-               mtd-mac-address = <&config 0xe490>;
-               mtd-mac-address-increment = <(2)>;
+               nvmem-cells = <&macaddr_config_e490>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <(2)>;
                mediatek,mtd-eeprom = <&config 0xe05d>;
        };
 };
 
-&gsw {
-       mediatek,port4 = "ephy";
-};
-
 &state_default {
        default {
                groups = "i2c", "uartf";
                function = "gpio";
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_e490: macaddr@e490 {
+               reg = <0xe490 0x6>;
+       };
+};