lantiq: convert mtd-mac-address to nvmem implementation
[openwrt/staging/nbd.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / danube_arcadyan_arv8539pw22.dts
index 3b9f6c246188c6240a5229acd6809a3286d0dbad..83a303b9e821b2e1ec8f8d74b19bd7e1908ceeb7 100644 (file)
 
 &gsw {
        phy-mode = "mii";
-       mtd-mac-address = <&art 0x16>;
+       nvmem-cells = <&macaddr_art_16>;
+       nvmem-cell-names = "mac-address";
 };
 
 &localbus {
                compatible = "pci168c,0029";
                reg = <0x7000 0 0 0 0>;
                qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
-               mtd-mac-address = <&art 0x16>;
+               nvmem-cells = <&macaddr_art_16>;
+               nvmem-cell-names = "mac-address";
                mac-address-increment = <1>;
        };
 };
        status = "okay";
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_16: macaddr@16 {
+               reg = <0x16 0x6>;
+       };
+};