ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_edimax_re23s.dts
index 9b9657344601f98084f9f280c759a7293884fe12..1a3181e4e39dd9a9cc9063930734579a34e68922 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x8004>;
+       nvmem-cells = <&macaddr_factory_8004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_8004: macaddr@8004 {
+               reg = <0x8004 0x6>;
+       };
+};