ath79: use dynamic partitioning for TP-Link CPE series
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_cpe.dtsi
index d4b7de440a9deccc36e16dcc2e69b0aef79d46cd..fd6aa0f08bef73b9557728c96547e0a91e205464 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
 
 / {
        aliases {
                        partition@40000 {
                                label = "firmware";
                                reg = <0x040000 0x780000>;
-
-                               compatible = "fixed-partitions";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-
-                               partition@0 {
-                                       label = "kernel";
-                                       reg = <0x000000 0x300000>;
-                               };
-
-                               partition@300000 {
-                                       label = "rootfs";
-                                       reg = <0x300000 0x480000>;
-                               };
+                               compatible = "openwrt,uimage", "denx,uimage";
+                               openwrt,ih-magic = <IH_MAGIC_OKLI>;
+                               openwrt,offset = <0x3000>;
                        };
 
                        partition@7c0000 {