ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9344_comfast_cf-e120a-v3.dts
index 73e06370f83de5127d95bcd170a531d5bf0c654c..94a82baddcdc0ffc7a93339709b8fc405bc03470 100644 (file)
 &eth0 {
        status = "okay";
        phy-handle = <&swphy0>;
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 
        gmac-config {
                device = <&gmac>;
 
 &eth1 {
        status = "okay";
-       mtd-mac-address = <&art 0x6>;
+       nvmem-cells = <&macaddr_art_6>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
        mtd-cal-data = <&art 0x1000>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_art_6: macaddr@6 {
+               reg = <0x6 0x6>;
+       };
+};