rockchip: add Bananapi-R2 Pro board support
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_pisen_wmb001n.dts
index 3d9c6cb7810142cea6ef8bd03ab547a6d08db933..496d6579e7671a47a22ede65262717cee4b17311 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;
@@ -96,7 +96,7 @@
 
        virtual_flash {
                compatible = "mtd-concat";
-               devices = <&fwpart1 &fwpart2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                        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";
 
                                read-only;
                        };
 
-                       fwpart1: partition@20000 {
-                               label = "fwpart1";
+                       fwconcat0: partition@20000 {
+                               label = "fwconcat0";
                                reg = <0x20000 0xdc0000>;
                        };
 
                                reg = <0xde0000 0x10000>;
                        };
 
-                       fwpart2: partition@df0000 {
-                               label = "fwpart2";
+                       fwconcat1: partition@df0000 {
+                               label = "fwconcat1";
                                reg = <0xdf0000 0x1f0000>;
                        };
 
                                label = "art";
                                reg = <0xff0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_art_0: macaddr@0 {
+                                               reg = <0x0 0x6>;
+                                       };
+                               };
                        };
                };
        };
 &eth0 {
        status = "okay";
        phy-handle = <&swphy4>;
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {