lantiq: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv4518pwr01.dtsi
index 48fe88fea82b82708bad0691de44944e4cc591a3..b5e4537838bc91f1b4ff3a2f6225a7fc7f007eb5 100644 (file)
 
 &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>;
+       };
+};