#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;
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>;
+ };
+ };
};
};
};
ð0 {
status = "okay";
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {