ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_pisen_wmb001n.dts
index aaa4d1576bd2fe4565591700d314c26a29609315..23b5cf745044f8eed2f42e3eddcd77e27f55dc92 100644 (file)
@@ -4,13 +4,13 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
        model = "PISEN WMB001N";
        compatible = "pisen,wmb001n", "qca,ar9341";
 
        aliases {
-               serial0 = &uart;
                led-boot = &led_wifi;
                led-failsafe = &led_wifi;
                led-running = &led_wifi;
                        partition@0 {
                                reg = <0x0 0x0>;
                                label = "firmware";
-                               compatible = "openwrt,okli";
+                               compatible = "openwrt,uimage", "denx,uimage";
+                               openwrt,ih-magic = <IH_MAGIC_OKLI>;
                        };
                };
        };
        clock-frequency = <25000000>;
 };
 
-&uart {
-       status = "okay";
-};
-
 &spi {
        status = "okay";
 
 &eth0 {
        status = "okay";
        phy-handle = <&swphy4>;
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {
        status = "okay";
        mtd-cal-data = <&art 0x1000>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};