ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_glinet_gl-mt750.dts
index 75823787bfb2f772aebf5424c41c01ae7ec34ccd..9ee19686b760d9ec1d5c14b7744da06447822077 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4000>;
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4000: macaddr@4000 {
+               reg = <0x4000 0x6>;
+       };
+};