ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620n_kingston_mlw221.dts
index 1186b83f064ab2a329952989a3f752bade0e7f14..1e8fe0d833e96a3ee9abd967035bfa8928d8a035 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};