ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_asiarf_ap7621-nv1.dts
index 4088b8137dc1456f9611637ba8556cc34ce3facd..4900e8db66c4b75fc0122082cf083a51a07662b7 100644 (file)
@@ -12,7 +12,8 @@
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe000>;
+                       nvmem-cells = <&macaddr_factory_e000>;
+                       nvmem-cell-names = "mac-address";
                        mac-address-increment = <1>;
                };
 
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};