ramips: add support for read/write uboot env to Asus RX-AX53U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_asus_rt-ax53u.dts
index aec8a0494d12433927fd72577cf32e02bb6aa417..6a5cb0d7193e7fcc9a906a2cd59da362b945062d 100644 (file)
 
                partition@0 {
                        label = "u-boot";
-                       reg = <0x0 0xe0000>;
+                       reg = <0x0 0x80000>;
                        read-only;
                };
 
-               partition@e0000 {
+               /*
+                * u-boot gets split here while keeping u-boot read-only,
+                * which allows safe usage of fw_setenv
+                */
+               partition@80000 {
                        label = "u-boot-env";
+                       reg = <0x80000 0x60000>;
+               };
+
+               partition@e0000 {
+                       label = "nvram";
                        reg = <0xe0000 0x100000>;
                        read-only;
                };