ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_airlink101_ar670w.dts
index 9d78ca142c31f1cc65491e3d52664cda54d3b353..52d56466106d6c90aa03341eacfabf4655569448 100644 (file)
@@ -85,7 +85,8 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x2004>;
+       nvmem-cells = <&macaddr_factory_2004>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
        status = "okay";
        ralink,mtd-eeprom = <&factory 0x2000>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2004: macaddr@2004 {
+               reg = <0x2004 0x6>;
+       };
+};