ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_asus_rt-n1x.dtsi
index 239bb08230cffdfb7c3fa4d2e4c2a84afda67e70..3a2de12f6a875f74a8a515b91c52a57b44768e3d 100644 (file)
@@ -90,7 +90,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &ohci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};