ramips: mt7628: use nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_tplink_tl-mr6400-v5.dts
index 7ab19632e8c576bc23774179038e59d20fd0aeaa..f77f1acbf2a72bfbc085ffb1150b49eb750a7103 100644 (file)
 };
 
 &wmac {
-       mtd-mac-address = <&factory 0x1f100>;
+       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x1f100>;
+       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cell-names = "mac-address";
+};
+
+&factory {
+       nvmem-layout {
+               compatible = "fixed-layout";
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               macaddr_factory_1f100: macaddr@1f100 {
+                       reg = <0x1f100 0x6>;
+               };
+       };
 };