lantiq: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv7506pw11.dts
index f0b288c6ba97fd0a792e17559f2b651826d9a2d8..bb82da0870f4dacab51f47c431656bcf57008a20 100644 (file)
 /* GPIO 19: switch reset */
 &gsw {
        phy-mode = "rmii";
-       mtd-mac-address = <&boardconfig 0x16>;
+       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cell-names = "mac-address";
 };
 
 &localbus {
                reg = <0x7000 0 0 0 0>;
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,mtd-eeprom-swap;
-               mtd-mac-address = <&boardconfig 0x16>;
+               nvmem-cells = <&macaddr_boardconfig_16>;
+               nvmem-cell-names = "mac-address";
                mac-address-increment = <1>;
        };
 };
+
+&boardconfig {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_boardconfig_16: macaddr@16 {
+               reg = <0x16 0x6>;
+       };
+};