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>
(cherry picked from commit
4387de94454913aa79bb88971eabcf1bfca78141)
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";
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";
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";