ramips: convert MT7610 and MT7612 EEPROM to NVMEM format for MT7621
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3662_edimax_br-6475nd.dts
index c0e3193818d026072c7950f53de92b22e5cb3d89..fc3a5549f207225434257c833315d72b83ef39a0 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
        compatible = "edimax,br-6475nd", "ralink,rt3662-soc", "ralink,rt3883-soc";
@@ -86,7 +87,9 @@
                        };
 
                        partition@70000 {
-                               compatible = "edimax,uimage";
+                               compatible = "openwrt,uimage", "denx,uimage";
+                               openwrt,offset = <FW_EDIMAX_OFFSET>;
+                               openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
                                reg = <0x00070000 0x00790000>;
                                label = "firmware";
                        };
        status = "okay";
 };
 
-&gpio1 {
-       status = "okay";
-};
-
 &uartlite {
        status = "okay";
 };
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&devdata 0xd>;
+       nvmem-cells = <&macaddr_devdata_d>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                mediatek,fixed-link = <1000 1 1 1>;
 &ohci {
        status = "okay";
 };
+
+&devdata {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devdata_d: macaddr@d {
+               reg = <0xd 0x6>;
+       };
+};