mediatek: convert to nvmem-layout
[openwrt/staging/jow.git] / target / linux / mediatek / dts / mt7622-linksys-e8450.dts
index b30b5d245525b697ad0a3e19475a4fd515eb5df4..dedcc057f49de550e4ab7b0c01dc4b7c76940e9b 100644 (file)
                factory: partition@1c0000 {
                        label = "factory";
                        reg = <0x1c0000 0x0100000>;
+
+                       nvmem-layout {
+                               compatible = "fixed-layout";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               macaddr_factory_7fff4: macaddr@7fff4 {
+                                       reg = <0x7fff4 0x6>;
+                               };
+
+                               macaddr_factory_7fffa: macaddr@7fffa {
+                                       reg = <0x7fffa 0x6>;
+                               };
+                       };
                };
 
                partition@300000 {
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x7fff4>;
+       nvmem-cells = <&macaddr_factory_7fff4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wan {
-       mtd-mac-address = <&factory 0x7fffa>;
+       nvmem-cells = <&macaddr_factory_7fffa>;
+       nvmem-cell-names = "mac-address";
 };