ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_cpe_2port.dtsi
index e7d33ab22be280cfa6b81aeeab1f445e0b79ec50..d539d2e0a6e578be1a0f4eb76251aca3a45a510b 100644 (file)
@@ -45,7 +45,8 @@
 };
 
 &eth1 {
-       mtd-mac-address = <&info 0x8>;
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
 
        gmac-config {
                device = <&gmac>;
                switch-only-mode = <1>;
        };
 };
+
+&info {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_info_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
+};