lantiq: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv752dpw.dts
index d0f5c38b39221fe7f009029c2d78c1a221fd1f73..e91c291e9a75719a688ef9687d8db0eb7a222e73 100644 (file)
 
 &gsw {
        phy-mode = "rmii";
-       mtd-mac-address = <&boardconfig 0x16>;
+       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cell-names = "mac-address";
 };
 
 &localbus {
        wifi0: wifi@1814,0601 {
                compatible = "pci1814,0601";
                reg = <0x7000 0 0 0 0>;
-               mtd-mac-address = <&boardconfig 0x16>;
+               nvmem-cells = <&macaddr_boardconfig_16>;
+               nvmem-cell-names = "mac-address";
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,mtd-eeprom-swap;
        };
        status = "okay";
        gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
 };
+
+&boardconfig {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_boardconfig_16: macaddr@16 {
+               reg = <0x16 0x6>;
+       };
+};