ramips: mt7628: move mtd-eeprom out of root DTSI
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7628an_glinet_vixmini_microuter.dtsi
index 738968d1f9f67688d18260b2d359c72bda6f98a6..089a3f3c42780bcb45845af047fb73e64ea1e671 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
+
+       mediatek,mtd-eeprom = <&factory 0x0>;
 };
 
 &spi0 {
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};