ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / rt3052_planex_mzk-wdpr.dts
index 7f660d61d5e1e5ab8fadf6efe177b00f50c598ee..7e6d47cc0214b3cc9d4847d90a812dda3e24c52a 100644 (file)
@@ -73,7 +73,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};