ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_planex_mzk-ex300np.dts
index 5459886a3a6c1952e506be49fb340ba1bf9d5daf..ab53f678f5cda810bd9b99ad477b8f4d1017a269 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&ephy_pins>;
 
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};