ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt5350_easyacc_wizard-8800.dts
index 3b1fdd4a8ef52a2d3b09f2470b83e75e139aad56..1b80382f6811595d468f08bc80e5872f989a0338 100644 (file)
@@ -53,7 +53,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};