ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_asus_rt-n56u-b1.dts
index b78e594ffda79ce2d874a696d6227413ca809205..63ab424b881c4a67bbddbf0673285eb654dbb2a5 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x8004>;
+       nvmem-cells = <&macaddr_factory_8004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x4>;
+                       nvmem-cells = <&macaddr_factory_4>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+
+       macaddr_factory_8004: macaddr@8004 {
+               reg = <0x8004 0x6>;
+       };
+};