ramips: convert MT7613 and MT7615 EEPROM to NVMEM format for MT7621
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_dlink_dir-878-a1.dts
index 4bfe5ca43c2143494d4af52c1820d55b95b77618..f9ed0ddcefdfd6b9ddc092675e4a5002d8eee3a6 100644 (file)
@@ -1,8 +1,23 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
-#include "mt7621_dlink_dir-8xx-a1.dtsi"
+#include "mt7621_dlink_dir-8xx.dtsi"
+#include "mt7621_dlink_flash-16m-a1.dtsi"
 
 / {
        compatible = "dlink,dir-878-a1", "mediatek,mt7621-soc";
        model = "D-Link DIR-878 A1";
+
+       aliases {
+               label-mac-device = &gmac0;
+       };
+};
+
+&gmac0 {
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
 };