lantiq: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv7525pw.dts
index 1f1adc4738b788f3ccee5f007436f6e8b88c312f..12de92ec530522de1e045ac2ce035057c969ac3a 100644 (file)
@@ -86,7 +86,8 @@
 
 &gsw {
        phy-mode = "mii";
-       mtd-mac-address = <&boardconfig 0x16>;
+       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cell-names = "mac-address";
 };
 
 &localbus {
        status = "okay";
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
 };
+
+&boardconfig {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_boardconfig_16: macaddr@16 {
+               reg = <0x16 0x6>;
+       };
+};