mediatek: apply bootloader work-around for affected ASUS devices
authorDaniel Golle <daniel@makrotopia.org>
Mon, 10 Feb 2025 23:18:46 +0000 (23:18 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 15 Feb 2025 16:47:57 +0000 (16:47 +0000)
Apply "u-boot-dont-touch-spi-nand" to ASUS RT-AX59U, ASUS TUF-AX4200 as
well as ASUS TUF-AX6000 routers to prevent U-Boot from wiping MTD
child nodes from DT.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/dts/mt7986a-asus-rt-ax59u.dts
target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
target/linux/mediatek/dts/mt7986a-asus-tuf-ax6000.dts

index 0034ad8284b1bdb5747111a1b29fdb5ed5e0dc67..7e0c05618f5e25c73d27444467aa95956362a7a3 100644 (file)
        status = "okay";
 
        spi_nand: flash@0 {
-               compatible = "spi-nand";
+               compatible = "u-boot-dont-touch-spi-nand";
                reg = <0>;
                #address-cells = <1>;
                #size-cells = <1>;
                 * Device Tree and by that also deletes all additional properties
                 * needed for UBI and NVMEM-on-UBI.
                 * Prevent this from happening by tricking the loader to delete and
-                * replace a bait node instead.
+                * replace a bait node instead (works with older bootloaders).
                 */
                partitions: dummy {
                        compatible = "u-boot-dummy-partitions";
index 9f015cca9ba59039532485ac9153177625a89d40..f05511839863eb897dd148f5dccd75d6a06ecfe9 100644 (file)
        status = "okay";
 
        spi_nand_flash: flash@0 {
-               compatible = "spi-nand";
+               compatible = "u-boot-dont-touch-spi-nand";
                #address-cells = <1>;
                #size-cells = <1>;
                reg = <0>;
                 * Device Tree and by that also deletes all additional properties
                 * needed for UBI and NVMEM-on-UBI.
                 * Prevent this from happening by tricking the loader to delete and
-                * replace a bait node instead.
+                * replace a bait node instead (works with older bootloaders).
                 */
                partitions: dummy {
                        compatible = "u-boot-dummy-partitions";
index 957d8deebb192a3b71ec82e6278fc08bac795bcb..9a0f7594c92c24c73290f1bd7c10b75d3de30e22 100644 (file)
        status = "okay";
 
        spi_nand_flash: flash@0 {
-               compatible = "spi-nand";
+               compatible = "u-boot-dont-touch-spi-nand";
                reg = <0>;
                #address-cells = <1>;
                #size-cells = <1>;
                 * Device Tree and by that also deletes all additional properties
                 * needed for UBI and NVMEM-on-UBI.
                 * Prevent this from happening by tricking the loader to delete and
-                * replace a bait node instead.
+                * replace a bait node instead (works with older bootloaders).
                 */
                partitions: dummy {
                        compatible = "u-boot-dummy-partitions";