ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr840n-v5.dts
index 1f8f7f4babc88f579a6a45fa38a201807365b576..ad65152a95fb126172679befafbaf21a5989e13b 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 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};