ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr841n-v14.dts
index a1a83bf2377434e61526d2f92c51ddcbe64cb02a..9f1d667070508342153b7fe3dd9d33813e477943 100644 (file)
 &wmac {
        status = "okay";
 
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
                output-high;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};