ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / ar7240_tplink.dtsi
index 4799fd79ec7754840aeab426c2250eeea00bc250..60cd38c220cb4fdbeae61ccefda4446e2ca250da 100644 (file)
        ath9k: wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                qca,no-eeprom;
-               mtd-mac-address = <&uboot 0x1fc00>;
+               nvmem-cells = <&macaddr_uboot_1fc00>;
+               nvmem-cell-names = "mac-address";
                #gpio-cells = <2>;
                gpio-controller;
        };
                pinctrl-single,bits = <0x0 0x0 0xf8>;
        };
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
+};