ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_wiznet_wizfi630s.dts
index 1246651204420d5d76a99f1f0aa2d26458e32550..a25f4d8d2855b3254c472755c80727589666f192 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};