ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / qca9558_belkin_f9x-v2.dtsi
index 81c2c0866f15e89945e119a5bc5fb7445ed31980..23fe321efbf9c2dad27af9110a82640ebb938526 100644 (file)
 &eth0 {
        status = "okay";
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
        phy-handle = <&phy0>;
        pll-data = <0xa6000000 0x00000101 0x00001616>;
 
 &eth1 {
        status = "okay";
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
        pll-data = <0x03000101 0x00000101 0x00001616>;
 
 
        mtd-cal-data = <&art 0x1000>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};